OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 5 #ifndef UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
7 | 7 |
8 #include "ui/base/cursor/cursor.h" | 8 #include "ui/base/cursor/cursor.h" |
9 #include "ui/base/ui_base_export.h" | 9 #include "ui/base/ui_base_export.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // CreateImageCursor call must be matched with a call to UnrefImageCursor. | 32 // CreateImageCursor call must be matched with a call to UnrefImageCursor. |
33 virtual PlatformCursor CreateImageCursor(const SkBitmap& bitmap, | 33 virtual PlatformCursor CreateImageCursor(const SkBitmap& bitmap, |
34 const gfx::Point& hotspot); | 34 const gfx::Point& hotspot); |
35 | 35 |
36 // Increment platform image cursor refcount. | 36 // Increment platform image cursor refcount. |
37 virtual void RefImageCursor(PlatformCursor cursor); | 37 virtual void RefImageCursor(PlatformCursor cursor); |
38 | 38 |
39 // Decrement platform image cursor refcount. | 39 // Decrement platform image cursor refcount. |
40 virtual void UnrefImageCursor(PlatformCursor cursor); | 40 virtual void UnrefImageCursor(PlatformCursor cursor); |
41 | 41 |
42 // Change the active cursor for an AcceleratedWidget. | |
43 // TODO(spang): Move this. | |
44 virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor); | |
45 | |
46 private: | 42 private: |
47 static CursorFactoryOzone* impl_; // not owned | 43 static CursorFactoryOzone* impl_; // not owned |
48 }; | 44 }; |
49 | 45 |
50 } // namespace gfx | 46 } // namespace gfx |
51 | 47 |
52 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 48 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
OLD | NEW |