OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 11 matching lines...) Expand all Loading... |
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 [ | 27 [ |
28 DoNotCheckConstants, | 28 DoNotCheckConstants, |
29 GarbageCollected, | 29 GarbageCollected, |
30 ConstructorCallWith=ScriptState, | 30 ConstructorCallWith=ScriptState, |
31 ] interface Internals { | 31 ] interface Internals { |
| 32 // WebMediaPlayer Preload States |
| 33 const unsigned short PRELOAD_NONE = 0; |
| 34 const unsigned short PRELOAD_METADATA = 1; |
| 35 const unsigned short PRELOAD_AUTO = 2; |
| 36 |
32 DOMString address(Node node); | 37 DOMString address(Node node); |
33 | 38 |
34 GCObservation observeGC(any observed); | 39 GCObservation observeGC(any observed); |
35 | 40 |
36 [RaisesException] DOMString elementLayoutTreeAsText(Element element); | 41 [RaisesException] DOMString elementLayoutTreeAsText(Element element); |
37 boolean isPreloaded(DOMString url); | 42 boolean isPreloaded(DOMString url); |
38 boolean isPreloadedBy(DOMString url, Document document); | 43 boolean isPreloadedBy(DOMString url, Document document); |
39 boolean isLoadingFromMemoryCache(DOMString url); | 44 boolean isLoadingFromMemoryCache(DOMString url); |
40 | 45 |
41 boolean isSharingStyle(Element element1, Element element2); | 46 boolean isSharingStyle(Element element1, Element element2); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 [RaisesException] long numberOfPages(optional double pageWidthInPixels = 800
, optional double pageHeightInPixels = 600); | 212 [RaisesException] long numberOfPages(optional double pageWidthInPixels = 800
, optional double pageHeightInPixels = 600); |
208 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 213 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
209 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 214 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
210 | 215 |
211 [RaisesException] void setPageScaleFactor(float scaleFactor); | 216 [RaisesException] void setPageScaleFactor(float scaleFactor); |
212 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); | 217 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); |
213 | 218 |
214 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); | 219 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); |
215 | 220 |
216 double effectiveMediaVolume(HTMLMediaElement mediaElement); | 221 double effectiveMediaVolume(HTMLMediaElement mediaElement); |
| 222 unsigned short effectivePreloadType(HTMLMediaElement mediaElement); |
217 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement
, boolean available); | 223 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement
, boolean available); |
218 void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolea
n remote); | 224 void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolea
n remote); |
219 void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean all
ow); | 225 void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean all
ow); |
220 | 226 |
221 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 227 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
222 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); | 228 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); |
223 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 229 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
224 | 230 |
225 TypeConversions typeConversions(); | 231 TypeConversions typeConversions(); |
226 | 232 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 void forceRestrictIFramePermissions(); | 359 void forceRestrictIFramePermissions(); |
354 [RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platfor
mTime); | 360 [RaisesException] double monotonicTimeToZeroBasedDocumentTime(double platfor
mTime); |
355 | 361 |
356 void setMediaElementNetworkState(HTMLMediaElement element, long state); | 362 void setMediaElementNetworkState(HTMLMediaElement element, long state); |
357 | 363 |
358 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. | 364 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. |
359 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); | 365 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); |
360 | 366 |
361 int getScrollAnimationState(Node node); | 367 int getScrollAnimationState(Node node); |
362 }; | 368 }; |
OLD | NEW |