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