Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1015)

Side by Side Diff: ui/message_center/message_center_impl.h

Issue 149433005: Adds a small icon to notifications, and connects it to synced notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add testing. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MESSAGE_CENTER_IMPL_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; 163 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE;
164 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; 164 virtual void RemoveAllNotifications(bool by_user) OVERRIDE;
165 virtual void RemoveAllVisibleNotifications(bool by_user) OVERRIDE; 165 virtual void RemoveAllVisibleNotifications(bool by_user) OVERRIDE;
166 virtual void SetNotificationIcon(const std::string& notification_id, 166 virtual void SetNotificationIcon(const std::string& notification_id,
167 const gfx::Image& image) OVERRIDE; 167 const gfx::Image& image) OVERRIDE;
168 virtual void SetNotificationImage(const std::string& notification_id, 168 virtual void SetNotificationImage(const std::string& notification_id,
169 const gfx::Image& image) OVERRIDE; 169 const gfx::Image& image) OVERRIDE;
170 virtual void SetNotificationButtonIcon(const std::string& notification_id, 170 virtual void SetNotificationButtonIcon(const std::string& notification_id,
171 int button_index, 171 int button_index,
172 const gfx::Image& image) OVERRIDE; 172 const gfx::Image& image) OVERRIDE;
173 virtual void SetNotificationSmallImage(const std::string& notification_id,
174 const gfx::Image& image) OVERRIDE;
173 virtual void DisableNotificationsByNotifier( 175 virtual void DisableNotificationsByNotifier(
174 const NotifierId& notifier_id) OVERRIDE; 176 const NotifierId& notifier_id) OVERRIDE;
175 virtual void ExpandNotification(const std::string& id) OVERRIDE; 177 virtual void ExpandNotification(const std::string& id) OVERRIDE;
176 virtual void ClickOnNotification(const std::string& id) OVERRIDE; 178 virtual void ClickOnNotification(const std::string& id) OVERRIDE;
177 virtual void ClickOnNotificationButton(const std::string& id, 179 virtual void ClickOnNotificationButton(const std::string& id,
178 int button_index) OVERRIDE; 180 int button_index) OVERRIDE;
179 virtual void MarkSinglePopupAsShown(const std::string& id, 181 virtual void MarkSinglePopupAsShown(const std::string& id,
180 bool mark_notification_as_read) OVERRIDE; 182 bool mark_notification_as_read) OVERRIDE;
181 virtual void DisplayedNotification(const std::string& id) OVERRIDE; 183 virtual void DisplayedNotification(const std::string& id) OVERRIDE;
182 virtual void SetNotifierSettingsProvider( 184 virtual void SetNotifierSettingsProvider(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Queue for the notifications to delay the addition/updates when the message 220 // Queue for the notifications to delay the addition/updates when the message
219 // center is visible. 221 // center is visible.
220 scoped_ptr<internal::ChangeQueue> notification_queue_; 222 scoped_ptr<internal::ChangeQueue> notification_queue_;
221 223
222 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); 224 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl);
223 }; 225 };
224 226
225 } // namespace message_center 227 } // namespace message_center
226 228
227 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 229 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698