| 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 22 matching lines...) Expand all Loading... |
| 33 bool HasClickedListener(const std::string& id) override; | 33 bool HasClickedListener(const std::string& id) override; |
| 34 message_center::Notification* FindVisibleNotificationById( | 34 message_center::Notification* FindVisibleNotificationById( |
| 35 const std::string& id) override; | 35 const std::string& id) override; |
| 36 const NotificationList::Notifications& GetVisibleNotifications() override; | 36 const NotificationList::Notifications& GetVisibleNotifications() override; |
| 37 NotificationList::PopupNotifications GetPopupNotifications() override; | 37 NotificationList::PopupNotifications GetPopupNotifications() override; |
| 38 void AddNotification(scoped_ptr<Notification> notification) override; | 38 void AddNotification(scoped_ptr<Notification> notification) override; |
| 39 void UpdateNotification(const std::string& old_id, | 39 void UpdateNotification(const std::string& old_id, |
| 40 scoped_ptr<Notification> new_notification) override; | 40 scoped_ptr<Notification> new_notification) override; |
| 41 | 41 |
| 42 void RemoveNotification(const std::string& id, bool by_user) override; | 42 void RemoveNotification(const std::string& id, bool by_user) override; |
| 43 void RemoveAllNotifications(bool by_user) override; | 43 void RemoveAllNotifications(bool by_user, RemoveType type) override; |
| 44 void RemoveAllVisibleNotifications(bool by_user) override; | |
| 45 void SetNotificationIcon(const std::string& notification_id, | 44 void SetNotificationIcon(const std::string& notification_id, |
| 46 const gfx::Image& image) override; | 45 const gfx::Image& image) override; |
| 47 | 46 |
| 48 void SetNotificationImage(const std::string& notification_id, | 47 void SetNotificationImage(const std::string& notification_id, |
| 49 const gfx::Image& image) override; | 48 const gfx::Image& image) override; |
| 50 | 49 |
| 51 void SetNotificationButtonIcon(const std::string& notification_id, | 50 void SetNotificationButtonIcon(const std::string& notification_id, |
| 52 int button_index, | 51 int button_index, |
| 53 const gfx::Image& image) override; | 52 const gfx::Image& image) override; |
| 54 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; | 53 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 75 | 74 |
| 76 private: | 75 private: |
| 77 const NotificationList::Notifications empty_notifications_; | 76 const NotificationList::Notifications empty_notifications_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); | 78 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace message_center | 81 } // namespace message_center |
| 83 | 82 |
| 84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 83 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ |
| OLD | NEW |