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

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

Issue 2401013002: Make MediaSession per frame as an attribute of Navigator (Closed)
Patch Set: fixed 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
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..39ef8d04a981063ee45f04c514b5a77f65f24d03 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://wicg.github.io/mediasession/#the-mediasession-interface
[
- OriginTrialEnabled=WebShare,
+ Exposed=(Window),
whywhat 2016/10/10 20:45:10 What does this mean?
Zhiqiang Zhang (Slow) 2016/10/11 10:56:04 This means the partial interface is available to W
whywhat 2016/10/11 14:58:33 Hm, we don't have that on Presentation I think, sh
+ RuntimeEnabled=MediaSession
] 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