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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/common/wm_root_window_controller.h
diff --git a/ash/wm/common/wm_root_window_controller.h b/ash/wm/common/wm_root_window_controller.h
index 4d5e02327985752314ff4b296bec3ab1733bcadd..3c7aa500936380ab408c60cb62249a18d1c753c5 100644
--- a/ash/wm/common/wm_root_window_controller.h
+++ b/ash/wm/common/wm_root_window_controller.h
@@ -11,6 +11,10 @@
#include "ash/wm/common/workspace/workspace_types.h"
#include "ui/views/widget/widget.h"
+namespace gfx {
+class Point;
+}
+
namespace ash {
class AlwaysOnTopController;
@@ -49,6 +53,13 @@ class ASH_EXPORT WmRootWindowController {
int shell_container_id,
views::Widget::InitParams* init_params) = 0;
+ // Returns the window events will be targeted at for the specified location
+ // (in screen coordinates).
+ //
+ // NOTE: the returned window may not contain the location as resize handles
+ // may extend outside the bounds of the window.
+ virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0;
+
virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698