| 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 "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 import "skia/public/interfaces/bitmap_array.mojom"; |
| 9 |
| 7 // Standard Cursor numbers. These are the same as Chrome's ui::Cursor and | 10 // Standard Cursor numbers. These are the same as Chrome's ui::Cursor and |
| 8 // blink's WebCursorInfo. | 11 // blink's WebCursorInfo. |
| 9 enum CursorType { | 12 enum CursorType { |
| 10 // NULL is kept for compatibility with chrome declarations. In chrome code, it | 13 // NULL is kept for compatibility with chrome declarations. In chrome code, it |
| 11 // is treated exactly like POINTER, the default pointer. | 14 // is treated exactly like POINTER, the default pointer. |
| 12 CURSOR_NULL = 0, | 15 CURSOR_NULL = 0, |
| 13 POINTER, | 16 POINTER, |
| 14 CROSS, | 17 CROSS, |
| 15 HAND, | 18 HAND, |
| 16 IBEAM, | 19 IBEAM, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 NO_DROP, | 51 NO_DROP, |
| 49 COPY, | 52 COPY, |
| 50 NONE, | 53 NONE, |
| 51 NOT_ALLOWED, | 54 NOT_ALLOWED, |
| 52 ZOOM_IN, | 55 ZOOM_IN, |
| 53 ZOOM_OUT, | 56 ZOOM_OUT, |
| 54 GRAB, | 57 GRAB, |
| 55 GRABBING, | 58 GRABBING, |
| 56 CUSTOM | 59 CUSTOM |
| 57 }; | 60 }; |
| 61 |
| 62 struct CursorData { |
| 63 // The type of cursor. If CUSTOM, the rest of the fields are relevant. |
| 64 CursorType native_type; |
| 65 |
| 66 // The delay between cursor frames in milliseconds. |
| 67 uint32 frame_delay_ms; |
| 68 |
| 69 // The hotspot in cursor frames. |
| 70 gfx.mojom.Point hotspot; |
| 71 |
| 72 // The frames of the cursor. |
| 73 skia.mojom.BitmapArray cursor_frames; |
| 74 }; |
| OLD | NEW |