Chromium Code Reviews| 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..3d59935d1e40dea5d92f916ffc41eb402d9a137f 100644 |
| --- a/ui/message_center/notification_list.h |
| +++ b/ui/message_center/notification_list.h |
| @@ -45,37 +45,15 @@ 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, |
| + virtual void NotificationWasRemoved(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; |
| + virtual void AllNotificationsWereRemoved(bool by_user) = 0; |
|
dharcourt
2013/03/02 02:08:02
Much simpler because most methods have moved to No
dharcourt
2013/03/04 21:17:52
AllNotificationsWereRemoved was never called so I
|
| // 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 +117,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 |