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

Unified Diff: ash/mus/bridge/shell_port_mash.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: ash/mus/bridge/shell_port_mash.cc
diff --git a/ash/mus/bridge/shell_port_mash.cc b/ash/mus/bridge/shell_port_mash.cc
index 5abe4f69cf7e6bb9aa7081a82f6ec0f496708ec7..3b44ae85c9d9d7e13b375d37b6345c4fdda8cefd 100644
--- a/ash/mus/bridge/shell_port_mash.cc
+++ b/ash/mus/bridge/shell_port_mash.cc
@@ -242,13 +242,25 @@ void ShellPortMash::SetDisplayWorkAreaInsets(WmWindow* window,
}
void ShellPortMash::LockCursor() {
- // TODO: http://crbug.com/637853
- NOTIMPLEMENTED();
+ window_manager_->window_manager_client()->LockCursor();
}
void ShellPortMash::UnlockCursor() {
- // TODO: http://crbug.com/637853
- NOTIMPLEMENTED();
+ window_manager_->window_manager_client()->UnlockCursor();
+}
+
+void ShellPortMash::ShowCursor() {
+ window_manager_->window_manager_client()->ShowCursor();
+}
+
+void ShellPortMash::HideCursor() {
+ window_manager_->window_manager_client()->HideCursor();
+}
+
+void ShellPortMash::SetGlobalOverrideCursor(
+ base::Optional<ui::CursorData> cursor) {
+ window_manager_->window_manager_client()->SetGlobalOverrideCursor(
+ std::move(cursor));
}
bool ShellPortMash::IsMouseEventsEnabled() {

Powered by Google App Engine
This is Rietveld 408576698