summaryrefslogtreecommitdiff
path: root/chromium/ui/message_center/message_center.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/message_center/message_center.h')
-rw-r--r--chromium/ui/message_center/message_center.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/ui/message_center/message_center.h b/chromium/ui/message_center/message_center.h
index 05c00662d43..2eebf0ff4b7 100644
--- a/chromium/ui/message_center/message_center.h
+++ b/chromium/ui/message_center/message_center.h
@@ -63,6 +63,10 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
// Destroys the global message_center object.
static void Shutdown();
+ // Returns if new style notification is enabled, i.e. NotificationViewMD is
+ // used instead of NotificationView.
+ static bool IsNewStyleNotificationEnabled();
+
// Management of the observer list.
virtual void AddObserver(MessageCenterObserver* observer) = 0;
virtual void RemoveObserver(MessageCenterObserver* observer) = 0;
@@ -189,6 +193,11 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
// example, after the mouse leaves the popup.)
virtual void RestartPopupTimers() = 0;
+ // "Chromium OS" or "Chrome OS" in the current locale.
+ // Return empty string if not on these platforms.
+ virtual const base::string16& GetProductOSName() const = 0;
+ virtual void SetProductOSName(const base::string16& product_os_name) = 0;
+
protected:
friend class ::DownloadNotification;
friend class ::DownloadNotificationTestBase;