| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 5 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 
| 6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 
| 7 | 7 | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 | 9 | 
| 10 #include "base/macros.h" | 10 #include "base/macros.h" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23 | 23 | 
| 24   // Overridden from FakeMessageCenter. | 24   // Overridden from FakeMessageCenter. | 
| 25   void AddObserver(MessageCenterObserver* observer) override; | 25   void AddObserver(MessageCenterObserver* observer) override; | 
| 26   void RemoveObserver(MessageCenterObserver* observer) override; | 26   void RemoveObserver(MessageCenterObserver* observer) override; | 
| 27   void AddNotificationBlocker(NotificationBlocker* blocker) override; | 27   void AddNotificationBlocker(NotificationBlocker* blocker) override; | 
| 28   void RemoveNotificationBlocker(NotificationBlocker* blocker) override; | 28   void RemoveNotificationBlocker(NotificationBlocker* blocker) override; | 
| 29   size_t NotificationCount() const override; | 29   size_t NotificationCount() const override; | 
| 30   size_t UnreadNotificationCount() const override; | 30   size_t UnreadNotificationCount() const override; | 
| 31   bool HasPopupNotifications() const override; | 31   bool HasPopupNotifications() const override; | 
| 32   bool IsQuietMode() const override; | 32   bool IsQuietMode() const override; | 
| 33   bool IsLockedState() const override; |  | 
| 34   bool HasClickedListener(const std::string& id) override; | 33   bool HasClickedListener(const std::string& id) override; | 
| 35   message_center::Notification* FindVisibleNotificationById( | 34   message_center::Notification* FindVisibleNotificationById( | 
| 36       const std::string& id) override; | 35       const std::string& id) override; | 
| 37   const NotificationList::Notifications& GetVisibleNotifications() override; | 36   const NotificationList::Notifications& GetVisibleNotifications() override; | 
| 38   NotificationList::PopupNotifications GetPopupNotifications() override; | 37   NotificationList::PopupNotifications GetPopupNotifications() override; | 
| 39   void AddNotification(std::unique_ptr<Notification> notification) override; | 38   void AddNotification(std::unique_ptr<Notification> notification) override; | 
| 40   void UpdateNotification( | 39   void UpdateNotification( | 
| 41       const std::string& old_id, | 40       const std::string& old_id, | 
| 42       std::unique_ptr<Notification> new_notification) override; | 41       std::unique_ptr<Notification> new_notification) override; | 
| 43 | 42 | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 57   void ClickOnNotificationButton(const std::string& id, | 56   void ClickOnNotificationButton(const std::string& id, | 
| 58                                  int button_index) override; | 57                                  int button_index) override; | 
| 59   void ClickOnSettingsButton(const std::string& id) override; | 58   void ClickOnSettingsButton(const std::string& id) override; | 
| 60   void MarkSinglePopupAsShown(const std::string& id, | 59   void MarkSinglePopupAsShown(const std::string& id, | 
| 61                               bool mark_notification_as_read) override; | 60                               bool mark_notification_as_read) override; | 
| 62   void DisplayedNotification(const std::string& id, | 61   void DisplayedNotification(const std::string& id, | 
| 63                              const DisplaySource source) override; | 62                              const DisplaySource source) override; | 
| 64   void SetNotifierSettingsProvider(NotifierSettingsProvider* provider) override; | 63   void SetNotifierSettingsProvider(NotifierSettingsProvider* provider) override; | 
| 65   NotifierSettingsProvider* GetNotifierSettingsProvider() override; | 64   NotifierSettingsProvider* GetNotifierSettingsProvider() override; | 
| 66   void SetQuietMode(bool in_quiet_mode) override; | 65   void SetQuietMode(bool in_quiet_mode) override; | 
| 67   void SetLockedState(bool locked) override; |  | 
| 68   void EnterQuietModeWithExpire(const base::TimeDelta& expires_in) override; | 66   void EnterQuietModeWithExpire(const base::TimeDelta& expires_in) override; | 
| 69   void SetVisibility(Visibility visible) override; | 67   void SetVisibility(Visibility visible) override; | 
| 70   bool IsMessageCenterVisible() const override; | 68   bool IsMessageCenterVisible() const override; | 
| 71   void RestartPopupTimers() override; | 69   void RestartPopupTimers() override; | 
| 72   void PausePopupTimers() override; | 70   void PausePopupTimers() override; | 
| 73 | 71 | 
| 74  protected: | 72  protected: | 
| 75   void DisableTimersForTest() override; | 73   void DisableTimersForTest() override; | 
| 76   void EnableChangeQueueForTest(bool enabled) override; | 74   void EnableChangeQueueForTest(bool enabled) override; | 
| 77 | 75 | 
| 78  private: | 76  private: | 
| 79   const NotificationList::Notifications empty_notifications_; | 77   const NotificationList::Notifications empty_notifications_; | 
| 80 | 78 | 
| 81   DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); | 79   DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); | 
| 82 }; | 80 }; | 
| 83 | 81 | 
| 84 }  // namespace message_center | 82 }  // namespace message_center | 
| 85 | 83 | 
| 86 #endif  // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 84 #endif  // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 
| OLD | NEW | 
|---|