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

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: 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..03d42663ccdd9419dee618622a48555d8bf07531 100644
--- a/ash/wm/shelf_layout_manager.h
+++ b/ash/wm/shelf_layout_manager.h
@@ -150,7 +150,8 @@ 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),
sky 2012/04/02 21:08:14 when you can't fit all the members on a single lin
flackr 2012/04/02 23:12:46 Done.
+ locked_state(false) {}
// Returns true if the two states are considered equal. As
// |auto_hide_state| only matters if |visibility_state| is |AUTO_HIDE|,
@@ -158,11 +159,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.locked_state == locked_state;
}
VisibilityState visibility_state;
AutoHideState auto_hide_state;
+ bool locked_state;
sky 2012/04/02 21:08:14 locked_state -> is_screen_locked
flackr 2012/04/02 23:12:46 Done.
};
// 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