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

Unified Diff: ash/wm/ash_native_cursor_manager.cc

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: Remove extranious ::ui:: Created 3 years, 8 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/wm/ash_native_cursor_manager.cc
diff --git a/ash/wm/ash_native_cursor_manager.cc b/ash/wm/ash_native_cursor_manager.cc
index 1bbafbf56c16698a1c6adaa806c1cc6005c82772..24698b785450ade835bcd75b8cdcacff1a9cde1e 100644
--- a/ash/wm/ash_native_cursor_manager.cc
+++ b/ash/wm/ash_native_cursor_manager.cc
@@ -93,12 +93,12 @@ void AshNativeCursorManager::SetCursor(
if (native_cursor_enabled_) {
image_cursors_->SetPlatformCursor(&cursor);
} else {
- gfx::NativeCursor invisible_cursor(ui::kCursorNone);
+ gfx::NativeCursor invisible_cursor(ui::CursorType::NONE);
image_cursors_->SetPlatformCursor(&invisible_cursor);
- if (cursor == ui::kCursorCustom) {
+ if (cursor == ui::CursorType::CUSTOM) {
// Fall back to the default pointer cursor for now. (crbug.com/476078)
// TODO(oshima): support custom cursor.
- cursor = ui::kCursorPointer;
+ cursor = ui::CursorType::POINTER;
} else {
cursor.SetPlatformCursor(invisible_cursor.platform());
}
@@ -135,7 +135,7 @@ void AshNativeCursorManager::SetVisibility(
if (visible) {
SetCursor(delegate->GetCursor(), delegate);
} else {
- gfx::NativeCursor invisible_cursor(ui::kCursorNone);
+ gfx::NativeCursor invisible_cursor(ui::CursorType::NONE);
image_cursors_->SetPlatformCursor(&invisible_cursor);
SetCursorOnAllRootWindows(invisible_cursor);
}

Powered by Google App Engine
This is Rietveld 408576698