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

Side by Side Diff: ui/message_center/message_center.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) 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Sets the large image for the notifications of type == TYPE_IMAGE. Specified 96 // Sets the large image for the notifications of type == TYPE_IMAGE. Specified
97 // image will appear below of the notification. 97 // image will appear below of the notification.
98 virtual void SetNotificationImage(const std::string& notification_id, 98 virtual void SetNotificationImage(const std::string& notification_id,
99 const gfx::Image& image) = 0; 99 const gfx::Image& image) = 0;
100 100
101 // Sets the image for the icon of the specific action button. 101 // Sets the image for the icon of the specific action button.
102 virtual void SetNotificationButtonIcon(const std::string& notification_id, 102 virtual void SetNotificationButtonIcon(const std::string& notification_id,
103 int button_index, 103 int button_index,
104 const gfx::Image& image) = 0; 104 const gfx::Image& image) = 0;
105 105
106 // Sets the small image for the notification.
107 virtual void SetNotificationSmallImage(const std::string& notification_id,
Dmitry Titov 2014/01/29 23:07:05 If we don't call this and don't plan to in the nea
dewittj 2014/01/30 00:41:56 Done.
108 const gfx::Image& image) = 0;
109
106 // Operations happening especially from GUIs: click, expand, disable, 110 // Operations happening especially from GUIs: click, expand, disable,
107 // and settings. 111 // and settings.
108 // Searches through the notifications and disables any that match the 112 // Searches through the notifications and disables any that match the
109 // extension id given. 113 // extension id given.
110 virtual void DisableNotificationsByNotifier( 114 virtual void DisableNotificationsByNotifier(
111 const NotifierId& notifier_id) = 0; 115 const NotifierId& notifier_id) = 0;
112 116
113 // Reformat a notification to show its entire text content. 117 // Reformat a notification to show its entire text content.
114 virtual void ExpandNotification(const std::string& id) = 0; 118 virtual void ExpandNotification(const std::string& id) = 0;
115 119
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 MessageCenter(); 176 MessageCenter();
173 virtual ~MessageCenter(); 177 virtual ~MessageCenter();
174 178
175 private: 179 private:
176 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 180 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
177 }; 181 };
178 182
179 } // namespace message_center 183 } // namespace message_center
180 184
181 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 185 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698