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

Side by Side Diff: ui/base/cursor/cursor_loader_win.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, 7 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 unified diff | Download patch
« no previous file with comments | « ui/base/cursor/cursor_loader_ozone.cc ('k') | ui/base/cursor/cursor_loader_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_ 5 #ifndef UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_
6 #define UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_ 6 #define UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/base/cursor/cursor_loader.h" 10 #include "ui/base/cursor/cursor_loader.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class UI_BASE_EXPORT CursorLoaderWin : public CursorLoader { 14 class UI_BASE_EXPORT CursorLoaderWin : public CursorLoader {
15 public: 15 public:
16 CursorLoaderWin(); 16 CursorLoaderWin();
17 ~CursorLoaderWin() override; 17 ~CursorLoaderWin() override;
18 18
19 // Overridden from CursorLoader: 19 // Overridden from CursorLoader:
20 void LoadImageCursor(int id, int resource_id, const gfx::Point& hot) override; 20 void LoadImageCursor(CursorType id,
21 void LoadAnimatedCursor(int id, 21 int resource_id,
22 const gfx::Point& hot) override;
23 void LoadAnimatedCursor(CursorType id,
22 int resource_id, 24 int resource_id,
23 const gfx::Point& hot, 25 const gfx::Point& hot,
24 int frame_delay_ms) override; 26 int frame_delay_ms) override;
25 void UnloadAll() override; 27 void UnloadAll() override;
26 void SetPlatformCursor(gfx::NativeCursor* cursor) override; 28 void SetPlatformCursor(gfx::NativeCursor* cursor) override;
27 29
28 // Used to pass the cursor resource module name to the cursor loader. This is 30 // Used to pass the cursor resource module name to the cursor loader. This is
29 // typically used to load non system cursors. 31 // typically used to load non system cursors.
30 static void SetCursorResourceModule(const base::string16& module_name); 32 static void SetCursorResourceModule(const base::string16& module_name);
31 33
32 private: 34 private:
33 DISALLOW_COPY_AND_ASSIGN(CursorLoaderWin); 35 DISALLOW_COPY_AND_ASSIGN(CursorLoaderWin);
34 }; 36 };
35 37
36 } // namespace ui 38 } // namespace ui
37 39
38 #endif // UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_ 40 #endif // UI_BASE_CURSOR_CURSOR_LOADER_WIN_H_
OLDNEW
« no previous file with comments | « ui/base/cursor/cursor_loader_ozone.cc ('k') | ui/base/cursor/cursor_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698