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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Sets the icon image. Icon appears at the top-left of the notification. | 116 // Sets the icon image. Icon appears at the top-left of the notification. |
117 virtual void SetNotificationIcon(const std::string& notification_id, | 117 virtual void SetNotificationIcon(const std::string& notification_id, |
118 const gfx::Image& image) = 0; | 118 const gfx::Image& image) = 0; |
119 | 119 |
120 // Sets the large image for the notifications of type == TYPE_IMAGE. Specified | 120 // Sets the large image for the notifications of type == TYPE_IMAGE. Specified |
121 // image will appear below of the notification. | 121 // image will appear below of the notification. |
122 virtual void SetNotificationImage(const std::string& notification_id, | 122 virtual void SetNotificationImage(const std::string& notification_id, |
123 const gfx::Image& image) = 0; | 123 const gfx::Image& image) = 0; |
124 | 124 |
125 // Sets the image for the icon of the specific aaction button. | 125 // Sets the image for the icon of the specific action button. |
126 virtual void SetNotificationButtonIcon(const std::string& notification_id, | 126 virtual void SetNotificationButtonIcon(const std::string& notification_id, |
127 int button_index, | 127 int button_index, |
128 const gfx::Image& image) = 0; | 128 const gfx::Image& image) = 0; |
129 | 129 |
130 // Operations happening especially from GUIs: click, expand, disable, | 130 // Operations happening especially from GUIs: click, expand, disable, |
131 // and settings. | 131 // and settings. |
132 // TODO(mukai): settings can be in another class? | 132 // TODO(mukai): settings can be in another class? |
133 virtual void DisableNotificationsByExtension(const std::string& id) = 0; | 133 virtual void DisableNotificationsByExtension(const std::string& id) = 0; |
134 virtual void DisableNotificationsByUrl(const std::string& id) = 0; | 134 virtual void DisableNotificationsByUrl(const std::string& id) = 0; |
135 virtual void ShowNotificationSettings(const std::string& id) = 0; | 135 virtual void ShowNotificationSettings(const std::string& id) = 0; |
(...skipping 15 matching lines...) Expand all Loading... |
151 MessageCenter(); | 151 MessageCenter(); |
152 virtual ~MessageCenter(); | 152 virtual ~MessageCenter(); |
153 | 153 |
154 private: | 154 private: |
155 DISALLOW_COPY_AND_ASSIGN(MessageCenter); | 155 DISALLOW_COPY_AND_ASSIGN(MessageCenter); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace message_center | 158 } // namespace message_center |
159 | 159 |
160 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 160 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
OLD | NEW |