Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: ui/message_center/message_center.h

Issue 1645843003: Implement Non-Closable Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary property. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/fake_message_center.cc ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center.h
diff --git a/ui/message_center/message_center.h b/ui/message_center/message_center.h
index 00d9545d63943719116e1715efd82ca7c96c25d9..d6ce0c38acbd1d19ed84ec7dab0cf7b56a224de4 100644
--- a/ui/message_center/message_center.h
+++ b/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,
« no previous file with comments | « ui/message_center/fake_message_center.cc ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698