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

Unified Diff: components/mus/public/cpp/lib/window.cc

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/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 83785c4544e148ee9d2f05e231b38c4c7e35a2c8..5d48d1d1fb00c85043a6e4074c03da7aaf38d1dc 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -465,6 +465,16 @@ void Window::RequestClose() {
client_->RequestClose(this);
}
+void Window::PerformWindowMove(::mus::mojom::MoveLoopSource source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback) {
+ client_->PerformWindowMove(this, source, cursor_location, callback);
+}
+
+void Window::CancelWindowMove() {
+ client_->CancelWindowMove(this);
+}
+
std::string Window::GetName() const {
if (HasSharedProperty(mojom::WindowManager::kName_Property))
return GetSharedProperty<std::string>(mojom::WindowManager::kName_Property);

Powered by Google App Engine
This is Rietveld 408576698