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

Unified Diff: ui/message_center/message_center.h

Issue 264123002: Google Now Message Center Stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: ui/message_center/message_center.h
diff --git a/ui/message_center/message_center.h b/ui/message_center/message_center.h
index 6ad648afbf45bb93727f9c2eb5a1b6af58faf928..b747f2a1ae96a84ca56d12f8c66e433ef3ec962c 100644
--- a/ui/message_center/message_center.h
+++ b/ui/message_center/message_center.h
@@ -127,6 +127,12 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
// notify observers that the notification is visible.
virtual void DisplayedNotification(const std::string& id) = 0;
+ // This should be called by UI classes when a notification is popped up
+ // to the user, in order to decrement the unread_count for the tray, and to
+ // notify observers that the notification is popped up.
+ // This behavior is a superset of DisplayNotification behavior.
+ virtual void PoppedUpNotification(const std::string& id) = 0;
+
// Setter/getter of notifier settings provider. This will be a weak reference.
// This should be set at the initialization process. The getter may return
// NULL for tests.

Powered by Google App Engine
This is Rietveld 408576698