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

Unified Diff: components/exo/shell_surface.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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 602b5a43ff1bdbbe7619df46283ecbb337524dd7..648b0ebd699bc9ad9cd2b14d5690290446106409 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1330,31 +1330,31 @@ void ShellSurface::AttemptToStartDrag(int component) {
switch (component) {
case HTCAPTION:
- cursor_client->SetCursor(ui::kCursorPointer);
+ cursor_client->SetCursor(ui::CursorType::POINTER);
break;
case HTTOP:
- cursor_client->SetCursor(ui::kCursorNorthResize);
+ cursor_client->SetCursor(ui::CursorType::NORTH_RESIZE);
break;
case HTTOPRIGHT:
- cursor_client->SetCursor(ui::kCursorNorthEastResize);
+ cursor_client->SetCursor(ui::CursorType::NORTH_EAST_RESIZE);
break;
case HTRIGHT:
- cursor_client->SetCursor(ui::kCursorEastResize);
+ cursor_client->SetCursor(ui::CursorType::EAST_RESIZE);
break;
case HTBOTTOMRIGHT:
- cursor_client->SetCursor(ui::kCursorSouthEastResize);
+ cursor_client->SetCursor(ui::CursorType::SOUTH_EAST_RESIZE);
break;
case HTBOTTOM:
- cursor_client->SetCursor(ui::kCursorSouthResize);
+ cursor_client->SetCursor(ui::CursorType::SOUTH_RESIZE);
break;
case HTBOTTOMLEFT:
- cursor_client->SetCursor(ui::kCursorSouthWestResize);
+ cursor_client->SetCursor(ui::CursorType::SOUTH_WEST_RESIZE);
break;
case HTLEFT:
- cursor_client->SetCursor(ui::kCursorWestResize);
+ cursor_client->SetCursor(ui::CursorType::WEST_RESIZE);
break;
case HTTOPLEFT:
- cursor_client->SetCursor(ui::kCursorNorthWestResize);
+ cursor_client->SetCursor(ui::CursorType::NORTH_WEST_RESIZE);
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698