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"
12 CursorFactoryOzone* CursorFactoryOzone::impl_ = NULL;
14 CursorFactoryOzone::CursorFactoryOzone() {
15 CHECK(!impl_) << "There should only be a single CursorFactoryOzone.";
19 CursorFactoryOzone::~CursorFactoryOzone() {
20 CHECK_EQ(impl_, this);
24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() {
25 CHECK(impl_) << "No CursorFactoryOzone implementation set.";
29 PlatformCursor CursorFactoryOzone::GetDefaultCursor(int type) {
34 PlatformCursor CursorFactoryOzone::CreateImageCursor(
35 const SkBitmap& bitmap,
36 const gfx::Point& hotspot) {
41 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) {
45 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) {
49 void CursorFactoryOzone::SetCursor(gfx::AcceleratedWidget widget,
50 PlatformCursor cursor) {
54 gfx::AcceleratedWidget CursorFactoryOzone::GetCursorWindow() {