Chromium Code Reviews| 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|. |