Index: components/mus/public/cpp/window.h |
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h |
index 3cf965e2565a3ff23de60cee5ab9f54ad72c4dd0..148ee4e2f40406b7c4ae4cf90bae85031c8756b8 100644 |
--- a/components/mus/public/cpp/window.h |
+++ b/components/mus/public/cpp/window.h |
@@ -221,6 +221,17 @@ class Window { |
// to a better place. |
void RequestClose(); |
+ // Tells the window manager to take control of moving the window. Locally, |
sky
2016/06/24 19:59:00
Update comment.
|
+ // this spins up a nested message loop to handle all further ui messages; we |
+ // don't use mojo's built in sync messages because we explicitly want to |
+ // process all other messages. Returns true if the move wasn't canceled. |
+ void PerformWindowMove(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; |