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