Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: ash/common/wm/dock/docked_window_layout_manager.h

Issue 2620153003: Folds WmRootWindowController into RootWindowController (Closed)
Patch Set: merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "ash/common/shell_observer.h" 11 #include "ash/common/shell_observer.h"
12 #include "ash/common/wm/dock/dock_types.h" 12 #include "ash/common/wm/dock/dock_types.h"
13 #include "ash/common/wm/dock/docked_window_layout_manager_observer.h" 13 #include "ash/common/wm/dock/docked_window_layout_manager_observer.h"
14 #include "ash/common/wm/window_state_observer.h" 14 #include "ash/common/wm/window_state_observer.h"
15 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" 15 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
16 #include "ash/common/wm_activation_observer.h" 16 #include "ash/common/wm_activation_observer.h"
17 #include "ash/common/wm_window_observer.h" 17 #include "ash/common/wm_window_observer.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "ui/display/display_observer.h" 22 #include "ui/display/display_observer.h"
23 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
24 #include "ui/keyboard/keyboard_controller_observer.h" 24 #include "ui/keyboard/keyboard_controller_observer.h"
25 25
26 namespace ash { 26 namespace ash {
27 class DockedBackgroundWidget; 27 class DockedBackgroundWidget;
28 class DockedWindowLayoutManagerObserver; 28 class DockedWindowLayoutManagerObserver;
29 class DockedWindowResizerTest; 29 class DockedWindowResizerTest;
30 class WmRootWindowController; 30 class RootWindowController;
31 class WmShelf; 31 class WmShelf;
32 32
33 // DockedWindowLayoutManager is responsible for organizing windows when they are 33 // DockedWindowLayoutManager is responsible for organizing windows when they are
34 // docked to the side of a screen. It is associated with a specific container 34 // docked to the side of a screen. It is associated with a specific container
35 // window (i.e. kShellWindowId_DockedContainer) and controls the layout of any 35 // window (i.e. kShellWindowId_DockedContainer) and controls the layout of any
36 // windows added to that container. 36 // windows added to that container.
37 // 37 //
38 // The constructor takes a |dock_container| argument which is expected to set 38 // The constructor takes a |dock_container| argument which is expected to set
39 // its layout manager to this instance, e.g.: 39 // its layout manager to this instance, e.g.:
40 // dock_container->SetLayoutManager( 40 // dock_container->SetLayoutManager(
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void OnKeyboardClosed() override;
251 251
252 // Parent window associated with this layout manager. 252 // Parent window associated with this layout manager.
253 WmWindow* dock_container_; 253 WmWindow* dock_container_;
254 254
255 WmRootWindowController* root_window_controller_; 255 RootWindowController* root_window_controller_;
256 256
257 // Protect against recursive calls to Relayout(). 257 // Protect against recursive calls to Relayout().
258 bool in_layout_; 258 bool in_layout_;
259 259
260 // A window that is being dragged (whether docked or not). 260 // A window that is being dragged (whether docked or not).
261 // Windows are tracked by docked layout manager only if they are docked; 261 // Windows are tracked by docked layout manager only if they are docked;
262 // however we need to know if a window is being dragged in order to avoid 262 // however we need to know if a window is being dragged in order to avoid
263 // positioning it or even considering it for layout. 263 // positioning it or even considering it for layout.
264 WmWindow* dragged_window_; 264 WmWindow* dragged_window_;
265 265
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 // Observers of dock bounds changes. 314 // Observers of dock bounds changes.
315 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; 315 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_;
316 316
317 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); 317 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager);
318 }; 318 };
319 319
320 } // namespace ash 320 } // namespace ash
321 321
322 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ 322 #endif // ASH_COMMON_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698