summaryrefslogtreecommitdiffstats
path: root/ui/message_center
diff options
context:
space:
mode:
authordharcourt@chromium.org <dharcourt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 16:13:01 +0000
committerdharcourt@chromium.org <dharcourt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-29 16:13:01 +0000
commitf1c3924f50b7063ac8832254f9a0df552f509441 (patch)
tree3936a3c18fc6db18bd80b106dff8bca076c7b835 /ui/message_center
parent41d6b17ed3a5b9ef98be8b6362e4ba0153255e09 (diff)
downloadchromium_src-f1c3924f50b7063ac8832254f9a0df552f509441.zip
chromium_src-f1c3924f50b7063ac8832254f9a0df552f509441.tar.gz
chromium_src-f1c3924f50b7063ac8832254f9a0df552f509441.tar.bz2
Made --enable-rich-notifications flag available to message_center.
Also added an --enable-new-simple-notifications flag to be used to control the appearance of simple notifications (notifications created using the HTML5 webkitNotifications API instead of the new chrome.notification APIs). BUG=172358 Review URL: https://chromiumcodereview.appspot.com/12096004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center')
-rw-r--r--ui/message_center/message_center_switches.cc4
-rw-r--r--ui/message_center/message_center_switches.h11
2 files changed, 15 insertions, 0 deletions
diff --git a/ui/message_center/message_center_switches.cc b/ui/message_center/message_center_switches.cc
index a110602..6c5c7f4 100644
--- a/ui/message_center/message_center_switches.cc
+++ b/ui/message_center/message_center_switches.cc
@@ -10,5 +10,9 @@ namespace switches {
const char kDisableNewMessageCenterBubble[] =
"disable-new-message-center-bubble";
+const char kEnableRichNotifications[] = "enable-rich-notifications";
+
+const char kEnableNewSimpleNotifications[] = "enable-new-simple-notifications";
+
} // namespace switches
} // namespace message_center
diff --git a/ui/message_center/message_center_switches.h b/ui/message_center/message_center_switches.h
index a3b7a5d..590a98f 100644
--- a/ui/message_center/message_center_switches.h
+++ b/ui/message_center/message_center_switches.h
@@ -21,6 +21,17 @@ namespace switches {
// - WebNotificationButtonViewBase: merge into WebNotificationButtonView.
MESSAGE_CENTER_EXPORT extern const char kDisableNewMessageCenterBubble[];
+// Enables rich templated notifications and NotificationCenter.
+MESSAGE_CENTER_EXPORT extern const char kEnableRichNotifications[];
+
+// Enables simple notifications with the new templates defined as part of rich
+// notifications. When kEnableRichNotifications is set those templates will be
+// used regardless of whether this flag is set, but this flag allows us to get
+// the new templates even when kEnableRichNotifications is not set. This is
+// useful for now because the kEnableRichNotifications functionality isn't
+// complete. TODO(dharcourt): Remove when kEnableRichNotifications is ready.
+MESSAGE_CENTER_EXPORT extern const char kEnableNewSimpleNotifications[];
+
} // namespace switches
} // namespace message_center