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

Side by Side Diff: third_party/WebKit/Source/modules/mediasession/MediaSession.idl

Issue 2617403002: Media Session: remove EventTarget from MediaSession interface inheritance. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://wicg.github.io/mediasession/#enumdef-mediasessionplaybackstate 5 // https://wicg.github.io/mediasession/#enumdef-mediasessionplaybackstate
6 6
7 enum MediaSessionPlaybackState { 7 enum MediaSessionPlaybackState {
8 "none", 8 "none",
9 "paused", 9 "paused",
10 "playing" 10 "playing"
11 }; 11 };
12 12
13 // https://wicg.github.io/mediasession/#the-mediasession-interface 13 // https://wicg.github.io/mediasession/#the-mediasession-interface
14 14
15 enum MediaSessionAction { 15 enum MediaSessionAction {
16 "play", 16 "play",
17 "pause", 17 "pause",
18 "previoustrack", 18 "previoustrack",
19 "nexttrack", 19 "nexttrack",
20 "seekbackward", 20 "seekbackward",
21 "seekforward" 21 "seekforward"
22 }; 22 };
23 23
24 callback MediaSessionActionHandler = void (); 24 callback MediaSessionActionHandler = void ();
25 25
26 [ 26 [
27 Custom=VisitDOMWrapper, 27 Custom=VisitDOMWrapper,
28 RuntimeEnabled=MediaSession, 28 RuntimeEnabled=MediaSession,
29 ] interface MediaSession : EventTarget { 29 ] interface MediaSession {
30 attribute MediaMetadata? metadata; 30 attribute MediaMetadata? metadata;
31 attribute MediaSessionPlaybackState playbackState; 31 attribute MediaSessionPlaybackState playbackState;
32 32
33 void setActionHandler(MediaSessionAction action, 33 void setActionHandler(MediaSessionAction action,
34 MediaSessionActionHandler? handler); 34 MediaSessionActionHandler? handler);
35 }; 35 };
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698