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

Side by Side Diff: core/html/HTMLMediaElement.idl

Issue 155973006: Roll IDL to 1750 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « core/html/HTMLMarqueeElement.idl ('k') | core/html/HTMLMetaElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 RuntimeEnabled=Media, 27 RuntimeEnabled=Media,
28 ActiveDOMObject 28 ActiveDOMObject
29 ] interface HTMLMediaElement : HTMLElement { 29 ] interface HTMLMediaElement : HTMLElement {
30 30
31 // error state 31 // error state
32 readonly attribute MediaError error; 32 readonly attribute MediaError error;
33 33
34 // network state 34 // network state
35 [Reflect, URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] at tribute DOMString src; 35 [Reflect, URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] at tribute DOMString src;
36 [URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] readonly at tribute DOMString currentSrc; 36 [URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] readonly at tribute DOMString currentSrc;
37 [Reflect] attribute DOMString crossOrigin;
37 38
38 const unsigned short NETWORK_EMPTY = 0; 39 const unsigned short NETWORK_EMPTY = 0;
39 const unsigned short NETWORK_IDLE = 1; 40 const unsigned short NETWORK_IDLE = 1;
40 const unsigned short NETWORK_LOADING = 2; 41 const unsigned short NETWORK_LOADING = 2;
41 const unsigned short NETWORK_NO_SOURCE = 3; 42 const unsigned short NETWORK_NO_SOURCE = 3;
42 readonly attribute unsigned short networkState; 43 readonly attribute unsigned short networkState;
43 attribute DOMString preload; 44 attribute DOMString preload;
44 45
45 readonly attribute TimeRanges buffered; 46 readonly attribute TimeRanges buffered;
46 void load(); 47 void load();
47 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default= Undefined, TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMStri ng keySystem); 48 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default= Undefined, TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMStri ng keySystem);
48 49
49 // ready state 50 // ready state
50 const unsigned short HAVE_NOTHING = 0; 51 const unsigned short HAVE_NOTHING = 0;
51 const unsigned short HAVE_METADATA = 1; 52 const unsigned short HAVE_METADATA = 1;
52 const unsigned short HAVE_CURRENT_DATA = 2; 53 const unsigned short HAVE_CURRENT_DATA = 2;
53 const unsigned short HAVE_FUTURE_DATA = 3; 54 const unsigned short HAVE_FUTURE_DATA = 3;
54 const unsigned short HAVE_ENOUGH_DATA = 4; 55 const unsigned short HAVE_ENOUGH_DATA = 4;
55 readonly attribute unsigned short readyState; 56 readonly attribute unsigned short readyState;
56 readonly attribute boolean seeking; 57 readonly attribute boolean seeking;
57 58
58 // playback state 59 // playback state
59 [SetterRaisesException] attribute double currentTime; 60 [RaisesException=Setter] attribute double currentTime;
60 readonly attribute double duration; 61 readonly attribute double duration;
61 readonly attribute boolean paused; 62 readonly attribute boolean paused;
62 attribute double defaultPlaybackRate; 63 attribute double defaultPlaybackRate;
63 attribute double playbackRate; 64 attribute double playbackRate;
64 readonly attribute TimeRanges played; 65 readonly attribute TimeRanges played;
65 readonly attribute TimeRanges seekable; 66 readonly attribute TimeRanges seekable;
66 readonly attribute boolean ended; 67 readonly attribute boolean ended;
67 [Reflect] attribute boolean autoplay; 68 [Reflect] attribute boolean autoplay;
68 [Reflect] attribute boolean loop; 69 [Reflect] attribute boolean loop;
69 void play(); 70 void play();
70 void pause(); 71 void pause();
71 72
72 // media controller 73 // media controller
73 [Reflect] attribute DOMString mediaGroup; 74 [Reflect] attribute DOMString mediaGroup;
74 [CustomSetter] attribute MediaController controller; 75 [StrictTypeChecking] attribute MediaController controller;
75 76
76 // controls 77 // controls
77 attribute boolean controls; 78 attribute boolean controls;
78 [SetterRaisesException] attribute double volume; 79 [RaisesException=Setter] attribute double volume;
79 attribute boolean muted; 80 attribute boolean muted;
80 [Reflect=muted] attribute boolean defaultMuted; 81 [Reflect=muted] attribute boolean defaultMuted;
81 82
82 // tracks 83 // tracks
83 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks; 84 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks;
84 [RuntimeEnabled=VideoTrack, RaisesException] TextTrack addTextTrack(DOMStrin g kind, optional DOMString label, optional DOMString language); 85 [RuntimeEnabled=VideoTrack, RaisesException] TextTrack addTextTrack(DOMStrin g kind, optional DOMString label, optional DOMString language);
85 86
86 // WebKit extensions 87 // WebKit extensions
87 88
88 // The number of bytes consumed by the media decoder. 89 // The number of bytes consumed by the media decoder.
89 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w ebkitAudioDecodedByteCount; 90 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w ebkitAudioDecodedByteCount;
90 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w ebkitVideoDecodedByteCount; 91 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w ebkitVideoDecodedByteCount;
91 92
92 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is ready. 93 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is ready.
93 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitGenerate KeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySy stem, optional Uint8Array initData); 94 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitGenerate KeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySy stem, optional Uint8Array initData);
94 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([ TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A rray key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId); 95 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([ TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A rray key, optional Uint8Array initData, [Default=NullString] optional DOMString sessionId);
95 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst em, [Default=NullString] optional DOMString sessionId); 96 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst em, [Default=NullString] optional DOMString sessionId);
96 97
97 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded; 98 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad ded;
98 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror; 99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer ror;
99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage; 100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme ssage;
100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey; 101 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk ey;
101 102
102 [RuntimeEnabled=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Me diaKeys mediaKeys; 103 [RuntimeEnabled=EncryptedMedia] attribute MediaKeys mediaKeys;
103 }; 104 };
OLDNEW
« no previous file with comments | « core/html/HTMLMarqueeElement.idl ('k') | core/html/HTMLMetaElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698