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

Unified Diff: components/exo/pointer.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 | « components/exo/pointer.h ('k') | components/exo/wm_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index ec34b5a416e9f6c1133a09a4300f33dc426fb410..f95f92aa726a7ec9168a7b4dbfa775eda6f18555 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -255,7 +255,7 @@ void Pointer::OnScrollEvent(ui::ScrollEvent* event) {
////////////////////////////////////////////////////////////////////////////////
// WMHelper::CursorObserver overrides:
-void Pointer::OnCursorSetChanged(ui::CursorSetType cursor_set) {
+void Pointer::OnCursorSizeChanged(ui::CursorSize cursor_size) {
if (focus_)
UpdateCursor();
}
@@ -387,7 +387,7 @@ void Pointer::UpdateCursor() {
float scale = helper->GetDisplayInfo(display.id()).device_scale_factor() /
kCursorCaptureScale;
- if (helper->GetCursorSet() == ui::CURSOR_SET_LARGE)
+ if (helper->GetCursorSize() == ui::CursorSize::kLarge)
scale *= kLargeCursorScale;
ui::ScaleAndRotateCursorBitmapAndHotpoint(scale, display.rotation(),
« no previous file with comments | « components/exo/pointer.h ('k') | components/exo/wm_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698