| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 6 #define ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // area change. Passing |reason| to observers allows selectively skipping | 233 // area change. Passing |reason| to observers allows selectively skipping |
| 234 // notifications. | 234 // notifications. |
| 235 void UpdateDockBounds(DockedWindowLayoutManagerObserver::Reason reason); | 235 void UpdateDockBounds(DockedWindowLayoutManagerObserver::Reason reason); |
| 236 | 236 |
| 237 // Called whenever the window stacking order needs to be updated (e.g. focus | 237 // Called whenever the window stacking order needs to be updated (e.g. focus |
| 238 // changes or a window is moved). | 238 // changes or a window is moved). |
| 239 void UpdateStacking(WmWindow* active_window); | 239 void UpdateStacking(WmWindow* active_window); |
| 240 | 240 |
| 241 // keyboard::KeyboardControllerObserver: | 241 // keyboard::KeyboardControllerObserver: |
| 242 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; | 242 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; |
| 243 void OnKeyboardClosed() override {} |
| 243 | 244 |
| 244 // Parent window associated with this layout manager. | 245 // Parent window associated with this layout manager. |
| 245 WmWindow* dock_container_; | 246 WmWindow* dock_container_; |
| 246 | 247 |
| 247 WmRootWindowController* root_window_controller_; | 248 WmRootWindowController* root_window_controller_; |
| 248 | 249 |
| 249 // Protect against recursive calls to Relayout(). | 250 // Protect against recursive calls to Relayout(). |
| 250 bool in_layout_; | 251 bool in_layout_; |
| 251 | 252 |
| 252 // A window that is being dragged (whether docked or not). | 253 // A window that is being dragged (whether docked or not). |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 303 |
| 303 // Observers of dock bounds changes. | 304 // Observers of dock bounds changes. |
| 304 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 305 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
| 305 | 306 |
| 306 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 307 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
| 307 }; | 308 }; |
| 308 | 309 |
| 309 } // namespace ash | 310 } // namespace ash |
| 310 | 311 |
| 311 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 312 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| OLD | NEW |