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

Unified Diff: services/ui/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: 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
« no previous file with comments | « services/ui/public/cpp/lib/in_flight_change.cc ('k') | services/ui/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/window.cc
diff --git a/services/ui/public/cpp/lib/window.cc b/services/ui/public/cpp/lib/window.cc
index 5d74e4554e87846ae99905befe2d9a98c08de17d..ae25fcd96b16f8520db135671fedc7962c8ddcb2 100644
--- a/services/ui/public/cpp/lib/window.cc
+++ b/services/ui/public/cpp/lib/window.cc
@@ -465,6 +465,16 @@ void Window::RequestClose() {
client_->RequestClose(this);
}
+void Window::PerformWindowMove(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);
« no previous file with comments | « services/ui/public/cpp/lib/in_flight_change.cc ('k') | services/ui/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698