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

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

Issue 1325493002: NOT FOR LANDING Introduce and use WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing files Created 5 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
« no previous file with comments | « Source/modules/mediasession/MediaSession.cpp ('k') | Source/modules/mediasession/MediaSessionError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasession/MediaSession.idl
diff --git a/Source/modules/mediasession/MediaSession.idl b/Source/modules/mediasession/MediaSession.idl
index 235604b3f20f4b98c5470611e3d8e68f8152db2e..560fca24a8da61827c19ad6cdd0258d75f17fb7b 100644
--- a/Source/modules/mediasession/MediaSession.idl
+++ b/Source/modules/mediasession/MediaSession.idl
@@ -6,9 +6,10 @@
[
Constructor(),
+ ConstructorCallWith=ScriptState,
GarbageCollected,
RuntimeEnabled=MediaSession,
] interface MediaSession {
- void activate();
- void deactivate();
+ [CallWith=ScriptState] Promise<void> activate();
+ [CallWith=ScriptState] Promise<void> deactivate();
};
« no previous file with comments | « Source/modules/mediasession/MediaSession.cpp ('k') | Source/modules/mediasession/MediaSessionError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698