| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.ozone.mojom; | 5 module ui.ozone.mojom; |
| 6 | 6 |
| 7 import "skia/public/interfaces/bitmap_array.mojom"; | 7 import "skia/public/interfaces/bitmap.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 import "ui/gfx/mojo/accelerated_widget.mojom"; | 9 import "ui/gfx/mojo/accelerated_widget.mojom"; |
| 10 | 10 |
| 11 // The DeviceCursor setting interface provided by a Mojo-enabled Ozone platform | 11 // The DeviceCursor setting interface provided by a Mojo-enabled Ozone platform |
| 12 // where functionality equivalent to the DrmCursorProxy is exposed by a | 12 // where functionality equivalent to the DrmCursorProxy is exposed by a |
| 13 // dedicated thread within the Ozone platform. | 13 // dedicated thread within the Ozone platform. |
| 14 interface DeviceCursor { | 14 interface DeviceCursor { |
| 15 // Sets the cursor |bitmaps| on |window| at |point| with | 15 // Sets the cursor |bitmaps| on |window| at |point| with |
| 16 // |frame_delay_ms|. | 16 // |frame_delay_ms|. |
| 17 SetCursor(gfx.mojom.AcceleratedWidget window, | 17 SetCursor(gfx.mojom.AcceleratedWidget window, |
| 18 skia.mojom.BitmapArray bitmaps, | 18 array<skia.mojom.Bitmap> bitmaps, |
| 19 gfx.mojom.Point point, | 19 gfx.mojom.Point point, |
| 20 int32 frame_delay_ms); | 20 int32 frame_delay_ms); |
| 21 | 21 |
| 22 // Moves the cursor in |window| to |point|. | 22 // Moves the cursor in |window| to |point|. |
| 23 MoveCursor(gfx.mojom.AcceleratedWidget window, gfx.mojom.Point point); | 23 MoveCursor(gfx.mojom.AcceleratedWidget window, gfx.mojom.Point point); |
| 24 }; | 24 }; |
| 25 | 25 |
| OLD | NEW |