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

Unified Diff: third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.idl

Issue 2252783004: Implement MediaSession (metadata) per frame [NOT READY, HAS DEPENDENCY] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 3 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
Index: third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.idl
diff --git a/third_party/WebKit/Source/modules/webshare/NavigatorShare.idl b/third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.idl
similarity index 52%
copy from third_party/WebKit/Source/modules/webshare/NavigatorShare.idl
copy to third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.idl
index 27e55b463664f32e5317e445c4edeba3d1084bbe..03d4c1a28dc1f61864f3022174a0c9586c3f73eb 100644
--- a/third_party/WebKit/Source/modules/webshare/NavigatorShare.idl
+++ b/third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.idl
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://github.com/WICG/web-share/blob/master/docs/interface.md
+// https://mediasession.spec.whatwg.org/#the-mediasession-interface
[
- OriginTrialEnabled=WebShare,
+ RuntimeEnabled=MediaSession,
+ Exposed=(Window),
] partial interface Navigator {
- [CallWith=ScriptState, MeasureAs=WebShareShare]
- Promise<void> share(ShareData data);
+ readonly attribute MediaSession mediaSession;
};

Powered by Google App Engine
This is Rietveld 408576698