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

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: Rebase, rebase, and rebase again! Created 7 years, 9 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/notification_change_observer.h ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list.h
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index be8718ce6c2b6380bd4283f379b23683ec3e703b..9a4c957d230aead76cfff8a8c2821caa2ece67a5 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -45,37 +45,14 @@ class MESSAGE_CENTER_EXPORT NotificationList {
class MESSAGE_CENTER_EXPORT Delegate {
public:
- Delegate() {}
- virtual ~Delegate() {}
+ virtual ~Delegate();
// Removes notifications
virtual void SendRemoveNotification(const std::string& id,
bool by_user) = 0;
- virtual void SendRemoveAllNotifications(bool by_user) = 0;
-
- // Disables notifications
- virtual void DisableNotificationByExtension(const std::string& id) = 0;
- virtual void DisableNotificationByUrl(const std::string& id) = 0;
-
- // Requests the Delegate to show the settings page.
- virtual void ShowNotificationSettings(const std::string& id) = 0;
-
- // Requests the Delegate to show the settings dialog.
- virtual void ShowNotificationSettingsDialog(gfx::NativeView context) = 0;
-
- // 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;
};
explicit NotificationList(Delegate* delegate);
@@ -139,6 +116,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
« no previous file with comments | « ui/message_center/notification_change_observer.h ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698