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

Unified Diff: ash/wm/native_cursor_manager_ash_mus.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 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
« no previous file with comments | « ash/wm/native_cursor_manager_ash_mus.h ('k') | ash/wm/native_cursor_manager_ash_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/native_cursor_manager_ash_mus.cc
diff --git a/ash/wm/native_cursor_manager_ash_mus.cc b/ash/wm/native_cursor_manager_ash_mus.cc
index a53c6b6dbdd937057e0b36a748e49cca9403671c..279ae7e4ec87309a6ee7c1b644004c47ba4b3af2 100644
--- a/ash/wm/native_cursor_manager_ash_mus.cc
+++ b/ash/wm/native_cursor_manager_ash_mus.cc
@@ -174,12 +174,17 @@ void NativeCursorManagerAshMus::SetVisibility(
NotifyCursorVisibilityChange(visible);
}
-void NativeCursorManagerAshMus::SetCursorSet(
- ui::CursorSetType cursor_set,
+void NativeCursorManagerAshMus::SetCursorSize(
+ ui::CursorSize cursor_size,
::wm::NativeCursorManagerDelegate* delegate) {
- // We can't just hand this off to ImageCursors like we do in the classic ash
- // case. We need to collaborate with the mus server to fully implement this.
- NOTIMPLEMENTED();
+ delegate->CommitCursorSize(cursor_size);
+
+ ShellPort::Get()->SetCursorSize(cursor_size);
+
+ Shell::Get()
+ ->window_tree_host_manager()
+ ->cursor_window_controller()
+ ->SetCursorSize(cursor_size);
}
void NativeCursorManagerAshMus::SetMouseEventsEnabled(
« no previous file with comments | « ash/wm/native_cursor_manager_ash_mus.h ('k') | ash/wm/native_cursor_manager_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698