Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: third_party/WebKit/public/platform/modules/mediasession/media_session.mojom

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: fix build Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 struct MediaMetadataIcon {
12 url.mojom.Url src;
13 mojo.common.mojom.NullableString16 type;
14 array<gfx.mojom.Size> sizes;
15 };
16
17 struct MediaMetadata {
18 mojo.common.mojom.String16 title;
19 mojo.common.mojom.String16 artist;
20 mojo.common.mojom.String16 album;
21 array<MediaMetadataIcon> artwork;
22 };
23
24 interface MediaSessionService {
25 Activate(uint64 session_id) => (bool success);
26 Deactivate(uint64 session_id) => ();
mlamouri (slow - plz ping) 2016/09/27 08:33:11 Do we need Activate/Deactivate?
27 SetMetadata(uint64 session_id, MediaMetadata? metadata);
28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698