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

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: Use not not pattern to fix win compile 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 e117fe651ffadf145f975a345fbc60c41f5e779b..eae3b91c78dd11b8603c478100bfad5a81928498 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -464,6 +464,15 @@ void Window::RequestClose() {
client_->RequestClose(this);
}
+void Window::PerformWindowMove(const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback) {
+ client_->PerformWindowMove(this, 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