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

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

Issue 2018063002: Revert of Show message center on lock screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ui/message_center/fake_message_center.cc ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Management of the observer list. 70 // Management of the observer list.
71 virtual void AddObserver(MessageCenterObserver* observer) = 0; 71 virtual void AddObserver(MessageCenterObserver* observer) = 0;
72 virtual void RemoveObserver(MessageCenterObserver* observer) = 0; 72 virtual void RemoveObserver(MessageCenterObserver* observer) = 0;
73 73
74 // Queries of current notification list status. 74 // Queries of current notification list status.
75 virtual size_t NotificationCount() const = 0; 75 virtual size_t NotificationCount() const = 0;
76 virtual size_t UnreadNotificationCount() const = 0; 76 virtual size_t UnreadNotificationCount() const = 0;
77 virtual bool HasPopupNotifications() const = 0; 77 virtual bool HasPopupNotifications() const = 0;
78 virtual bool IsQuietMode() const = 0; 78 virtual bool IsQuietMode() const = 0;
79 virtual bool IsLockedState() const = 0;
80 virtual bool HasClickedListener(const std::string& id) = 0; 79 virtual bool HasClickedListener(const std::string& id) = 0;
81 80
82 // Find the notification with the corresponding id. Returns NULL if not found. 81 // Find the notification with the corresponding id. Returns NULL if not found.
83 // The returned instance is owned by the message center. 82 // The returned instance is owned by the message center.
84 virtual message_center::Notification* FindVisibleNotificationById( 83 virtual message_center::Notification* FindVisibleNotificationById(
85 const std::string& id) = 0; 84 const std::string& id) = 0;
86 85
87 // Gets all notifications to be shown to the user in the message center. Note 86 // Gets all notifications to be shown to the user in the message center. Note
88 // that queued changes due to the message center being open are not reflected 87 // that queued changes due to the message center being open are not reflected
89 // in this list. 88 // in this list.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Setter/getter of notifier settings provider. This will be a weak reference. 164 // Setter/getter of notifier settings provider. This will be a weak reference.
166 // This should be set at the initialization process. The getter may return 165 // This should be set at the initialization process. The getter may return
167 // NULL for tests. 166 // NULL for tests.
168 virtual void SetNotifierSettingsProvider( 167 virtual void SetNotifierSettingsProvider(
169 NotifierSettingsProvider* provider) = 0; 168 NotifierSettingsProvider* provider) = 0;
170 virtual NotifierSettingsProvider* GetNotifierSettingsProvider() = 0; 169 virtual NotifierSettingsProvider* GetNotifierSettingsProvider() = 0;
171 170
172 // This can be called to change the quiet mode state (without a timeout). 171 // This can be called to change the quiet mode state (without a timeout).
173 virtual void SetQuietMode(bool in_quiet_mode) = 0; 172 virtual void SetQuietMode(bool in_quiet_mode) = 0;
174 173
175 // This can be called to change the lock mode state.
176 virtual void SetLockedState(bool locked) = 0;
177
178 // Temporarily enables quiet mode for |expires_in| time. 174 // Temporarily enables quiet mode for |expires_in| time.
179 virtual void EnterQuietModeWithExpire(const base::TimeDelta& expires_in) = 0; 175 virtual void EnterQuietModeWithExpire(const base::TimeDelta& expires_in) = 0;
180 176
181 // Informs the notification list whether the message center is visible. 177 // Informs the notification list whether the message center is visible.
182 // This affects whether or not a message has been "read". 178 // This affects whether or not a message has been "read".
183 virtual void SetVisibility(Visibility visible) = 0; 179 virtual void SetVisibility(Visibility visible) = 0;
184 180
185 // Allows querying the visibility of the center. 181 // Allows querying the visibility of the center.
186 virtual bool IsMessageCenterVisible() const = 0; 182 virtual bool IsMessageCenterVisible() const = 0;
187 183
(...skipping 27 matching lines...) Expand all
215 // Note carefully: this may break the layout of message center. Shouldn't use 211 // Note carefully: this may break the layout of message center. Shouldn't use
216 // this method if the update changes its notification size. 212 // this method if the update changes its notification size.
217 virtual void ForceNotificationFlush(const std::string& id) {} 213 virtual void ForceNotificationFlush(const std::string& id) {}
218 214
219 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 215 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
220 }; 216 };
221 217
222 } // namespace message_center 218 } // namespace message_center
223 219
224 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 220 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « ui/message_center/fake_message_center.cc ('k') | ui/message_center/message_center_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698