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_WM_LOCK_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_LOCK_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_ | 6 #define ASH_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_types.h" | 10 #include "ash/common/wm/wm_types.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void OnWindowDestroying(aura::Window* window) override; | 71 void OnWindowDestroying(aura::Window* window) override; |
72 void OnWindowBoundsChanged(aura::Window* window, | 72 void OnWindowBoundsChanged(aura::Window* window, |
73 const gfx::Rect& old_bounds, | 73 const gfx::Rect& old_bounds, |
74 const gfx::Rect& new_bounds) override; | 74 const gfx::Rect& new_bounds) override; |
75 | 75 |
76 // ShellObserver: | 76 // ShellObserver: |
77 void OnVirtualKeyboardStateChanged(bool activated) override; | 77 void OnVirtualKeyboardStateChanged(bool activated) override; |
78 | 78 |
79 // keyboard::KeyboardControllerObserver overrides: | 79 // keyboard::KeyboardControllerObserver overrides: |
80 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 80 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
| 81 void OnKeyboardHidden() override; |
81 | 82 |
82 private: | 83 private: |
83 // Adjusts the bounds of all managed windows when the display area changes. | 84 // Adjusts the bounds of all managed windows when the display area changes. |
84 // This happens when the display size, work area insets has changed. | 85 // This happens when the display size, work area insets has changed. |
85 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); | 86 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); |
86 | 87 |
87 aura::Window* window_; | 88 aura::Window* window_; |
88 aura::Window* root_window_; | 89 aura::Window* root_window_; |
89 | 90 |
90 // True is subscribed as keyboard controller observer. | 91 // True is subscribed as keyboard controller observer. |
91 bool is_observing_keyboard_; | 92 bool is_observing_keyboard_; |
92 | 93 |
93 // The bounds of the keyboard. | 94 // The bounds of the keyboard. |
94 gfx::Rect keyboard_bounds_; | 95 gfx::Rect keyboard_bounds_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); | 97 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace ash | 100 } // namespace ash |
100 | 101 |
101 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ | 102 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ |
OLD | NEW |