summaryrefslogtreecommitdiffstats
path: root/ui/message_center/notification_list.h
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 21:59:59 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 21:59:59 +0000
commitdb3e839d6a1c0dde03827a6d9dd9ff824b4e7a9a (patch)
tree7bc4c0f1749d1d52b6f4595c50c0017af2c882de /ui/message_center/notification_list.h
parentb4e4ec42f15a8781bcb4071e2c5d1cc9939ef028 (diff)
downloadchromium_src-db3e839d6a1c0dde03827a6d9dd9ff824b4e7a9a.zip
chromium_src-db3e839d6a1c0dde03827a6d9dd9ff824b4e7a9a.tar.gz
chromium_src-db3e839d6a1c0dde03827a6d9dd9ff824b4e7a9a.tar.bz2
Enables to call quiet mode bubble from web notification.
This CL depends on https://codereview.chromium.org/11417103/ Also there is a known issue: it doesn't handle clicks outside of the bubble. BUG=161096 Review URL: https://chromiumcodereview.appspot.com/11280107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center/notification_list.h')
-rw-r--r--ui/message_center/notification_list.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index c06fa16..ef44f40 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -84,6 +84,9 @@ class MESSAGE_CENTER_EXPORT NotificationList {
// Called when a notification is clicked on.
virtual void OnNotificationClicked(const std::string& id) = 0;
+ // Called when the quiet mode status has been changed.
+ virtual void OnQuietModeChanged(bool quiet_mode) = 0;
+
// Returns the list of notifications to display.
virtual NotificationList* GetNotificationList() = 0;
};
@@ -170,6 +173,9 @@ class MESSAGE_CENTER_EXPORT NotificationList {
void UnpackOptionalFields(const base::DictionaryValue* optional_fields,
Notification& notification);
+ // Sets the current quiet mode status to |quiet_mode|.
+ void SetQuietModeInternal(bool quiet_mode);
+
Delegate* delegate_;
Notifications notifications_;
bool message_center_visible_;