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

Unified Diff: ui/message_center/notification_list.h

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, which led to many changes. Created 7 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
Index: ui/message_center/notification_list.h
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index 77da6491bb788ca1f4f764ffea930fc2fddb99c5..a7b38b5270df2d77eeb04229528b6609d8539af2 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -66,16 +66,16 @@ 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;
-
// Called when a button in a notification is clicked. |button_index|
// indicates which button was clicked, zero-indexed (button one is 0,
// button two is 1).
virtual void OnButtonClicked(const std::string& id, int button_index) = 0;
- // Returns the list of notifications to display.
- virtual NotificationList* GetNotificationList() = 0;
+ // Called when a notification has been expanded in the notification center.
+ virtual void OnExpand(const std::string& id) = 0;
+
+ // Called when the quiet mode status has been changed.
+ virtual void OnQuietModeChanged(bool quiet_mode) = 0;
dharcourt 2013/03/01 10:17:31 GetNotificationList() was removed because it cause
};
explicit NotificationList(Delegate* delegate);
@@ -139,6 +139,9 @@ class MESSAGE_CENTER_EXPORT NotificationList {
void MarkSinglePopupAsShown(const std::string& id,
bool mark_notification_as_read);
+ // Marks the specified notification as expanded in the notification center.
+ void MarkNotificationAsExpanded(const std::string& id);
+
bool quiet_mode() const { return quiet_mode_; }
// Sets the current quiet mode status to |quiet_mode|. The new status is not

Powered by Google App Engine
This is Rietveld 408576698