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

Side by Side Diff: ui/base/cursor/cursor_loader_ozone.h

Issue 808333004: virtual/override specifier cleanup in ui/ (mostly Ozone code). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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/aura/window_tree_host_ozone.h ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OZONE_H_ 5 #ifndef UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_
6 #define UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_ 6 #define UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ui/base/cursor/cursor.h" 10 #include "ui/base/cursor/cursor.h"
11 #include "ui/base/cursor/cursor_loader.h" 11 #include "ui/base/cursor/cursor_loader.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader { 15 class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
16 public: 16 public:
17 CursorLoaderOzone(); 17 CursorLoaderOzone();
18 virtual ~CursorLoaderOzone(); 18 ~CursorLoaderOzone() override;
19 19
20 // CursorLoader overrides: 20 // CursorLoader overrides:
21 virtual void LoadImageCursor(int id, 21 void LoadImageCursor(int id,
22 int resource_id, 22 int resource_id,
23 const gfx::Point& hot) override; 23 const gfx::Point& hot) override;
24 virtual void LoadAnimatedCursor(int id, 24 void LoadAnimatedCursor(int id,
25 int resource_id, 25 int resource_id,
26 const gfx::Point& hot, 26 const gfx::Point& hot,
27 int frame_delay_ms) override; 27 int frame_delay_ms) override;
28 virtual void UnloadAll() override; 28 void UnloadAll() override;
29 virtual void SetPlatformCursor(gfx::NativeCursor* cursor) override; 29 void SetPlatformCursor(gfx::NativeCursor* cursor) override;
30 30
31 private: 31 private:
32 // Pointers are owned by ResourceBundle and must not be freed here. 32 // Pointers are owned by ResourceBundle and must not be freed here.
33 typedef std::map<int, PlatformCursor> ImageCursorMap; 33 typedef std::map<int, PlatformCursor> ImageCursorMap;
34 ImageCursorMap cursors_; 34 ImageCursorMap cursors_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(CursorLoaderOzone); 36 DISALLOW_COPY_AND_ASSIGN(CursorLoaderOzone);
37 }; 37 };
38 38
39 } // namespace ui 39 } // namespace ui
40 40
41 #endif // UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_ 41 #endif // UI_BASE_CURSOR_CURSOR_LOADER_OZONE_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698