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; |