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

Unified Diff: ui/aura/mus/window_tree_host_mus.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_client.cc ('k') | ui/aura/mus/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.h
diff --git a/ui/aura/mus/window_tree_host_mus.h b/ui/aura/mus/window_tree_host_mus.h
index f028bd286a856e999f3f8d034ed5827575ca3441..499d7930fb307a6e4f4ba564ac1869634bf127eb 100644
--- a/ui/aura/mus/window_tree_host_mus.h
+++ b/ui/aura/mus/window_tree_host_mus.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "services/service_manager/public/cpp/connector.h"
+#include "services/ui/public/interfaces/window_manager_constants.mojom.h"
#include "ui/aura/aura_export.h"
#include "ui/aura/window_tree_host_platform.h"
@@ -83,6 +84,16 @@ class AURA_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
// windows which we might not own.
void StackAtTop();
+ // Tells the window manager to take control of moving the window. Returns
+ // true if the move wasn't canceled.
+ void PerformWindowMove(ui::mojom::MoveLoopSource mus_source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback);
+
+ // Tells the window manager to abort any current move initiated by
+ // PerformWindowMove().
+ void CancelWindowMove();
+
// Intended only for WindowTreeClient to call.
void set_display_id(int64_t id) { display_id_ = id; }
int64_t display_id() const { return display_id_; }
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698