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 24 matching lines...) Expand all Loading... |
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) override; |
44 void RemoveAllVisibleNotifications(bool by_user) override; | 44 void RemoveAllVisibleNotifications(bool by_user) override; |
| 45 void RemoveAllClosableNotifications(bool by_user) override; |
45 void SetNotificationIcon(const std::string& notification_id, | 46 void SetNotificationIcon(const std::string& notification_id, |
46 const gfx::Image& image) override; | 47 const gfx::Image& image) override; |
47 | 48 |
48 void SetNotificationImage(const std::string& notification_id, | 49 void SetNotificationImage(const std::string& notification_id, |
49 const gfx::Image& image) override; | 50 const gfx::Image& image) override; |
50 | 51 |
51 void SetNotificationButtonIcon(const std::string& notification_id, | 52 void SetNotificationButtonIcon(const std::string& notification_id, |
52 int button_index, | 53 int button_index, |
53 const gfx::Image& image) override; | 54 const gfx::Image& image) override; |
54 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; | 55 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; |
(...skipping 20 matching lines...) Expand all Loading... |
75 | 76 |
76 private: | 77 private: |
77 const NotificationList::Notifications empty_notifications_; | 78 const NotificationList::Notifications empty_notifications_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); | 80 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace message_center | 83 } // namespace message_center |
83 | 84 |
84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 85 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ |
OLD | NEW |