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

Unified 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: Addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: ui/message_center/notification_list.h
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index 6b30a2ebbf73ae78803c68d1e15047e911ece57e..f52217b0787b9dde14c367812112e7533f2851b6 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -56,14 +56,13 @@ class MESSAGE_CENTER_EXPORT NotificationList {
// toasts.
typedef std::set<Notification*, CompareTimestampSerial> PopupNotifications;
- explicit NotificationList();
+ explicit NotificationList(MessageCenter* message_center);
virtual ~NotificationList();
- // Affects whether or not a message has been "read". Collects the set of
- // ids whose state have changed and set to |udpated_ids|. NULL if updated
- // ids don't matter.
- void SetMessageCenterVisible(bool visible,
- std::set<std::string>* updated_ids);
+ // Makes a message "read". Collects the set of ids whose state have changed
+ // and set to |udpated_ids|. NULL if updated ids don't matter.
+ void SetNotificationsShown(const NotificationBlockers& blockers,
+ std::set<std::string>* updated_ids);
void AddNotification(std::unique_ptr<Notification> notification);
@@ -137,8 +136,6 @@ class MESSAGE_CENTER_EXPORT NotificationList {
size_t NotificationCount(const NotificationBlockers& blockers) const;
size_t UnreadCount(const NotificationBlockers& blockers) const;
- bool is_message_center_visible() const { return message_center_visible_; }
-
private:
friend class NotificationListTest;
FRIEND_TEST_ALL_PREFIXES(NotificationListTest,
@@ -151,8 +148,8 @@ class MESSAGE_CENTER_EXPORT NotificationList {
void PushNotification(std::unique_ptr<Notification> notification);
+ MessageCenter* message_center_; // owner
Notifications notifications_;
- bool message_center_visible_;
bool quiet_mode_;
DISALLOW_COPY_AND_ASSIGN(NotificationList);

Powered by Google App Engine
This is Rietveld 408576698