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

Side by Side Diff: ui/base/cursor/ozone/cursor_factory_ozone.cc

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/cursor/ozone/cursor_factory_ozone.h ('k') | ui/base/ui_base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/base/cursor/ozone/cursor_factory_ozone.h"
6
7 #include "base/logging.h"
8
9 namespace ui {
10
11 // static
12 CursorFactoryOzone* CursorFactoryOzone::impl_ = NULL;
13
14 CursorFactoryOzone::CursorFactoryOzone() {
15 CHECK(!impl_) << "There should only be a single CursorFactoryOzone.";
16 impl_ = this;
17 }
18
19 CursorFactoryOzone::~CursorFactoryOzone() {
20 CHECK_EQ(impl_, this);
21 impl_ = NULL;
22 }
23
24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() {
25 CHECK(impl_) << "No CursorFactoryOzone implementation set.";
26 return impl_;
27 }
28
29 PlatformCursor CursorFactoryOzone::GetDefaultCursor(int type) {
30 NOTIMPLEMENTED();
31 return NULL;
32 }
33
34 PlatformCursor CursorFactoryOzone::CreateImageCursor(
35 const SkBitmap& bitmap,
36 const gfx::Point& hotspot) {
37 NOTIMPLEMENTED();
38 return NULL;
39 }
40
41 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) {
42 NOTIMPLEMENTED();
43 }
44
45 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) {
46 NOTIMPLEMENTED();
47 }
48
49 void CursorFactoryOzone::SetCursor(gfx::AcceleratedWidget widget,
50 PlatformCursor cursor) {
51 NOTIMPLEMENTED();
52 }
53
54 gfx::AcceleratedWidget CursorFactoryOzone::GetCursorWindow() {
55 NOTIMPLEMENTED();
56 return 0;
57 }
58
59 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/cursor/ozone/cursor_factory_ozone.h ('k') | ui/base/ui_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698