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

Side by Side Diff: ash/common/wm_root_window_controller.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WM_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_COMMON_WM_WM_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm/workspace/workspace_types.h" 9 #include "ash/common/wm/workspace/workspace_types.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Point; 13 class Point;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 17
18 class AlwaysOnTopController; 18 class AlwaysOnTopController;
19 class WmShell;
20 class WmRootWindowControllerObserver;
21 class WmWindow;
19 22
20 namespace wm { 23 namespace wm {
21
22 class WmGlobals;
23 class WmRootWindowControllerObserver;
24 class WmShelf; 24 class WmShelf;
25 class WmWindow; 25 }
26 26
27 // Provides state associated with a root of a window hierarchy. 27 // Provides state associated with a root of a window hierarchy.
28 class ASH_EXPORT WmRootWindowController { 28 class ASH_EXPORT WmRootWindowController {
29 public: 29 public:
30 virtual ~WmRootWindowController() {} 30 virtual ~WmRootWindowController() {}
31 31
32 virtual bool HasShelf() = 0; 32 virtual bool HasShelf() = 0;
33 33
34 virtual WmGlobals* GetGlobals() = 0; 34 virtual WmShell* GetShell() = 0;
35 35
36 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; 36 virtual wm::WorkspaceWindowState GetWorkspaceWindowState() = 0;
37 37
38 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0; 38 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0;
39 39
40 virtual WmShelf* GetShelf() = 0; 40 virtual wm::WmShelf* GetShelf() = 0;
41 41
42 // Returns the window associated with this WmRootWindowController. 42 // Returns the window associated with this WmRootWindowController.
43 virtual WmWindow* GetWindow() = 0; 43 virtual WmWindow* GetWindow() = 0;
44 44
45 // Configures |init_params| prior to initializing |widget|. 45 // Configures |init_params| prior to initializing |widget|.
46 // |shell_container_id| is the id of the container to parent |widget| to. 46 // |shell_container_id| is the id of the container to parent |widget| to.
47 virtual void ConfigureWidgetInitParamsForContainer( 47 virtual void ConfigureWidgetInitParamsForContainer(
48 views::Widget* widget, 48 views::Widget* widget,
49 int shell_container_id, 49 int shell_container_id,
50 views::Widget::InitParams* init_params) = 0; 50 views::Widget::InitParams* init_params) = 0;
51 51
52 // Returns the window events will be targeted at for the specified location 52 // Returns the window events will be targeted at for the specified location
53 // (in screen coordinates). 53 // (in screen coordinates).
54 // 54 //
55 // NOTE: the returned window may not contain the location as resize handles 55 // NOTE: the returned window may not contain the location as resize handles
56 // may extend outside the bounds of the window. 56 // may extend outside the bounds of the window.
57 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; 57 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0;
58 58
59 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; 59 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
60 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; 60 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
61 }; 61 };
62 62
63 } // namespace wm
64 } // namespace ash 63 } // namespace ash
65 64
66 #endif // ASH_COMMON_WM_WM_ROOT_WINDOW_CONTROLLER_H_ 65 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698