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

Unified Diff: components/exo/shell_surface.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
« no previous file with comments | « components/exo/pointer.cc ('k') | components/exo/surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 602b5a43ff1bdbbe7619df46283ecbb337524dd7..e0ba66d23d59b553c19c9ea867f84d3fdfea8c4c 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::kPointer);
break;
case HTTOP:
- cursor_client->SetCursor(ui::kCursorNorthResize);
+ cursor_client->SetCursor(ui::CursorType::kNorthResize);
break;
case HTTOPRIGHT:
- cursor_client->SetCursor(ui::kCursorNorthEastResize);
+ cursor_client->SetCursor(ui::CursorType::kNorthEastResize);
break;
case HTRIGHT:
- cursor_client->SetCursor(ui::kCursorEastResize);
+ cursor_client->SetCursor(ui::CursorType::kEastResize);
break;
case HTBOTTOMRIGHT:
- cursor_client->SetCursor(ui::kCursorSouthEastResize);
+ cursor_client->SetCursor(ui::CursorType::kSouthEastResize);
break;
case HTBOTTOM:
- cursor_client->SetCursor(ui::kCursorSouthResize);
+ cursor_client->SetCursor(ui::CursorType::kSouthResize);
break;
case HTBOTTOMLEFT:
- cursor_client->SetCursor(ui::kCursorSouthWestResize);
+ cursor_client->SetCursor(ui::CursorType::kSouthWestResize);
break;
case HTLEFT:
- cursor_client->SetCursor(ui::kCursorWestResize);
+ cursor_client->SetCursor(ui::CursorType::kWestResize);
break;
case HTTOPLEFT:
- cursor_client->SetCursor(ui::kCursorNorthWestResize);
+ cursor_client->SetCursor(ui::CursorType::kNorthWestResize);
break;
default:
NOTREACHED();
« no previous file with comments | « components/exo/pointer.cc ('k') | components/exo/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698