| 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_array.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 |
| 11 // Standard Cursor numbers. These are the same as Chrome's ui::Cursor and | 11 // Standard Cursor numbers. These are the same as Chrome's ui::Cursor and |
| 12 // blink's WebCursorInfo. | 12 // blink's WebCursorInfo. |
| 13 enum CursorType { | 13 enum CursorType { |
| 14 // kNull is kept for compatibility with chrome declarations. In chrome code, | 14 // kNull is kept for compatibility with chrome declarations. In chrome code, |
| 15 // it is treated exactly like kPointer, the default pointer. | 15 // it is treated exactly like kPointer, the default pointer. |
| 16 kNull = 0, | 16 kNull = 0, |
| 17 kPointer, | 17 kPointer, |
| 18 kCross, | 18 kCross, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // The type of cursor. If CUSTOM, the rest of the fields are relevant. | 65 // The type of cursor. If CUSTOM, the rest of the fields are relevant. |
| 66 CursorType cursor_type; | 66 CursorType cursor_type; |
| 67 | 67 |
| 68 // The delay between cursor frames. | 68 // The delay between cursor frames. |
| 69 mojo.common.mojom.TimeDelta frame_delay; | 69 mojo.common.mojom.TimeDelta frame_delay; |
| 70 | 70 |
| 71 // The hotspot in pixels in the source cursor frames. | 71 // The hotspot in pixels in the source cursor frames. |
| 72 gfx.mojom.Point hotspot_in_pixels; | 72 gfx.mojom.Point hotspot_in_pixels; |
| 73 | 73 |
| 74 // The frames of the cursor. | 74 // The frames of the cursor. |
| 75 skia.mojom.BitmapArray cursor_frames; | 75 array<skia.mojom.Bitmap?> cursor_frames; |
| 76 | 76 |
| 77 // This is the image scale of this cursor. | 77 // This is the image scale of this cursor. |
| 78 float scale_factor; | 78 float scale_factor; |
| 79 }; | 79 }; |
| OLD | NEW |