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

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

Issue 1936223002: Refactors MultiWindowResizeController to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullptr Created 4 years, 7 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_WM_COMMON_WM_ROOT_CONTROLLER_H_ 5 #ifndef ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_
6 #define ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ 6 #define ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/wm/common/workspace/workspace_types.h" 11 #include "ash/wm/common/workspace/workspace_types.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 namespace gfx {
15 class Point;
16 }
17
14 namespace ash { 18 namespace ash {
15 19
16 class AlwaysOnTopController; 20 class AlwaysOnTopController;
17 21
18 namespace wm { 22 namespace wm {
19 23
20 class WmGlobals; 24 class WmGlobals;
21 class WmRootWindowControllerObserver; 25 class WmRootWindowControllerObserver;
22 class WmShelf; 26 class WmShelf;
23 class WmWindow; 27 class WmWindow;
(...skipping 18 matching lines...) Expand all
42 // Returns the window associated with this WmRootWindowController. 46 // Returns the window associated with this WmRootWindowController.
43 virtual WmWindow* GetWindow() = 0; 47 virtual WmWindow* GetWindow() = 0;
44 48
45 // Configures |init_params| prior to initializing |widget|. 49 // Configures |init_params| prior to initializing |widget|.
46 // |shell_container_id| is the id of the container to parent |widget| to. 50 // |shell_container_id| is the id of the container to parent |widget| to.
47 virtual void ConfigureWidgetInitParamsForContainer( 51 virtual void ConfigureWidgetInitParamsForContainer(
48 views::Widget* widget, 52 views::Widget* widget,
49 int shell_container_id, 53 int shell_container_id,
50 views::Widget::InitParams* init_params) = 0; 54 views::Widget::InitParams* init_params) = 0;
51 55
56 // Returns the window events will be targeted at for the specified location
57 // (in screen coordinates).
58 //
59 // NOTE: the returned window may not contain the location as resize handles
60 // may extend outside the bounds of the window.
61 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0;
62
52 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; 63 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
53 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; 64 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
54 }; 65 };
55 66
56 } // namespace wm 67 } // namespace wm
57 } // namespace ash 68 } // namespace ash
58 69
59 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ 70 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698