Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / ozone / public / cursor_factory_ozone.cc
blob24536e4a5fef7a1a794afe1329c3980b33efaad5
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.
5 #include "ui/ozone/public/cursor_factory_ozone.h"
7 #include "base/logging.h"
9 namespace ui {
11 // static
12 CursorFactoryOzone* CursorFactoryOzone::impl_ = NULL;
14 CursorFactoryOzone::CursorFactoryOzone() {
15 DCHECK(!impl_) << "There should only be a single CursorFactoryOzone.";
16 impl_ = this;
19 CursorFactoryOzone::~CursorFactoryOzone() {
20 DCHECK_EQ(impl_, this);
21 impl_ = NULL;
24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() {
25 DCHECK(impl_) << "No CursorFactoryOzone implementation set.";
26 return impl_;
29 PlatformCursor CursorFactoryOzone::GetDefaultCursor(int type) {
30 NOTIMPLEMENTED();
31 return NULL;
34 PlatformCursor CursorFactoryOzone::CreateImageCursor(
35 const SkBitmap& bitmap,
36 const gfx::Point& hotspot) {
37 NOTIMPLEMENTED();
38 return NULL;
41 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) {
42 NOTIMPLEMENTED();
45 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) {
46 NOTIMPLEMENTED();
49 void CursorFactoryOzone::SetCursor(gfx::AcceleratedWidget widget,
50 PlatformCursor cursor) {
51 NOTIMPLEMENTED();
54 gfx::AcceleratedWidget CursorFactoryOzone::GetCursorWindow() {
55 NOTIMPLEMENTED();
56 return 0;
59 } // namespace ui