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

Unified Diff: ash/wm/shelf_layout_manager.h

Issue 9965070: Restore tray background when locking screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review suggestions Created 8 years, 9 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
« no previous file with comments | « no previous file | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/shelf_layout_manager.h
diff --git a/ash/wm/shelf_layout_manager.h b/ash/wm/shelf_layout_manager.h
index 91d03e3f1fbe530aea3334078220a158500aabe8..10988c4cfbcef23ce84d56d82cccb4d94881c217 100644
--- a/ash/wm/shelf_layout_manager.h
+++ b/ash/wm/shelf_layout_manager.h
@@ -150,7 +150,9 @@ class ASH_EXPORT ShelfLayoutManager : public aura::LayoutManager,
};
struct State {
- State() : visibility_state(VISIBLE), auto_hide_state(AUTO_HIDE_HIDDEN) {}
+ State() : visibility_state(VISIBLE),
+ auto_hide_state(AUTO_HIDE_HIDDEN),
+ is_screen_locked(false) {}
// Returns true if the two states are considered equal. As
// |auto_hide_state| only matters if |visibility_state| is |AUTO_HIDE|,
@@ -158,11 +160,13 @@ class ASH_EXPORT ShelfLayoutManager : public aura::LayoutManager,
bool Equals(const State& other) const {
return other.visibility_state == visibility_state &&
(visibility_state != AUTO_HIDE ||
- other.auto_hide_state == auto_hide_state);
+ other.auto_hide_state == auto_hide_state) &&
+ other.is_screen_locked == is_screen_locked;
}
VisibilityState visibility_state;
AutoHideState auto_hide_state;
+ bool is_screen_locked;
};
// Sets the visibility of the shelf to |state|.
« no previous file with comments | « no previous file | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698