| Index: ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h
|
| diff --git a/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h b/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h
|
| index 7576af1da666a1dc8508a594a6ecfa8029e52fa9..c1e138d844a65c9e774c24994eb42a67a300f5d1 100644
|
| --- a/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h
|
| +++ b/ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h
|
| @@ -20,18 +20,25 @@ namespace ui {
|
| class UI_BASE_EXPORT BitmapCursorOzone
|
| : public base::RefCounted<BitmapCursorOzone> {
|
| public:
|
| - BitmapCursorOzone(const SkBitmap& bitmap, const gfx::Point& hotspot)
|
| - : bitmap_(bitmap), hotspot_(hotspot) {}
|
| + BitmapCursorOzone(const SkBitmap& bitmap, const gfx::Point& hotspot);
|
| + BitmapCursorOzone(const std::vector<SkBitmap>& bitmaps,
|
| + const gfx::Point& hotspot,
|
| + int frame_delay_ms);
|
|
|
| - const gfx::Point& hotspot() { return hotspot_; }
|
| - const SkBitmap& bitmap() { return bitmap_; }
|
| + const gfx::Point& hotspot();
|
| + const SkBitmap& bitmap();
|
| +
|
| + // For animated cursors.
|
| + const std::vector<SkBitmap>& bitmaps();
|
| + int frame_delay_ms();
|
|
|
| private:
|
| friend class base::RefCounted<BitmapCursorOzone>;
|
| ~BitmapCursorOzone() {}
|
|
|
| - SkBitmap bitmap_;
|
| + std::vector<SkBitmap> bitmaps_;
|
| gfx::Point hotspot_;
|
| + int frame_delay_ms_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BitmapCursorOzone);
|
| };
|
|
|