Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: services/ui/public/interfaces/cursor/cursor.mojom

Issue 2786983003: [aura-mus] Add ui::CursorData, with mojo serialization. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 72%
rename from services/ui/public/interfaces/cursor.mojom
rename to services/ui/public/interfaces/cursor/cursor.mojom
index 0fd34e184b8f92d3f6b65683085ae75e686cd586..d8f11dfcb7ef45050f3c5de79018d25188941e71 100644
--- a/services/ui/public/interfaces/cursor.mojom
+++ b/services/ui/public/interfaces/cursor/cursor.mojom
@@ -4,6 +4,9 @@
module ui.mojom;
+import "ui/gfx/geometry/mojo/geometry.mojom";
+import "skia/public/interfaces/bitmap_array.mojom";
+
// Standard Cursor numbers. These are the same as Chrome's ui::Cursor and
// blink's WebCursorInfo.
enum CursorType {
@@ -55,3 +58,17 @@ enum CursorType {
GRABBING,
CUSTOM
};
+
+struct CursorData {
+ // The type of cursor. If CUSTOM, the rest of the fields are relevant.
+ CursorType native_type;
+
+ // The delay between cursor frames in milliseconds.
+ uint32 frame_delay_ms;
+
+ // The hotspot in cursor frames.
+ gfx.mojom.Point hotspot;
+
+ // The frames of the cursor.
+ skia.mojom.BitmapArray cursor_frames;
+};

Powered by Google App Engine
This is Rietveld 408576698