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

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

Issue 1986493002: Show message center on lock screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Notification Center. 52 // Notification Center.
53 typedef std::set<Notification*, ComparePriorityTimestampSerial> Notifications; 53 typedef std::set<Notification*, ComparePriorityTimestampSerial> Notifications;
54 54
55 // Auto-sorted set used to return the Notifications to be shown as popup 55 // Auto-sorted set used to return the Notifications to be shown as popup
56 // toasts. 56 // toasts.
57 typedef std::set<Notification*, CompareTimestampSerial> PopupNotifications; 57 typedef std::set<Notification*, CompareTimestampSerial> PopupNotifications;
58 58
59 explicit NotificationList(); 59 explicit NotificationList();
60 virtual ~NotificationList(); 60 virtual ~NotificationList();
61 61
62 // Affects whether or not a message has been "read". Collects the set of 62 void SetMessageCenterVisible(bool visible);
dewittj 2016/05/19 17:34:03 please add comment about what this does
yoshiki 2016/05/24 17:00:14 Removed this method.
63 // ids whose state have changed and set to |udpated_ids|. NULL if updated 63
64 // ids don't matter. 64 // Makes a message "read". Collects the set of ids whose state have changed
65 void SetMessageCenterVisible(bool visible, 65 // and set to |udpated_ids|. NULL if updated ids don't matter.
66 std::set<std::string>* updated_ids); 66 void SetNotificationsShown(const NotificationBlockers& blockers,
67 std::set<std::string>* updated_ids);
67 68
68 void AddNotification(std::unique_ptr<Notification> notification); 69 void AddNotification(std::unique_ptr<Notification> notification);
69 70
70 void UpdateNotificationMessage( 71 void UpdateNotificationMessage(
71 const std::string& old_id, 72 const std::string& old_id,
72 std::unique_ptr<Notification> new_notification); 73 std::unique_ptr<Notification> new_notification);
73 74
74 void RemoveNotification(const std::string& id); 75 void RemoveNotification(const std::string& id);
75 76
76 Notifications GetNotificationsByNotifierId(const NotifierId& notifier_id); 77 Notifications GetNotificationsByNotifierId(const NotifierId& notifier_id);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 Notifications notifications_; 155 Notifications notifications_;
155 bool message_center_visible_; 156 bool message_center_visible_;
156 bool quiet_mode_; 157 bool quiet_mode_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(NotificationList); 159 DISALLOW_COPY_AND_ASSIGN(NotificationList);
159 }; 160 };
160 161
161 } // namespace message_center 162 } // namespace message_center
162 163
163 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_ 164 #endif // UI_MESSAGE_CENTER_NOTIFICATION_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698