OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ |
6 #define ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/shell_observer.h" | 9 #include "ash/common/shell_observer.h" |
10 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" | 10 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" |
11 #include "ash/common/wm/wm_types.h" | 11 #include "ash/common/wm/wm_types.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/keyboard/keyboard_controller.h" | 16 #include "ui/keyboard/keyboard_controller.h" |
17 #include "ui/keyboard/keyboard_controller_observer.h" | 17 #include "ui/keyboard/keyboard_controller_observer.h" |
18 | 18 |
19 namespace ash { | 19 namespace ash { |
20 namespace wm { | 20 namespace wm { |
21 class WindowState; | 21 class WindowState; |
22 class WMEvent; | 22 class WMEvent; |
23 } | 23 } |
24 | 24 |
25 // LockLayoutManager is used for the windows created in LockScreenContainer. | 25 // LockLayoutManager is used for the windows created in LockScreenContainer. |
26 // For Chrome OS this includes out-of-box/login/lock/multi-profile login use | 26 // For Chrome OS this includes out-of-box/login/lock/multi-profile login use |
27 // cases. LockScreenContainer does not use default work area definition. | 27 // cases. LockScreenContainer does not use default work area definition. |
28 // By default work area is defined as display area minus shelf, docked windows | 28 // By default work area is defined as display area minus shelf, and minus |
29 // and minus virtual keyboard bounds. | 29 // virtual keyboard bounds. |
30 // For windows in LockScreenContainer work area is display area minus virtual | 30 // For windows in LockScreenContainer work area is display area minus virtual |
31 // keyboard bounds (only if keyboard overscroll is disabled). If keyboard | 31 // keyboard bounds (only if keyboard overscroll is disabled). If keyboard |
32 // overscroll is enabled then work area always equals to display area size since | 32 // overscroll is enabled then work area always equals to display area size since |
33 // virtual keyboard changes inner workspace of each WebContents. | 33 // virtual keyboard changes inner workspace of each WebContents. |
34 // For all windows in LockScreenContainer default wm::WindowState is replaced | 34 // For all windows in LockScreenContainer default wm::WindowState is replaced |
35 // with LockWindowState. | 35 // with LockWindowState. |
36 class ASH_EXPORT LockLayoutManager | 36 class ASH_EXPORT LockLayoutManager |
37 : public wm::WmSnapToPixelLayoutManager, | 37 : public wm::WmSnapToPixelLayoutManager, |
38 public aura::WindowObserver, | 38 public aura::WindowObserver, |
39 public ShellObserver, | 39 public ShellObserver, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // The bounds of the keyboard. | 80 // The bounds of the keyboard. |
81 gfx::Rect keyboard_bounds_; | 81 gfx::Rect keyboard_bounds_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); | 83 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace ash | 86 } // namespace ash |
87 | 87 |
88 #endif // ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ | 88 #endif // ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ |
OLD | NEW |