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

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

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert throwing in the constructor; would needlessly complicate existing tests Created 5 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/MediaSession.idl
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaSession.idl b/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
index 235604b3f20f4b98c5470611e3d8e68f8152db2e..7e0d39d1d3401710566ad242c1ec3ba84a5317ac 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
+++ b/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
@@ -6,9 +6,10 @@
[
Constructor(),
+ ConstructorCallWith=ExecutionContext,
GarbageCollected,
RuntimeEnabled=MediaSession,
] interface MediaSession {
- void activate();
- void deactivate();
+ [CallWith=ScriptState] Promise<void> activate();
+ [CallWith=ScriptState] Promise<void> deactivate();
};

Powered by Google App Engine
This is Rietveld 408576698