summaryrefslogtreecommitdiff
path: root/chromium/ui/message_center/message_center.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-05-09 14:22:11 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-05-09 15:11:45 +0000
commit2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c (patch)
treee75f511546c5fd1a173e87c1f9fb11d7ac8d1af3 /chromium/ui/message_center/message_center.h
parenta4f3d46271c57e8155ba912df46a05559d14726e (diff)
downloadqtwebengine-chromium-2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c.tar.gz
BASELINE: Update Chromium to 51.0.2704.41
Also adds in all smaller components by reversing logic for exclusion. Change-Id: Ibf90b506e7da088ea2f65dcf23f2b0992c504422 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/ui/message_center/message_center.h')
-rw-r--r--chromium/ui/message_center/message_center.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/ui/message_center/message_center.h b/chromium/ui/message_center/message_center.h
index 00d9545d639..d6ce0c38acb 100644
--- a/chromium/ui/message_center/message_center.h
+++ b/chromium/ui/message_center/message_center.h
@@ -50,6 +50,13 @@ class NotifierSettingsProvider;
class MESSAGE_CENTER_EXPORT MessageCenter {
public:
+ enum class RemoveType {
+ // Remove all notifications.
+ ALL,
+ // Remove non-pinned notification (don't remove invisible ones).
+ NON_PINNED,
+ };
+
// Creates the global message center object.
static void Initialize();
@@ -102,8 +109,7 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
// Removes an existing notification.
virtual void RemoveNotification(const std::string& id, bool by_user) = 0;
- virtual void RemoveAllNotifications(bool by_user) = 0;
- virtual void RemoveAllVisibleNotifications(bool by_user) = 0;
+ virtual void RemoveAllNotifications(bool by_user, RemoveType type) = 0;
// Sets the icon image. Icon appears at the top-left of the notification.
virtual void SetNotificationIcon(const std::string& notification_id,