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

Unified Diff: components/mus/public/cpp/window.h

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OnWmMoveLoopComplete() -> WmResponse() and use change_id instead of window_id in cancel. 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
Index: components/mus/public/cpp/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index eabc6098a5b098c5b812977227e70bd4458c2cd1..0cadb44b72a79a4e27cdf1eda1909a7c3d29f00c 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -222,6 +222,16 @@ class Window {
// to a better place.
void RequestClose();
+ // Tells the window manager to take control of moving the window. Returns
+ // true if the move wasn't canceled.
+ void PerformWindowMove(::mus::mojom::MoveLoopSource 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();
+
// Returns an internal name, set by a client app when it creates a window.
std::string GetName() const;

Powered by Google App Engine
This is Rietveld 408576698