| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // area change. Passing |reason| to observers allows selectively skipping | 242 // area change. Passing |reason| to observers allows selectively skipping |
| 243 // notifications. | 243 // notifications. |
| 244 void UpdateDockBounds(DockedWindowLayoutManagerObserver::Reason reason); | 244 void UpdateDockBounds(DockedWindowLayoutManagerObserver::Reason reason); |
| 245 | 245 |
| 246 // Called whenever the window stacking order needs to be updated (e.g. focus | 246 // Called whenever the window stacking order needs to be updated (e.g. focus |
| 247 // changes or a window is moved). | 247 // changes or a window is moved). |
| 248 void UpdateStacking(WmWindow* active_window); | 248 void UpdateStacking(WmWindow* active_window); |
| 249 | 249 |
| 250 // keyboard::KeyboardControllerObserver: | 250 // keyboard::KeyboardControllerObserver: |
| 251 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; | 251 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; |
| 252 void OnKeyboardClosed() override {} |
| 252 | 253 |
| 253 // Parent window associated with this layout manager. | 254 // Parent window associated with this layout manager. |
| 254 WmWindow* dock_container_; | 255 WmWindow* dock_container_; |
| 255 | 256 |
| 256 WmRootWindowController* root_window_controller_; | 257 WmRootWindowController* root_window_controller_; |
| 257 | 258 |
| 258 // Protect against recursive calls to Relayout(). | 259 // Protect against recursive calls to Relayout(). |
| 259 bool in_layout_; | 260 bool in_layout_; |
| 260 | 261 |
| 261 // A window that is being dragged (whether docked or not). | 262 // A window that is being dragged (whether docked or not). |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 315 |
| 315 // Observers of dock bounds changes. | 316 // Observers of dock bounds changes. |
| 316 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 317 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
| 317 | 318 |
| 318 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 319 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
| 319 }; | 320 }; |
| 320 | 321 |
| 321 } // namespace ash | 322 } // namespace ash |
| 322 | 323 |
| 323 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 324 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| OLD | NEW |