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

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: sky comments 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
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/test/mus/test_window_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5e17583c1e818209936c30d20b266d3e3ba84e6a 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1835,6 +1835,27 @@ 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::SetCursorVisible(bool visible) {
+ if (window_manager_client_)
+ window_manager_client_->WmSetCursorVisible(visible);
+}
+
+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_)
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/test/mus/test_window_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698