| OLD | NEW |
| 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 ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // closely with ShelfLayoutManager. | 57 // closely with ShelfLayoutManager. |
| 58 class ASH_EXPORT ShelfLayoutManager : | 58 class ASH_EXPORT ShelfLayoutManager : |
| 59 public aura::LayoutManager, | 59 public aura::LayoutManager, |
| 60 public ash::ShellObserver, | 60 public ash::ShellObserver, |
| 61 public aura::client::ActivationChangeObserver, | 61 public aura::client::ActivationChangeObserver, |
| 62 public DockedWindowLayoutManagerObserver, | 62 public DockedWindowLayoutManagerObserver, |
| 63 public keyboard::KeyboardControllerObserver, | 63 public keyboard::KeyboardControllerObserver, |
| 64 public LockStateObserver, | 64 public LockStateObserver, |
| 65 public SessionStateObserver { | 65 public SessionStateObserver { |
| 66 public: | 66 public: |
| 67 | |
| 68 // We reserve a small area on the edge of the workspace area to ensure that | 67 // We reserve a small area on the edge of the workspace area to ensure that |
| 69 // the resize handle at the edge of the window can be hit. | 68 // the resize handle at the edge of the window can be hit. |
| 70 static const int kWorkspaceAreaVisibleInset; | 69 static const int kWorkspaceAreaVisibleInset; |
| 71 | 70 |
| 72 // When autohidden we extend the touch hit target onto the screen so that the | 71 // When autohidden we extend the touch hit target onto the screen so that the |
| 73 // user can drag the shelf out. | 72 // user can drag the shelf out. |
| 74 static const int kWorkspaceAreaAutoHideInset; | 73 static const int kWorkspaceAreaAutoHideInset; |
| 75 | 74 |
| 76 // Size of the shelf when auto-hidden. | 75 // Size of the shelf when auto-hidden. |
| 77 static const int kAutoHideSize; | 76 static const int kAutoHideSize; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 333 |
| 335 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from | 334 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from |
| 336 // our destructor. We avoid that as at the time we're deleted Shell is being | 335 // our destructor. We avoid that as at the time we're deleted Shell is being |
| 337 // deleted too. | 336 // deleted too. |
| 338 aura::Window* root_window_; | 337 aura::Window* root_window_; |
| 339 | 338 |
| 340 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling | 339 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling |
| 341 // UpdateBoundsAndOpacity() again from SetChildBounds(). | 340 // UpdateBoundsAndOpacity() again from SetChildBounds(). |
| 342 bool updating_bounds_; | 341 bool updating_bounds_; |
| 343 | 342 |
| 344 // If true, the shelf gets forced (e.g. by the maximize mode) to be always | |
| 345 // visible. | |
| 346 bool force_shelf_always_visibile_; | |
| 347 | |
| 348 // See description above setter. | 343 // See description above setter. |
| 349 ShelfAutoHideBehavior auto_hide_behavior_; | 344 ShelfAutoHideBehavior auto_hide_behavior_; |
| 350 | 345 |
| 351 // See description above getter. | 346 // See description above getter. |
| 352 ShelfAlignment alignment_; | 347 ShelfAlignment alignment_; |
| 353 | 348 |
| 354 // Current state. | 349 // Current state. |
| 355 State state_; | 350 State state_; |
| 356 | 351 |
| 357 ShelfWidget* shelf_; | 352 ShelfWidget* shelf_; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 401 |
| 407 // The show hide animation duration override or 0 for default. | 402 // The show hide animation duration override or 0 for default. |
| 408 int duration_override_in_ms_; | 403 int duration_override_in_ms_; |
| 409 | 404 |
| 410 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 405 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 411 }; | 406 }; |
| 412 | 407 |
| 413 } // namespace ash | 408 } // namespace ash |
| 414 | 409 |
| 415 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 410 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |