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

Unified Diff: ui/base/cursor/cursor_loader_ozone.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/cursor_loader.h ('k') | ui/base/cursor/cursor_loader_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor_loader_ozone.h
diff --git a/ui/base/cursor/cursor_loader_ozone.h b/ui/base/cursor/cursor_loader_ozone.h
index 6cd67dc6f0b490940e13f13b1a633a83c484b062..00a23283d5855bd4d3ae36d9d716a02693d7eb75 100644
--- a/ui/base/cursor/cursor_loader_ozone.h
+++ b/ui/base/cursor/cursor_loader_ozone.h
@@ -19,10 +19,10 @@ class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
~CursorLoaderOzone() override;
// CursorLoader overrides:
- void LoadImageCursor(int id,
+ void LoadImageCursor(CursorType id,
int resource_id,
const gfx::Point& hot) override;
- void LoadAnimatedCursor(int id,
+ void LoadAnimatedCursor(CursorType id,
int resource_id,
const gfx::Point& hot,
int frame_delay_ms) override;
@@ -31,7 +31,7 @@ class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
private:
// Pointers are owned by ResourceBundle and must not be freed here.
- typedef std::map<int, PlatformCursor> ImageCursorMap;
+ typedef std::map<CursorType, PlatformCursor> ImageCursorMap;
ImageCursorMap cursors_;
DISALLOW_COPY_AND_ASSIGN(CursorLoaderOzone);
« no previous file with comments | « ui/base/cursor/cursor_loader.h ('k') | ui/base/cursor/cursor_loader_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698