OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module blink.mojom; |
| 6 |
| 7 import "mojo/common/common_custom_types.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 import "url/mojo/url.mojom"; |
| 10 |
| 11 // Album art in MediaMetadata |
| 12 // Spec: https://wicg.github.io/mediasession/ |
| 13 struct MediaImage { |
| 14 url.mojom.Url src; |
| 15 mojo.common.mojom.String16 type; |
| 16 array<gfx.mojom.Size> sizes; |
| 17 }; |
| 18 |
| 19 // MediaMetadata |
| 20 // Spec: https://wicg.github.io/mediasession/ |
| 21 struct MediaMetadata { |
| 22 mojo.common.mojom.String16 title; |
| 23 mojo.common.mojom.String16 artist; |
| 24 mojo.common.mojom.String16 album; |
| 25 array<MediaImage> artwork; |
| 26 }; |
| 27 |
| 28 interface MediaSessionService { |
| 29 SetMetadata(MediaMetadata? metadata); |
| 30 }; |
OLD | NEW |