Index: services/ui/public/cpp/window.h |
diff --git a/services/ui/public/cpp/window.h b/services/ui/public/cpp/window.h |
index 4298e795e308a3cc528bd2abd30f19602fb8b250..c902e58eee4acff2e19626e1374ba64e0109ade0 100644 |
--- a/services/ui/public/cpp/window.h |
+++ b/services/ui/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(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; |