| 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..3aae8e6c070bf0edf19071f0c634e11166c56c76 100644
|
| --- a/ash/mus/frame/move_event_handler.h
|
| +++ b/ash/mus/frame/move_event_handler.h
|
| @@ -39,6 +39,22 @@ 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 not already in progress. This passes
|
| + // the call to the underlying WmToplevelWindowEventHandler. After the drag
|
| + // completes, |end_closure| will be called to return whether the drag was
|
| + // successfully completed.
|
| + void AttemptToStartDrag(
|
| + const gfx::Point& point_in_parent,
|
| + int window_component,
|
| + aura::client::WindowMoveSource source,
|
| + 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();
|
|
|