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

Side by Side Diff: ui/message_center/notification_list.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_NOTIFICATION_LIST_H_ 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
6 #define UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 6 #define UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Returns true if the notification exists and was updated. 76 // Returns true if the notification exists and was updated.
77 bool SetNotificationImage(const std::string& notification_id, 77 bool SetNotificationImage(const std::string& notification_id,
78 const gfx::Image& image); 78 const gfx::Image& image);
79 79
80 // Returns true if the notification and button exist and were updated. 80 // Returns true if the notification and button exist and were updated.
81 bool SetNotificationButtonIcon(const std::string& notification_id, 81 bool SetNotificationButtonIcon(const std::string& notification_id,
82 int button_index, 82 int button_index,
83 const gfx::Image& image); 83 const gfx::Image& image);
84 84
85 // Returns true if the notification exists and was updated.
86 bool SetNotificationSmallImage(const std::string& notification_id,
87 const gfx::Image& image);
88
85 // Returns true if |id| matches a notification in the list. 89 // Returns true if |id| matches a notification in the list.
86 bool HasNotification(const std::string& id); 90 bool HasNotification(const std::string& id);
87 91
88 // Returns true if |id| matches a notification in the list and that 92 // Returns true if |id| matches a notification in the list and that
89 // notification's type matches the given type. 93 // notification's type matches the given type.
90 bool HasNotificationOfType(const std::string& id, 94 bool HasNotificationOfType(const std::string& id,
91 const NotificationType type); 95 const NotificationType type);
92 96
93 // Returns false if the first notification has been shown as a popup (which 97 // Returns false if the first notification has been shown as a popup (which
94 // means that all notifications have been shown). 98 // means that all notifications have been shown).
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Notifications notifications_; 154 Notifications notifications_;
151 bool message_center_visible_; 155 bool message_center_visible_;
152 bool quiet_mode_; 156 bool quiet_mode_;
153 157
154 DISALLOW_COPY_AND_ASSIGN(NotificationList); 158 DISALLOW_COPY_AND_ASSIGN(NotificationList);
155 }; 159 };
156 160
157 } // namespace message_center 161 } // namespace message_center
158 162
159 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 163 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698