OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 [ | 26 [ |
27 ActiveDOMObject, | 27 ActiveDOMObject, |
28 RuntimeEnabled=Media, | 28 RuntimeEnabled=Media, |
29 ] interface HTMLMediaElement : HTMLElement { | 29 ] interface HTMLMediaElement : HTMLElement { |
30 | 30 |
31 // error state | 31 // error state |
32 [StrictTypeChecking] readonly attribute MediaError? error; | 32 [StrictTypeChecking] 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, LogActivity=SetterOnly] attribute DOMString
src; |
36 [URL, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] readonly at
tribute DOMString currentSrc; | 36 [URL, PerWorldBindings, LogActivity=SetterOnly] readonly attribute DOMString
currentSrc; |
37 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] attribute DOMString crossOrigin; | 37 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] attribute DOMString crossOrigin; |
38 | 38 |
39 const unsigned short NETWORK_EMPTY = 0; | 39 const unsigned short NETWORK_EMPTY = 0; |
40 const unsigned short NETWORK_IDLE = 1; | 40 const unsigned short NETWORK_IDLE = 1; |
41 const unsigned short NETWORK_LOADING = 2; | 41 const unsigned short NETWORK_LOADING = 2; |
42 const unsigned short NETWORK_NO_SOURCE = 3; | 42 const unsigned short NETWORK_NO_SOURCE = 3; |
43 readonly attribute unsigned short networkState; | 43 readonly attribute unsigned short networkState; |
44 attribute DOMString preload; | 44 attribute DOMString preload; |
45 | 45 |
46 readonly attribute TimeRanges buffered; | 46 readonly attribute TimeRanges buffered; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 [RaisesException] TextTrack addTextTrack(DOMString kind, optional DOMString
label, optional DOMString language); | 86 [RaisesException] TextTrack addTextTrack(DOMString kind, optional DOMString
label, optional DOMString language); |
87 | 87 |
88 // WebKit extensions | 88 // WebKit extensions |
89 | 89 |
90 // The number of bytes consumed by the media decoder. | 90 // The number of bytes consumed by the media decoder. |
91 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w
ebkitAudioDecodedByteCount; | 91 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w
ebkitAudioDecodedByteCount; |
92 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w
ebkitVideoDecodedByteCount; | 92 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w
ebkitVideoDecodedByteCount; |
93 | 93 |
94 [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity
; | 94 [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity
; |
95 }; | 95 }; |
OLD | NEW |