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

Unified Diff: ash/display/cursor_window_controller.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/display/cursor_window_controller.cc
diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc
index 011595f40fd533ad8bccd00bbcd8a8d08f2b78f6..fe20281cea18e8960174365fcc99bd5f5d38be3f 100644
--- a/ash/display/cursor_window_controller.cc
+++ b/ash/display/cursor_window_controller.cc
@@ -88,12 +88,11 @@ class CursorWindowDelegate : public aura::WindowDelegate {
CursorWindowController::CursorWindowController()
: is_cursor_compositing_enabled_(false),
container_(NULL),
- cursor_type_(ui::kCursorNone),
+ cursor_type_(ui::CursorType::NONE),
visible_(true),
cursor_set_(ui::CURSOR_SET_NORMAL),
large_cursor_size_in_dip_(ash::kDefaultLargeCursorSize),
- delegate_(new CursorWindowDelegate()) {
-}
+ delegate_(new CursorWindowDelegate()) {}
CursorWindowController::~CursorWindowController() {
SetContainer(NULL);
@@ -320,7 +319,7 @@ void CursorWindowController::UpdateCursorImage() {
void CursorWindowController::UpdateCursorVisibility() {
if (!cursor_window_)
return;
- bool visible = (visible_ && cursor_type_ != ui::kCursorNone);
+ bool visible = (visible_ && cursor_type_ != ui::CursorType::NONE);
if (visible)
cursor_window_->Show();
else

Powered by Google App Engine
This is Rietveld 408576698