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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: General cleanup. Created 3 years, 7 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: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 5244c70da3aab0a8c2835aa8be5d51270b5e3e41..9d44d1f50ae728fdcd93f75d4c9bb9d09580ec57 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1835,6 +1835,32 @@ void WindowTreeClient::SetExtendedHitArea(Window* window,
}
}
+void WindowTreeClient::LockCursor() {
+ if (window_manager_client_)
+ window_manager_client_->WmLockCursor();
+}
+
+void WindowTreeClient::UnlockCursor() {
+ if (window_manager_client_)
+ window_manager_client_->WmUnlockCursor();
+}
+
+void WindowTreeClient::ShowCursor() {
+ if (window_manager_client_)
+ window_manager_client_->WmShowCursor();
+}
+
+void WindowTreeClient::HideCursor() {
+ if (window_manager_client_)
+ window_manager_client_->WmHideCursor();
+}
+
+void WindowTreeClient::SetGlobalOverrideCursor(
+ base::Optional<ui::CursorData> cursor) {
+ if (window_manager_client_)
+ window_manager_client_->WmSetGlobalOverrideCursor(std::move(cursor));
+}
+
void WindowTreeClient::RequestClose(Window* window) {
DCHECK(window);
if (window_manager_client_)

Powered by Google App Engine
This is Rietveld 408576698