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

Unified Diff: services/ui/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: dcheng nits Created 4 years, 5 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: 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;
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.cc ('k') | services/ui/public/cpp/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698