Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / base / cursor / ozone / cursor_factory_ozone.cc
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
16 CursorFactoryOzone::~CursorFactoryOzone() {}
17
18 CursorFactoryOzone* CursorFactoryOzone::GetInstance() {
19   CHECK(impl_) << "No CursorFactoryOzone implementation set.";
20   return impl_;
21 }
22
23 void CursorFactoryOzone::SetInstance(CursorFactoryOzone* impl) { impl_ = impl; }
24
25 PlatformCursor CursorFactoryOzone::GetDefaultCursor(int type) {
26   NOTIMPLEMENTED();
27   return NULL;
28 }
29
30 PlatformCursor CursorFactoryOzone::CreateImageCursor(
31     const SkBitmap& bitmap,
32     const gfx::Point& hotspot) {
33   NOTIMPLEMENTED();
34   return NULL;
35 }
36
37 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) {
38   NOTIMPLEMENTED();
39 }
40
41 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) {
42   NOTIMPLEMENTED();
43 }
44
45 void CursorFactoryOzone::SetCursor(gfx::AcceleratedWidget widget,
46                                    PlatformCursor cursor) {
47   NOTIMPLEMENTED();
48 }
49
50 gfx::AcceleratedWidget CursorFactoryOzone::GetCursorWindow() {
51   NOTIMPLEMENTED();
52   return 0;
53 }
54
55 }  // namespace ui