OLD | NEW |
(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/ozone/public/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 DCHECK(!impl_) << "There should only be a single CursorFactoryOzone."; |
| 16 impl_ = this; |
| 17 } |
| 18 |
| 19 CursorFactoryOzone::~CursorFactoryOzone() { |
| 20 DCHECK_EQ(impl_, this); |
| 21 impl_ = NULL; |
| 22 } |
| 23 |
| 24 CursorFactoryOzone* CursorFactoryOzone::GetInstance() { |
| 25 DCHECK(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 PlatformCursor CursorFactoryOzone::CreateAnimatedCursor( |
| 42 const std::vector<SkBitmap>& bitmaps, |
| 43 const gfx::Point& hotspot, |
| 44 int frame_delay_ms) { |
| 45 NOTIMPLEMENTED(); |
| 46 return NULL; |
| 47 } |
| 48 |
| 49 void CursorFactoryOzone::RefImageCursor(PlatformCursor cursor) { |
| 50 NOTIMPLEMENTED(); |
| 51 } |
| 52 |
| 53 void CursorFactoryOzone::UnrefImageCursor(PlatformCursor cursor) { |
| 54 NOTIMPLEMENTED(); |
| 55 } |
| 56 |
| 57 } // namespace ui |
OLD | NEW |