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

Unified Diff: ui/aura/mus/window_tree_host_mus_delegate.h

Issue 2657003004: aura-mus: Hook up PerformWindowMove(). (Closed)
Patch Set: Fold PerformWindowMove and CancelWindowMove. Created 3 years, 11 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 | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus_delegate.h
diff --git a/ui/aura/mus/window_tree_host_mus_delegate.h b/ui/aura/mus/window_tree_host_mus_delegate.h
index 1d4d0113c6862d0ad0352c1807a46dc099887bc8..08d8f58f387fd75a2acdadade23dbcd360150a94 100644
--- a/ui/aura/mus/window_tree_host_mus_delegate.h
+++ b/ui/aura/mus/window_tree_host_mus_delegate.h
@@ -55,6 +55,18 @@ class AURA_EXPORT WindowTreeHostMusDelegate {
virtual void OnWindowTreeHostStackAtTop(
WindowTreeHostMus* window_tree_host) = 0;
+ // Called to start a move loop, where the window manager will take over
+ // moving a window during a drag.
+ virtual void OnWindowTreeHostPerformWindowMove(
+ WindowTreeHostMus* window_tree_host,
+ ui::mojom::MoveLoopSource mus_source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback) = 0;
+
+ // Called to cancel a move loop.
+ virtual void OnWindowTreeHostCancelWindowMove(
+ WindowTreeHostMus* window_tree_host) = 0;
+
// Called when a WindowTreeHostMus is created without a WindowPort.
// TODO: this should take an unordered_map, see http://crbug.com/670515.
virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel(
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698