OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MESSAGE_CENTER_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // Removes an existing notification. | 123 // Removes an existing notification. |
124 void RemoveNotification(const std::string& id); | 124 void RemoveNotification(const std::string& id); |
125 | 125 |
126 void SetNotificationPrimaryIcon(const std::string& id, | 126 void SetNotificationPrimaryIcon(const std::string& id, |
127 const gfx::ImageSkia& image); | 127 const gfx::ImageSkia& image); |
128 | 128 |
129 void SetNotificationSecondaryIcon(const std::string& id, | 129 void SetNotificationSecondaryIcon(const std::string& id, |
130 const gfx::ImageSkia& image); | 130 const gfx::ImageSkia& image); |
131 | 131 |
| 132 void SetNotificationImage(const std::string& id, const gfx::ImageSkia& image); |
| 133 |
132 NotificationList* notification_list() { return notification_list_.get(); } | 134 NotificationList* notification_list() { return notification_list_.get(); } |
133 | 135 |
134 // Overridden from NotificationList::Delegate. | 136 // Overridden from NotificationList::Delegate. |
135 virtual void SendRemoveNotification(const std::string& id) OVERRIDE; | 137 virtual void SendRemoveNotification(const std::string& id) OVERRIDE; |
136 virtual void SendRemoveAllNotifications() OVERRIDE; | 138 virtual void SendRemoveAllNotifications() OVERRIDE; |
137 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE; | 139 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE; |
138 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE; | 140 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE; |
139 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE; | 141 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE; |
140 virtual void OnNotificationClicked(const std::string& id) OVERRIDE; | 142 virtual void OnNotificationClicked(const std::string& id) OVERRIDE; |
141 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE; | 143 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
153 scoped_ptr<NotificationList> notification_list_; | 155 scoped_ptr<NotificationList> notification_list_; |
154 ObserverList<Observer> observer_list_; | 156 ObserverList<Observer> observer_list_; |
155 Delegate* delegate_; | 157 Delegate* delegate_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(MessageCenter); | 159 DISALLOW_COPY_AND_ASSIGN(MessageCenter); |
158 }; | 160 }; |
159 | 161 |
160 } // namespace message_center | 162 } // namespace message_center |
161 | 163 |
162 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 164 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
OLD | NEW |