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

Unified Diff: components/exo/pointer.cc

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: Remove old cursor.h includes. 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
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index ec34b5a416e9f6c1133a09a4300f33dc426fb410..625dbe0d99ce331a012b25a1a6dde3ec35aa7ec0 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::OnCursorSetChanged(ui::CursorSet cursor_set) {
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->GetCursorSet() == ui::CursorSet::kLarge)
scale *= kLargeCursorScale;
ui::ScaleAndRotateCursorBitmapAndHotpoint(scale, display.rotation(),

Powered by Google App Engine
This is Rietveld 408576698