OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module media.mojom; |
| 6 |
| 7 import "media/mojo/interfaces/media_types.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 |
| 10 interface AndroidOverlayProvider { |
| 11 // Create an overlay and send it to |client|, using |config| as the initial |
| 12 // configuration. |client| will be notified when the overlay is ready. |
| 13 CreateOverlay(AndroidOverlayClient client, AndroidOverlayConfig config); |
| 14 }; |
| 15 |
| 16 // One overlay instance. |
| 17 interface AndroidOverlay { |
| 18 // Cause a layout to occur later. |
| 19 ScheduleLayout(gfx.mojom.Rect rect); |
| 20 }; |
| 21 |
| 22 // Provided by the client to receive status updates about the overlay. |
| 23 interface AndroidOverlayClient { |
| 24 // |overlay| is the AndroidOverlay that was created in response to a |
| 25 // CreateOverlay request. |
| 26 OnInitialized(AndroidOverlay overlay); |
| 27 |
| 28 // |surface_key| is the key that can be used to retrieve the surface via |
| 29 // binder separately. |
| 30 OnSurfaceReady(uint64 surface_key); |
| 31 |
| 32 // Indicates that this overlay has been permanently destroyed. This can |
| 33 // happen before OnInitialized, or before OnSurfaceReady. It will be the last |
| 34 // callback from the overlay in any case. |
| 35 OnDestroyed(); |
| 36 }; |
| 37 |
| 38 // This is not a mirror of AndroidOverlay::Config, since it contains things that |
| 39 // are specific to the mojo implementation. |
| 40 struct AndroidOverlayConfig { |
| 41 uint32 render_frame_id; |
| 42 uint32 renderer_pid; |
| 43 |
| 44 gfx.mojom.Rect rect; |
| 45 }; |
OLD | NEW |