OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_NOTIFIER_SETTINGS_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ |
6 #define UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool enabled; | 109 bool enabled; |
110 | 110 |
111 // The icon image of the notifier. The extension icon or favicon. | 111 // The icon image of the notifier. The extension icon or favicon. |
112 gfx::Image icon; | 112 gfx::Image icon; |
113 | 113 |
114 private: | 114 private: |
115 DISALLOW_COPY_AND_ASSIGN(Notifier); | 115 DISALLOW_COPY_AND_ASSIGN(Notifier); |
116 }; | 116 }; |
117 | 117 |
118 struct MESSAGE_CENTER_EXPORT NotifierGroup { | 118 struct MESSAGE_CENTER_EXPORT NotifierGroup { |
119 NotifierGroup(const gfx::Image& icon, | 119 NotifierGroup(const base::string16& name, const base::string16& login_info); |
120 const base::string16& name, | |
121 const base::string16& login_info); | |
122 ~NotifierGroup(); | 120 ~NotifierGroup(); |
123 | 121 |
124 // Icon of a notifier group. | |
125 const gfx::Image icon; | |
126 | |
127 // Display name of a notifier group. | 122 // Display name of a notifier group. |
128 const base::string16 name; | 123 const base::string16 name; |
129 | 124 |
130 // More display information about the notifier group. | 125 // More display information about the notifier group. |
131 base::string16 login_info; | 126 base::string16 login_info; |
132 | 127 |
133 private: | 128 private: |
134 DISALLOW_COPY_AND_ASSIGN(NotifierGroup); | 129 DISALLOW_COPY_AND_ASSIGN(NotifierGroup); |
135 }; | 130 }; |
136 | 131 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 191 |
197 // Called upon request for more information about a particular notifier. | 192 // Called upon request for more information about a particular notifier. |
198 virtual void OnNotifierAdvancedSettingsRequested( | 193 virtual void OnNotifierAdvancedSettingsRequested( |
199 const NotifierId& notifier_id, | 194 const NotifierId& notifier_id, |
200 const std::string* notification_id) = 0; | 195 const std::string* notification_id) = 0; |
201 }; | 196 }; |
202 | 197 |
203 } // namespace message_center | 198 } // namespace message_center |
204 | 199 |
205 #endif // UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ | 200 #endif // UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ |
OLD | NEW |