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

Unified Diff: core/html/HTMLMediaElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/HTMLMarqueeElement.idl ('k') | core/html/HTMLMenuElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/HTMLMediaElement.idl
diff --git a/core/html/HTMLMediaElement.idl b/core/html/HTMLMediaElement.idl
index 7990f6b726eb6a934d234c1fc82594960b594d34..0ced5dc08131f250cda4f0231deb99e6b44de111 100644
--- a/core/html/HTMLMediaElement.idl
+++ b/core/html/HTMLMediaElement.idl
@@ -23,11 +23,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#media-elements
+
+enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
[
ActiveDOMObject,
RuntimeEnabled=Media,
- SpecialWrapFor=(HTMLAudioElement,HTMLVideoElement),
- TypeChecking=Unrestricted,
] interface HTMLMediaElement : HTMLElement {
// error state
@@ -35,19 +36,18 @@
// network state
[Reflect, URL] attribute DOMString src;
- [URL] readonly attribute DOMString currentSrc;
+ // FIXME: attribute MediaProvider? srcObject; crbug.com/387740
+ readonly attribute DOMString currentSrc;
[Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin;
-
const unsigned short NETWORK_EMPTY = 0;
const unsigned short NETWORK_IDLE = 1;
const unsigned short NETWORK_LOADING = 2;
const unsigned short NETWORK_NO_SOURCE = 3;
readonly attribute unsigned short networkState;
attribute DOMString preload;
-
readonly attribute TimeRanges buffered;
void load();
- DOMString canPlayType(DOMString type, [Default=Undefined, TreatUndefinedAs=NullString] optional DOMString? keySystem);
+ CanPlayTypeResult canPlayType(DOMString type);
// ready state
const unsigned short HAVE_NOTHING = 0;
@@ -60,7 +60,9 @@
// playback state
[RaisesException=Setter] attribute double currentTime;
+ // FIXME: void fastSeek(double time);
readonly attribute unrestricted double duration;
+ // FIXME: Date getStartDate(); crbug.com/312699
readonly attribute boolean paused;
attribute double defaultPlaybackRate;
attribute double playbackRate;
@@ -83,16 +85,14 @@
[Reflect=muted] attribute boolean defaultMuted;
// tracks
- [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks;
- [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks;
- readonly attribute TextTrackList textTracks;
- [RaisesException] TextTrack addTextTrack(DOMString kind, optional DOMString label, optional DOMString language);
-
- // WebKit extensions
+ [SameObject, RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks;
+ [SameObject, RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks;
+ [SameObject] readonly attribute TextTrackList textTracks;
+ [RaisesException] TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = "");
+ // Non-standard APIs
+ [RuntimeEnabled=PrefixedEncryptedMedia, DeprecateAs=CanPlayTypeKeySystem] DOMString canPlayType(DOMString type, [TreatUndefinedAs=NullString] DOMString? keySystem);
// The number of bytes consumed by the media decoder.
[MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long webkitAudioDecodedByteCount;
[MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long webkitVideoDecodedByteCount;
-
- [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity;
};
« no previous file with comments | « core/html/HTMLMarqueeElement.idl ('k') | core/html/HTMLMenuElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698