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

Unified Diff: ui/gfx/native_widget_types.h

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
« no previous file with comments | « ui/base/cursor/ozone/cursor_data_factory_ozone.cc ('k') | ui/ozone/platform/x11/x11_cursor_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_widget_types.h
diff --git a/ui/gfx/native_widget_types.h b/ui/gfx/native_widget_types.h
index e2bb463602f8065019dae08a8797d011c5f0e4b3..517bd4030b96d1fc8b3afdd22ef39f3946610d5f 100644
--- a/ui/gfx/native_widget_types.h
+++ b/ui/gfx/native_widget_types.h
@@ -46,6 +46,7 @@ class Window;
}
namespace ui {
class Cursor;
+enum class CursorType;
class Event;
}
#endif // defined(USE_AURA)
@@ -156,7 +157,7 @@ typedef void* NativeViewAccessible;
// A constant value to indicate that gfx::NativeCursor refers to no cursor.
#if defined(USE_AURA)
-const int kNullCursor = 0;
+const ui::CursorType kNullCursor = static_cast<ui::CursorType>(0);
#else
const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL);
#endif
« no previous file with comments | « ui/base/cursor/ozone/cursor_data_factory_ozone.cc ('k') | ui/ozone/platform/x11/x11_cursor_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698