Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / ozone / platform / dri / hardware_cursor_delegate.h
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 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 class SkBitmap;
11
12 namespace gfx {
13 class Point;
14 }
15
16 namespace ui {
17
18 class HardwareCursorDelegate {
19  public:
20   // Update the HW cursor bitmap & move to specified location. If
21   // the bitmap is empty, the cursor is hidden.
22   virtual void SetHardwareCursor(gfx::AcceleratedWidget widget,
23                                  const std::vector<SkBitmap>& bitmaps,
24                                  const gfx::Point& location,
25                                  int frame_delay_ms) = 0;
26
27   // Move the HW cursor to the specified location.
28   virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget,
29                                   const gfx::Point& location) = 0;
30
31  protected:
32   virtual ~HardwareCursorDelegate() {}
33 };
34
35 }  // namespace ui
36
37 #endif  // UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_