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 27 matching lines...) Expand all Loading... |
38 void ShowCursor(); | 38 void ShowCursor(); |
39 void HideCursor(); | 39 void HideCursor(); |
40 gfx::AcceleratedWidget GetCursorWindow(); | 40 gfx::AcceleratedWidget GetCursorWindow(); |
41 | 41 |
42 // CursorDelegateEvdev: | 42 // CursorDelegateEvdev: |
43 void MoveCursorTo(gfx::AcceleratedWidget widget, | 43 void MoveCursorTo(gfx::AcceleratedWidget widget, |
44 const gfx::PointF& location) override; | 44 const gfx::PointF& location) override; |
45 void MoveCursorTo(const gfx::PointF& location) override; | 45 void MoveCursorTo(const gfx::PointF& location) override; |
46 void MoveCursor(const gfx::Vector2dF& delta) override; | 46 void MoveCursor(const gfx::Vector2dF& delta) override; |
47 bool IsCursorVisible() override; | 47 bool IsCursorVisible() override; |
48 gfx::PointF location() override; | 48 gfx::PointF GetLocation() override; |
49 gfx::Rect GetCursorDisplayBounds() override; | 49 gfx::Rect GetCursorDisplayBounds() override; |
50 | 50 |
51 private: | 51 private: |
52 // The location of the bitmap (the cursor location is the hotspot location). | 52 // The location of the bitmap (the cursor location is the hotspot location). |
53 gfx::Point bitmap_location(); | 53 gfx::Point bitmap_location(); |
54 | 54 |
55 DriWindowManager* window_manager_; // Not owned. | 55 DriWindowManager* window_manager_; // Not owned. |
56 DriGpuPlatformSupportHost* sender_; // Not owned. | 56 DriGpuPlatformSupportHost* sender_; // Not owned. |
57 | 57 |
58 // The current cursor bitmap. | 58 // The current cursor bitmap. |
59 scoped_refptr<BitmapCursorOzone> cursor_; | 59 scoped_refptr<BitmapCursorOzone> cursor_; |
60 | 60 |
61 // The window under the cursor. | 61 // The window under the cursor. |
62 gfx::AcceleratedWidget cursor_window_; | 62 gfx::AcceleratedWidget cursor_window_; |
63 | 63 |
64 // The location of the cursor within the window. | 64 // The location of the cursor within the window. |
65 gfx::PointF cursor_location_; | 65 gfx::PointF cursor_location_; |
66 | 66 |
67 // The bounsd of the display under the cursor. | 67 // The bounsd of the display under the cursor. |
68 gfx::Rect cursor_display_bounds_; | 68 gfx::Rect cursor_display_bounds_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace ui | 71 } // namespace ui |
72 | 72 |
73 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 73 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
OLD | NEW |