OLD | NEW |
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" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 int shell_container_id, | 52 int shell_container_id, |
53 views::Widget::InitParams* init_params) = 0; | 53 views::Widget::InitParams* init_params) = 0; |
54 | 54 |
55 // 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 |
56 // (in screen coordinates). | 56 // (in screen coordinates). |
57 // | 57 // |
58 // 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 |
59 // may extend outside the bounds of the window. | 59 // may extend outside the bounds of the window. |
60 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; | 60 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; |
61 | 61 |
| 62 // Gets the last location seen in a mouse event in this root window's |
| 63 // coordinates. This may return a point outside the root window's bounds. |
| 64 virtual gfx::Point GetLastMouseLocationInRoot() = 0; |
| 65 |
62 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; | 66 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; |
63 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; | 67 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; |
64 }; | 68 }; |
65 | 69 |
66 } // namespace ash | 70 } // namespace ash |
67 | 71 |
68 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 72 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |