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

Unified Diff: Source/core/html/HTMLMediaElement.idl

Issue 1011593002: Sync the HTMLM*Element interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: oops inconsistent URLs Created 5 years, 9 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/core/html/HTMLMarqueeElement.idl ('k') | Source/core/html/HTMLMenuElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.idl
diff --git a/Source/core/html/HTMLMediaElement.idl b/Source/core/html/HTMLMediaElement.idl
index bc4888796c4af88cc97898c57193f849de0baab7..ed52c9237575361e1c612fdd4f0dcc800e2c4edc 100644
--- a/Source/core/html/HTMLMediaElement.idl
+++ b/Source/core/html/HTMLMediaElement.idl
@@ -23,6 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#htmlmediaelement
+
+enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
[
ActiveDOMObject,
RuntimeEnabled=Media,
@@ -33,20 +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);
- [RuntimeEnabled=PrefixedEncryptedMedia, DeprecateAs=CanPlayTypeKeySystem] DOMString canPlayType(DOMString type, [TreatUndefinedAs=NullString] DOMString? keySystem);
+ CanPlayTypeResult canPlayType(DOMString type);
// ready state
const unsigned short HAVE_NOTHING = 0;
@@ -59,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;
@@ -82,16 +85,19 @@
[Reflect=muted] attribute boolean defaultMuted;
// tracks
- [RuntimeEnabled=AudioVideoTracks] readonly attribute AudioTrackList audioTracks;
- [RuntimeEnabled=AudioVideoTracks] readonly attribute VideoTrackList videoTracks;
- readonly attribute TextTrackList textTracks;
+ [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 = "");
- // WebKit extensions
+ // Subresource Integrity
+ // http://w3c.github.io/webappsec/specs/subresourceintegrity/
+ // FIXME: The spec does not extend HTMLAnchorElement.
+ [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity;
+ // 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 | « Source/core/html/HTMLMarqueeElement.idl ('k') | Source/core/html/HTMLMenuElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698