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

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

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome Created 4 years, 5 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/aura/wm_window_aura.cc ('k') | ash/common/wm_window.h » ('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 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_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_COMMON_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 WmShelf; 19 class WmShelf;
20 class WmShell; 20 class WmShell;
21 class WmRootWindowControllerObserver; 21 class WmRootWindowControllerObserver;
22 class WmWindow; 22 class WmWindow;
23 class WorkspaceLayoutManagerBackdropDelegate;
23 24
24 // Provides state associated with a root of a window hierarchy. 25 // Provides state associated with a root of a window hierarchy.
25 class ASH_EXPORT WmRootWindowController { 26 class ASH_EXPORT WmRootWindowController {
26 public: 27 public:
27 virtual ~WmRootWindowController() {} 28 virtual ~WmRootWindowController() {}
28 29
29 virtual bool HasShelf() = 0; 30 virtual bool HasShelf() = 0;
30 31
31 virtual WmShell* GetShell() = 0; 32 virtual WmShell* GetShell() = 0;
32 33
33 virtual wm::WorkspaceWindowState GetWorkspaceWindowState() = 0; 34 virtual wm::WorkspaceWindowState GetWorkspaceWindowState() = 0;
34 35
36 // TODO: remove when WorkspaceController moved to common:
37 // http://crbug.com/624173.
38 virtual void SetMaximizeBackdropDelegate(
39 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) = 0;
40
35 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0; 41 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0;
36 42
37 virtual WmShelf* GetShelf() = 0; 43 virtual WmShelf* GetShelf() = 0;
38 44
39 // Returns the window associated with this WmRootWindowController. 45 // Returns the window associated with this WmRootWindowController.
40 virtual WmWindow* GetWindow() = 0; 46 virtual WmWindow* GetWindow() = 0;
41 47
42 // Configures |init_params| prior to initializing |widget|. 48 // Configures |init_params| prior to initializing |widget|.
43 // |shell_container_id| is the id of the container to parent |widget| to. 49 // |shell_container_id| is the id of the container to parent |widget| to.
44 virtual void ConfigureWidgetInitParamsForContainer( 50 virtual void ConfigureWidgetInitParamsForContainer(
45 views::Widget* widget, 51 views::Widget* widget,
46 int shell_container_id, 52 int shell_container_id,
47 views::Widget::InitParams* init_params) = 0; 53 views::Widget::InitParams* init_params) = 0;
48 54
49 // Returns the window events will be targeted at for the specified location 55 // Returns the window events will be targeted at for the specified location
50 // (in screen coordinates). 56 // (in screen coordinates).
51 // 57 //
52 // NOTE: the returned window may not contain the location as resize handles 58 // NOTE: the returned window may not contain the location as resize handles
53 // may extend outside the bounds of the window. 59 // may extend outside the bounds of the window.
54 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; 60 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0;
55 61
56 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; 62 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
57 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; 63 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
58 }; 64 };
59 65
60 } // namespace ash 66 } // namespace ash
61 67
62 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ 68 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | ash/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698