Index: services/ui/public/interfaces/cursor/cursor.mojom |
diff --git a/services/ui/public/interfaces/cursor.mojom b/services/ui/public/interfaces/cursor/cursor.mojom |
similarity index 65% |
rename from services/ui/public/interfaces/cursor.mojom |
rename to services/ui/public/interfaces/cursor/cursor.mojom |
index 0fd34e184b8f92d3f6b65683085ae75e686cd586..08a88021df705ea96a9c706fe1ff27672e2add4e 100644 |
--- a/services/ui/public/interfaces/cursor.mojom |
+++ b/services/ui/public/interfaces/cursor/cursor.mojom |
@@ -4,6 +4,10 @@ |
module ui.mojom; |
+import "mojo/common/time.mojom"; |
+import "skia/public/interfaces/bitmap_array.mojom"; |
+import "ui/gfx/geometry/mojo/geometry.mojom"; |
+ |
// Standard Cursor numbers. These are the same as Chrome's ui::Cursor and |
// blink's WebCursorInfo. |
enum CursorType { |
@@ -55,3 +59,21 @@ enum CursorType { |
GRABBING, |
CUSTOM |
}; |
+ |
+// A description of a cursor. |
+struct CursorData { |
+ // The type of cursor. If CUSTOM, the rest of the fields are relevant. |
+ CursorType cursor_type; |
+ |
+ // The delay between cursor frames. |
+ mojo.common.mojom.TimeDelta frame_delay; |
+ |
+ // The hotspot in pixels in the source cursor frames. |
+ gfx.mojom.Point hotspot_in_pixels; |
+ |
+ // The frames of the cursor. |
+ skia.mojom.BitmapArray cursor_frames; |
+ |
+ // This is the image scale of this cursor. |
+ float scale_factor; |
+}; |