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

Unified Diff: ash/mus/frame/move_event_handler.h

Issue 2099513003: mus: Use the new drag API to implement tab dragging in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dragging-part-1
Patch Set: Integrate win compile fix Created 4 years, 6 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 | « no previous file | ash/mus/frame/move_event_handler.cc » ('j') | ash/mus/frame/move_event_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/frame/move_event_handler.h
diff --git a/ash/mus/frame/move_event_handler.h b/ash/mus/frame/move_event_handler.h
index db2f1f59ec54e785dd6f5ddaaded88c465f59cc6..e9dbc5cfd35d6651dab084a757b421580954aa9c 100644
--- a/ash/mus/frame/move_event_handler.h
+++ b/ash/mus/frame/move_event_handler.h
@@ -39,6 +39,19 @@ class MoveEventHandler : public ui::EventHandler, public aura::WindowObserver {
aura::Window* aura_window);
~MoveEventHandler() override;
+ // Retrieves the MoveEventHandler for an existing WmWindow.
+ static MoveEventHandler* GetForWindow(WmWindow* wm_window);
+
+ // Attempts to start a drag if one is already not in progress. This passes
sky 2016/06/24 19:42:02 nit: 'already not' -> 'not alreay'
+ // the call to the underlying WmToplevelWindowEventHandler.
sky 2016/06/24 19:42:02 document what end_closure is.
+ void AttemptToStartDrag(
+ const gfx::Point& point_in_parent,
+ int window_component,
+ const base::Callback<void(bool success)>& end_closure);
+
+ // Reverts a manually started drag started with AttemptToStartDrag().
+ void RevertDrag();
+
private:
// Removes observer and EventHandler installed on |root_window_|.
void Detach();
« no previous file with comments | « no previous file | ash/mus/frame/move_event_handler.cc » ('j') | ash/mus/frame/move_event_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698