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_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Called whenever the panel stacking order needs to be updated (e.g. focus | 164 // Called whenever the panel stacking order needs to be updated (e.g. focus |
165 // changes or a panel is moved). | 165 // changes or a panel is moved). |
166 void UpdateStacking(WmWindow* active_panel); | 166 void UpdateStacking(WmWindow* active_panel); |
167 | 167 |
168 // Update the callout arrows for all managed panels. | 168 // Update the callout arrows for all managed panels. |
169 void UpdateCallouts(); | 169 void UpdateCallouts(); |
170 | 170 |
171 // Overridden from keyboard::KeyboardControllerObserver: | 171 // Overridden from keyboard::KeyboardControllerObserver: |
172 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; | 172 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; |
| 173 void OnKeyboardHidden() override; |
173 | 174 |
174 // Parent window associated with this layout manager. | 175 // Parent window associated with this layout manager. |
175 WmWindow* panel_container_; | 176 WmWindow* panel_container_; |
176 | 177 |
177 WmRootWindowController* root_window_controller_; | 178 WmRootWindowController* root_window_controller_; |
178 | 179 |
179 // Protect against recursive calls to OnWindowAddedToLayout(). | 180 // Protect against recursive calls to OnWindowAddedToLayout(). |
180 bool in_add_window_; | 181 bool in_add_window_; |
181 // Protect against recursive calls to Relayout(). | 182 // Protect against recursive calls to Relayout(). |
182 bool in_layout_; | 183 bool in_layout_; |
(...skipping 15 matching lines...) Expand all Loading... |
198 // are currently focused. | 199 // are currently focused. |
199 WmWindow* last_active_panel_; | 200 WmWindow* last_active_panel_; |
200 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 201 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
201 | 202 |
202 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 203 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
203 }; | 204 }; |
204 | 205 |
205 } // namespace ash | 206 } // namespace ash |
206 | 207 |
207 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 208 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
OLD | NEW |