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

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

Issue 2624613002: Promotes common functions to WmRootWindowController (Closed)
Patch Set: order 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/aura/wm_root_window_controller_aura.cc ('k') | ash/common/wm_root_window_controller.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 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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Returns the window associated with this WmRootWindowController. 106 // Returns the window associated with this WmRootWindowController.
107 virtual WmWindow* GetWindow() = 0; 107 virtual WmWindow* GetWindow() = 0;
108 108
109 // Gets the WmWindow whose shell window id is |container_id|. 109 // Gets the WmWindow whose shell window id is |container_id|.
110 WmWindow* GetContainer(int container_id); 110 WmWindow* GetContainer(int container_id);
111 const WmWindow* GetContainer(int container_id) const; 111 const WmWindow* GetContainer(int container_id) const;
112 112
113 // Configures |init_params| prior to initializing |widget|. 113 // Configures |init_params| prior to initializing |widget|.
114 // |shell_container_id| is the id of the container to parent |widget| to. 114 // |shell_container_id| is the id of the container to parent |widget| to.
115 virtual void ConfigureWidgetInitParamsForContainer( 115 void ConfigureWidgetInitParamsForContainer(
116 views::Widget* widget, 116 views::Widget* widget,
117 int shell_container_id, 117 int shell_container_id,
118 views::Widget::InitParams* init_params) = 0; 118 views::Widget::InitParams* init_params);
119 119
120 // Returns the window events will be targeted at for the specified location 120 // Returns the window events will be targeted at for the specified location
121 // (in screen coordinates). 121 // (in screen coordinates).
122 // 122 //
123 // NOTE: the returned window may not contain the location as resize handles 123 // NOTE: the returned window may not contain the location as resize handles
124 // may extend outside the bounds of the window. 124 // may extend outside the bounds of the window.
125 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; 125 WmWindow* FindEventTarget(const gfx::Point& location_in_screen);
126 126
127 // Gets the last location seen in a mouse event in this root window's 127 // Gets the last location seen in a mouse event in this root window's
128 // coordinates. This may return a point outside the root window's bounds. 128 // coordinates. This may return a point outside the root window's bounds.
129 virtual gfx::Point GetLastMouseLocationInRoot() = 0; 129 gfx::Point GetLastMouseLocationInRoot();
130 130
131 // Shows a context menu at the |location_in_screen|. 131 // Shows a context menu at the |location_in_screen|.
132 void ShowContextMenu(const gfx::Point& location_in_screen, 132 void ShowContextMenu(const gfx::Point& location_in_screen,
133 ui::MenuSourceType source_type); 133 ui::MenuSourceType source_type);
134 134
135 // Called when the wallpaper animation has started or finished. 135 // Called when the wallpaper animation has started or finished.
136 // TODO: port remaining classic ash wallpaper functionality here. 136 // TODO: port remaining classic ash wallpaper functionality here.
137 virtual void OnInitialWallpaperAnimationStarted(); 137 virtual void OnInitialWallpaperAnimationStarted();
138 virtual void OnWallpaperAnimationFinished(views::Widget* widget); 138 virtual void OnWallpaperAnimationFinished(views::Widget* widget);
139 139
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 std::unique_ptr<ui::MenuModel> menu_model_; 185 std::unique_ptr<ui::MenuModel> menu_model_;
186 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; 186 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_;
187 std::unique_ptr<views::MenuRunner> menu_runner_; 187 std::unique_ptr<views::MenuRunner> menu_runner_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); 189 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController);
190 }; 190 };
191 191
192 } // namespace ash 192 } // namespace ash
193 193
194 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ 194 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_root_window_controller_aura.cc ('k') | ash/common/wm_root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698