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

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

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: fixed layout tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/mediasession/WebMediaSessionError.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/mediasession/media_session.mojom
diff --git a/third_party/WebKit/public/platform/modules/mediasession/media_session.mojom b/third_party/WebKit/public/platform/modules/mediasession/media_session.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..dae65f6e339dbc465103e023d64599ffba08892a
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/mediasession/media_session.mojom
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module blink.mojom;
+
+import "mojo/common/common_custom_types.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+import "url/mojo/url.mojom";
+
+// Album art in MediaMetadata
+// Spec: https://wicg.github.io/mediasession/
+struct MediaImage {
+ url.mojom.Url src;
+ mojo.common.mojom.String16 type;
+ array<gfx.mojom.Size> sizes;
+};
+
+// MediaMetadata
+// Spec: https://wicg.github.io/mediasession/
+struct MediaMetadata {
+ mojo.common.mojom.String16 title;
+ mojo.common.mojom.String16 artist;
+ mojo.common.mojom.String16 album;
+ array<MediaImage> artwork;
+};
+
+interface MediaSessionService {
+ SetMetadata(MediaMetadata? metadata);
+};
« no previous file with comments | « third_party/WebKit/public/platform/modules/mediasession/WebMediaSessionError.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698