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

Unified Diff: ash/mus/move_event_handler.h

Issue 2285703003: Moves WorkspaceEventHandler to ash/common (Closed)
Patch Set: merge 2 trunk Created 4 years, 4 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
« no previous file with comments | « ash/mus/bridge/workspace_event_handler_mus.cc ('k') | ash/mus/move_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/move_event_handler.h
diff --git a/ash/mus/move_event_handler.h b/ash/mus/move_event_handler.h
index a51caf1b707fdfa234f85c7257122e37c9bad0e1..b5aab75a646edb6155b264f7ae23ea43f82c0082 100644
--- a/ash/mus/move_event_handler.h
+++ b/ash/mus/move_event_handler.h
@@ -26,9 +26,13 @@ namespace ash {
namespace mus {
class WmWindowMus;
+class WorkspaceEventHandlerMus;
// EventHandler attached to windows that may be dragged and/or resized. This
// forwards to WmToplevelWindowEventHandler to handle the actual drag/resize.
+//
+// TODO(sky): rename this class to better reflect that it handles redirecting
+// events in addition to drag.
class MoveEventHandler : public ui::EventHandler, public aura::WindowObserver {
public:
MoveEventHandler(ui::Window* mus_window,
@@ -59,6 +63,10 @@ class MoveEventHandler : public ui::EventHandler, public aura::WindowObserver {
// Removes observer and EventHandler installed on |root_window_|.
void Detach();
+ // Returns the WorkspaceEventHandlerMus, or null if the window is not in a
+ // workspace.
+ WorkspaceEventHandlerMus* GetWorkspaceEventHandlerMus();
+
// Overridden from ui::EventHandler:
void OnMouseEvent(ui::MouseEvent* event) override;
void OnGestureEvent(ui::GestureEvent* event) override;
« no previous file with comments | « ash/mus/bridge/workspace_event_handler_mus.cc ('k') | ash/mus/move_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698