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 module ui.mojom; | 5 module ui.mojom; |
6 | 6 |
7 import "mojo/common/time.mojom"; | 7 import "mojo/common/time.mojom"; |
8 import "skia/public/interfaces/bitmap.mojom"; | 8 import "skia/public/interfaces/bitmap.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 kCopy, | 53 kCopy, |
54 kNone, | 54 kNone, |
55 kNotAllowed, | 55 kNotAllowed, |
56 kZoomIn, | 56 kZoomIn, |
57 kZoomOut, | 57 kZoomOut, |
58 kGrab, | 58 kGrab, |
59 kGrabbing, | 59 kGrabbing, |
60 kCustom | 60 kCustom |
61 }; | 61 }; |
62 | 62 |
| 63 // Whether we use normal or large cursors. These are the same as Chrome's |
| 64 // ui::CursorSize. |
| 65 enum CursorSize { |
| 66 kNormal, |
| 67 kLarge |
| 68 }; |
| 69 |
63 // A description of a cursor. | 70 // A description of a cursor. |
64 struct CursorData { | 71 struct CursorData { |
65 // The type of cursor. If CUSTOM, the rest of the fields are relevant. | 72 // The type of cursor. If CUSTOM, the rest of the fields are relevant. |
66 CursorType cursor_type; | 73 CursorType cursor_type; |
67 | 74 |
68 // The delay between cursor frames. | 75 // The delay between cursor frames. |
69 mojo.common.mojom.TimeDelta frame_delay; | 76 mojo.common.mojom.TimeDelta frame_delay; |
70 | 77 |
71 // The hotspot in pixels in the source cursor frames. | 78 // The hotspot in pixels in the source cursor frames. |
72 gfx.mojom.Point hotspot_in_pixels; | 79 gfx.mojom.Point hotspot_in_pixels; |
73 | 80 |
74 // The frames of the cursor. | 81 // The frames of the cursor. |
75 array<skia.mojom.Bitmap?> cursor_frames; | 82 array<skia.mojom.Bitmap?> cursor_frames; |
76 | 83 |
77 // This is the image scale of this cursor. | 84 // This is the image scale of this cursor. |
78 float scale_factor; | 85 float scale_factor; |
79 }; | 86 }; |
OLD | NEW |