Add a NotificationTemplateBuilder for Action Center toasts

Desktop / Chromium - peter [chromium.org] - 16 June 2017 13:57 EDT

This adds a notification template builder that takes a notification_id and a message_center::Notification object and builds the XML template that can be displayed using the Windows Action Center.

It's functionality is incredibly limited -- the title, message and origin attribution of a notification are included, everything else will have to be added in the future.

BUG=734095

Review-Url: https://codereview.chromium.org/2920303002 Cr-Commit-Position: refs/heads/master@{#480097}

5904da7 Add a NotificationTemplateBuilder for Action Center toasts
chrome/browser/BUILD.gn | 2 +
.../notifications/notification_template_builder.cc | 126 +++++++++++++++++++++
.../notifications/notification_template_builder.h | 73 ++++++++++++
.../notification_template_builder_unittest.cc | 96 ++++++++++++++++
chrome/test/BUILD.gn | 1 +
5 files changed, 298 insertions(+)

Upstream: git.chromium.org


  • Share