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

Unified Diff: ui/message_center/views/message_center_view.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/views/message_center_view.h
diff --git a/ui/message_center/views/message_center_view.h b/ui/message_center/views/message_center_view.h
index 9a37ade9987b5ba9773f0264c67d9b650415a9d1..93bedd5c17851d08afdc81297f5cf93139588a2e 100644
--- a/ui/message_center/views/message_center_view.h
+++ b/ui/message_center/views/message_center_view.h
@@ -73,6 +73,7 @@ class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
void OnNotificationAdded(const std::string& id) override;
void OnNotificationRemoved(const std::string& id, bool by_user) override;
void OnNotificationUpdated(const std::string& id) override;
+ void OnLockedStateChanged(bool locked) override;
// Overridden from MessageCenterController:
void ClickOnNotification(const std::string& notification_id) override;
@@ -96,6 +97,8 @@ class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
enum class Mode { NOTIFICATIONS, SETTINGS, BUTTONS_ONLY };
+ static bool disable_animation_for_testing;
+
void AddNotificationAt(const Notification& notification, int index);
base::string16 GetButtonBarTitle() const;
void Update(bool animate);
@@ -137,6 +140,7 @@ class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
bool is_closing_;
bool is_clearing_ = false;
+ bool is_locked_ = false;
// Current view mode. During animation, it is the target mode.
Mode mode_ = Mode::BUTTONS_ONLY;

Powered by Google App Engine
This is Rietveld 408576698