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 "ui/message_center/message_center.h" | 8 #include "ui/message_center/message_center.h" |
9 | 9 |
10 namespace message_center { | 10 namespace message_center { |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE; | 22 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE; |
23 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; | 23 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; |
24 virtual size_t NotificationCount() const OVERRIDE; | 24 virtual size_t NotificationCount() const OVERRIDE; |
25 virtual size_t UnreadNotificationCount() const OVERRIDE; | 25 virtual size_t UnreadNotificationCount() const OVERRIDE; |
26 virtual bool HasPopupNotifications() const OVERRIDE; | 26 virtual bool HasPopupNotifications() const OVERRIDE; |
27 virtual bool HasNotification(const std::string& id) OVERRIDE; | 27 virtual bool HasNotification(const std::string& id) OVERRIDE; |
28 virtual bool IsQuietMode() const OVERRIDE; | 28 virtual bool IsQuietMode() const OVERRIDE; |
29 virtual bool HasClickedListener(const std::string& id) OVERRIDE; | 29 virtual bool HasClickedListener(const std::string& id) OVERRIDE; |
30 virtual const NotificationList::Notifications& GetNotifications() OVERRIDE; | 30 virtual const NotificationList::Notifications& GetNotifications() OVERRIDE; |
31 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; | 31 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; |
32 virtual void AddNotification(NotificationType type, | 32 virtual void AddNotification(scoped_ptr<Notification> notification) OVERRIDE; |
33 const std::string& id, | |
34 const string16& title, | |
35 const string16& message, | |
36 const string16& display_source, | |
37 const std::string& extension_id, | |
38 const base::DictionaryValue* optional_fields, | |
39 NotificationDelegate* delegate) OVERRIDE; | |
40 virtual void UpdateNotification(const std::string& old_id, | 33 virtual void UpdateNotification(const std::string& old_id, |
41 const std::string& new_id, | 34 scoped_ptr<Notification> new_notification) |
42 const string16& title, | 35 OVERRIDE; |
43 const string16& message, | 36 |
44 const base::DictionaryValue* optional_fields, | |
45 NotificationDelegate* delegate) OVERRIDE; | |
46 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; | 37 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; |
47 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; | 38 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; |
48 virtual void SetNotificationIcon(const std::string& notification_id, | 39 virtual void SetNotificationIcon(const std::string& notification_id, |
49 const gfx::Image& image) OVERRIDE; | 40 const gfx::Image& image) OVERRIDE; |
50 | 41 |
51 virtual void SetNotificationImage(const std::string& notification_id, | 42 virtual void SetNotificationImage(const std::string& notification_id, |
52 const gfx::Image& image) OVERRIDE; | 43 const gfx::Image& image) OVERRIDE; |
53 | 44 |
54 virtual void SetNotificationButtonIcon(const std::string& notification_id, | 45 virtual void SetNotificationButtonIcon(const std::string& notification_id, |
55 int button_index, | 46 int button_index, |
(...skipping 16 matching lines...) Expand all Loading... |
72 | 63 |
73 private: | 64 private: |
74 const NotificationList::Notifications empty_notifications_; | 65 const NotificationList::Notifications empty_notifications_; |
75 | 66 |
76 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); | 67 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); |
77 }; | 68 }; |
78 | 69 |
79 } // namespace message_center | 70 } // namespace message_center |
80 | 71 |
81 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ | 72 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ |
OLD | NEW |