| 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_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
| 10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 gfx::AcceleratedWidget GetCursorWindow(); | 30 gfx::AcceleratedWidget GetCursorWindow(); |
| 31 | 31 |
| 32 // CursorDelegateEvdev: | 32 // CursorDelegateEvdev: |
| 33 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, | 33 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, |
| 34 const gfx::PointF& location) OVERRIDE; | 34 const gfx::PointF& location) OVERRIDE; |
| 35 virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE; | 35 virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE; |
| 36 virtual bool IsCursorVisible() OVERRIDE; | 36 virtual bool IsCursorVisible() OVERRIDE; |
| 37 virtual gfx::PointF location() OVERRIDE; | 37 virtual gfx::PointF location() OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void UnsetCursor(gfx::AcceleratedWidget widget); |
| 41 |
| 40 // The location of the bitmap (the cursor location is the hotspot location). | 42 // The location of the bitmap (the cursor location is the hotspot location). |
| 41 gfx::Point bitmap_location(); | 43 gfx::Point bitmap_location(); |
| 42 | 44 |
| 43 // The DRI implementation for setting the hardware cursor. | 45 // The DRI implementation for setting the hardware cursor. |
| 44 HardwareCursorDelegate* hardware_; | 46 HardwareCursorDelegate* hardware_; |
| 45 | 47 |
| 46 // The current cursor bitmap. | 48 // The current cursor bitmap. |
| 47 scoped_refptr<BitmapCursorOzone> cursor_; | 49 scoped_refptr<BitmapCursorOzone> cursor_; |
| 48 | 50 |
| 49 // The window under the cursor. | 51 // The window under the cursor. |
| 50 gfx::AcceleratedWidget cursor_window_; | 52 gfx::AcceleratedWidget cursor_window_; |
| 51 | 53 |
| 52 // The location of the cursor within the window. | 54 // The location of the cursor within the window. |
| 53 gfx::PointF cursor_location_; | 55 gfx::PointF cursor_location_; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace ui | 58 } // namespace ui |
| 57 | 59 |
| 58 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 60 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| OLD | NEW |