OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DRM_HOST_DRM_CURSOR_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 // processes. The proxy implementation must satisfy DrmCursorProxy. | 23 // processes. The proxy implementation must satisfy DrmCursorProxy. |
24 class DrmCursorProxy { | 24 class DrmCursorProxy { |
25 public: | 25 public: |
26 virtual ~DrmCursorProxy() {} | 26 virtual ~DrmCursorProxy() {} |
27 | 27 |
28 // Sets the cursor |bitmaps| on |window| at |point| with |frame_delay_ms|. | 28 // Sets the cursor |bitmaps| on |window| at |point| with |frame_delay_ms|. |
29 virtual void CursorSet(gfx::AcceleratedWidget window, | 29 virtual void CursorSet(gfx::AcceleratedWidget window, |
30 const std::vector<SkBitmap>& bitmaps, | 30 const std::vector<SkBitmap>& bitmaps, |
31 const gfx::Point& point, | 31 const gfx::Point& point, |
32 int frame_delay_ms) = 0; | 32 int frame_delay_ms) = 0; |
33 // Moves the cursor in |window| to |point| | 33 // Moves the cursor in |window| to |point|. |
34 virtual void Move(gfx::AcceleratedWidget window, const gfx::Point& point) = 0; | 34 virtual void Move(gfx::AcceleratedWidget window, const gfx::Point& point) = 0; |
35 | 35 |
36 // Initialize EvdevThread-specific state. | 36 // Initialize EvdevThread-specific state. |
37 virtual void InitializeOnEvdev() = 0; | 37 virtual void InitializeOnEvdev() = 0; |
38 }; | 38 }; |
39 | 39 |
40 // DrmCursor manages all cursor state and semantics. | 40 // DrmCursor manages all cursor state and semantics. |
41 class DrmCursor : public CursorDelegateEvdev { | 41 class DrmCursor : public CursorDelegateEvdev { |
42 public: | 42 public: |
43 explicit DrmCursor(DrmWindowHostManager* window_manager); | 43 explicit DrmCursor(DrmWindowHostManager* window_manager); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 DrmWindowHostManager* window_manager_; // Not owned. | 113 DrmWindowHostManager* window_manager_; // Not owned. |
114 | 114 |
115 std::unique_ptr<DrmCursorProxy> proxy_; | 115 std::unique_ptr<DrmCursorProxy> proxy_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(DrmCursor); | 117 DISALLOW_COPY_AND_ASSIGN(DrmCursor); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace ui | 120 } // namespace ui |
121 | 121 |
122 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ | 122 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ |
OLD | NEW |