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

Side by Side Diff: ui/ozone/public/cursor_factory_ozone.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, 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
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 #include "ui/ozone/public/cursor_factory_ozone.h" 5 #include "ui/ozone/public/cursor_factory_ozone.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 // static 11 // static
12 CursorFactoryOzone* CursorFactoryOzone::impl_ = NULL; 12 CursorFactoryOzone* CursorFactoryOzone::impl_ = NULL;
13 13
14 CursorFactoryOzone::CursorFactoryOzone() { 14 CursorFactoryOzone::CursorFactoryOzone() {
15 DCHECK(!impl_) << "There should only be a single CursorFactoryOzone."; 15 DCHECK(!impl_) << "There should only be a single CursorFactoryOzone.";
16 impl_ = this; 16 impl_ = this;
17 } 17 }
18 18
19 CursorFactoryOzone::~CursorFactoryOzone() { 19 CursorFactoryOzone::~CursorFactoryOzone() {
20 DCHECK_EQ(impl_, this); 20 DCHECK_EQ(impl_, this);
21 impl_ = NULL; 21 impl_ = NULL;
22 } 22 }
23 23
24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() { 24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() {
25 DCHECK(impl_) << "No CursorFactoryOzone implementation set."; 25 DCHECK(impl_) << "No CursorFactoryOzone implementation set.";
26 return impl_; 26 return impl_;
27 } 27 }
28 28
29 PlatformCursor CursorFactoryOzone::GetDefaultCursor(int type) { 29 PlatformCursor CursorFactoryOzone::GetDefaultCursor(CursorType type) {
30 NOTIMPLEMENTED(); 30 NOTIMPLEMENTED();
31 return NULL; 31 return NULL;
32 } 32 }
33 33
34 PlatformCursor CursorFactoryOzone::CreateImageCursor(const SkBitmap& bitmap, 34 PlatformCursor CursorFactoryOzone::CreateImageCursor(const SkBitmap& bitmap,
35 const gfx::Point& hotspot, 35 const gfx::Point& hotspot,
36 float bitmap_dpi) { 36 float bitmap_dpi) {
37 NOTIMPLEMENTED(); 37 NOTIMPLEMENTED();
38 return NULL; 38 return NULL;
39 } 39 }
40 40
41 PlatformCursor CursorFactoryOzone::CreateAnimatedCursor( 41 PlatformCursor CursorFactoryOzone::CreateAnimatedCursor(
42 const std::vector<SkBitmap>& bitmaps, 42 const std::vector<SkBitmap>& bitmaps,
43 const gfx::Point& hotspot, 43 const gfx::Point& hotspot,
44 int frame_delay_ms, 44 int frame_delay_ms,
45 float bitmap_dpi) { 45 float bitmap_dpi) {
46 NOTIMPLEMENTED(); 46 NOTIMPLEMENTED();
47 return NULL; 47 return NULL;
48 } 48 }
49 49
50 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) { 50 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) {
51 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
52 } 52 }
53 53
54 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) { 54 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) {
55 NOTIMPLEMENTED(); 55 NOTIMPLEMENTED();
56 } 56 }
57 57
58 } // namespace ui 58 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/cursor_factory_ozone.h ('k') | ui/views/controls/native/native_view_host_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698