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

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

Issue 2786983003: [aura-mus] Add ui::CursorData, with mojo serialization. (Closed)
Patch Set: everybody comments 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
« no previous file with comments | « services/ui/public/interfaces/cursor/OWNERS ('k') | services/ui/public/interfaces/cursor/cursor.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+};
« no previous file with comments | « services/ui/public/interfaces/cursor/OWNERS ('k') | services/ui/public/interfaces/cursor/cursor.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698