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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: OK, it can't be explicit for mac. 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: ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc b/ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc
index 51ebef29467fbc94bbf28054cd81db09adf0fdfd..38242a73087ef6796773ff16ec87e44ef69619cc 100644
--- a/ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc
@@ -18,7 +18,8 @@ DesktopNativeCursorManager::DesktopNativeCursorManager()
DesktopNativeCursorManager::~DesktopNativeCursorManager() {
}
-gfx::NativeCursor DesktopNativeCursorManager::GetInitializedCursor(int type) {
+gfx::NativeCursor DesktopNativeCursorManager::GetInitializedCursor(
+ ui::CursorType type) {
gfx::NativeCursor cursor(type);
cursor_loader_->SetPlatformCursor(&cursor);
return cursor;
@@ -63,7 +64,7 @@ void DesktopNativeCursorManager::SetVisibility(
if (visible) {
SetCursor(delegate->GetCursor(), delegate);
} else {
- gfx::NativeCursor invisible_cursor(ui::kCursorNone);
+ gfx::NativeCursor invisible_cursor(ui::CursorType::kNone);
cursor_loader_->SetPlatformCursor(&invisible_cursor);
for (Hosts::const_iterator i = hosts_.begin(); i != hosts_.end(); ++i)
(*i)->SetCursor(invisible_cursor);

Powered by Google App Engine
This is Rietveld 408576698