| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 [RaisesException] Node nextInFlatTree(Node node); | 89 [RaisesException] Node nextInFlatTree(Node node); |
| 90 [RaisesException] Node previousInFlatTree(Node node); | 90 [RaisesException] Node previousInFlatTree(Node node); |
| 91 | 91 |
| 92 DOMString visiblePlaceholder(Element element); | 92 DOMString visiblePlaceholder(Element element); |
| 93 | 93 |
| 94 void selectColorInColorChooser(Element element, DOMString colorValue); | 94 void selectColorInColorChooser(Element element, DOMString colorValue); |
| 95 void endColorChooser(Element element); | 95 void endColorChooser(Element element); |
| 96 | 96 |
| 97 // If the argument is omitted, the top-level document is used. | 97 // If the argument is omitted, the top-level document is used. |
| 98 boolean hasAutofocusRequest(optional Document document); | 98 boolean hasAutofocusRequest(optional Document document); |
| 99 [RaisesException] DOMString[] formControlStateOfHistoryItem(); | 99 [RaisesException] sequence<DOMString> formControlStateOfHistoryItem(); |
| 100 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); | 100 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString>
values); |
| 101 readonly attribute Window pagePopupWindow; | 101 readonly attribute Window pagePopupWindow; |
| 102 | 102 |
| 103 [RaisesException] ClientRect absoluteCaretBounds(); | 103 [RaisesException] ClientRect absoluteCaretBounds(); |
| 104 | 104 |
| 105 ClientRect boundingBox(Element element); | 105 ClientRect boundingBox(Element element); |
| 106 | 106 |
| 107 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); | 107 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark
erType); |
| 108 unsigned long activeMarkerCountForNode(Node node); | 108 unsigned long activeMarkerCountForNode(Node node); |
| 109 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); | 109 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType,
unsigned long index); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 DOMString scrollingStateTreeAsText(Document document); | 195 DOMString scrollingStateTreeAsText(Document document); |
| 196 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 196 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
| 197 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 197 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
| 198 | 198 |
| 199 void evictAllResources(); | 199 void evictAllResources(); |
| 200 | 200 |
| 201 unsigned long numberOfLiveNodes(); | 201 unsigned long numberOfLiveNodes(); |
| 202 unsigned long numberOfLiveDocuments(); | 202 unsigned long numberOfLiveDocuments(); |
| 203 DOMString dumpRefCountedInstanceCounts(); | 203 DOMString dumpRefCountedInstanceCounts(); |
| 204 unsigned long[] setMemoryCacheCapacities(unsigned long minDeadBytes, unsigne
d long maxDeadBytes, unsigned long totalBytes); | 204 sequence<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes,
unsigned long maxDeadBytes, unsigned long totalBytes); |
| 205 | 205 |
| 206 DOMString counterValue(Element element); | 206 DOMString counterValue(Element element); |
| 207 [RaisesException] long pageNumber(Element element, optional float pageWidth
= 800, optional float pageHeight = 600); | 207 [RaisesException] long pageNumber(Element element, optional float pageWidth
= 800, optional float pageHeight = 600); |
| 208 DOMString[] shortcutIconURLs(Document document); | 208 sequence<DOMString> shortcutIconURLs(Document document); |
| 209 DOMString[] allIconURLs(Document document); | 209 sequence<DOMString> allIconURLs(Document document); |
| 210 [RaisesException] long numberOfPages(optional double pageWidthInPixels = 800
, optional double pageHeightInPixels = 600); | 210 [RaisesException] long numberOfPages(optional double pageWidthInPixels = 800
, optional double pageHeightInPixels = 600); |
| 211 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 211 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
| 212 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 212 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
| 213 | 213 |
| 214 [RaisesException] float pageScaleFactor(); | 214 [RaisesException] float pageScaleFactor(); |
| 215 [RaisesException] void setPageScaleFactor(float scaleFactor); | 215 [RaisesException] void setPageScaleFactor(float scaleFactor); |
| 216 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); | 216 [RaisesException] void setPageScaleFactorLimits(float minScaleFactor, float
maxScaleFactor); |
| 217 | 217 |
| 218 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); | 218 [RaisesException] void setIsCursorVisible(Document document, boolean isVisib
le); |
| 219 | 219 |
| 220 double effectiveMediaVolume(HTMLMediaElement mediaElement); | 220 double effectiveMediaVolume(HTMLMediaElement mediaElement); |
| 221 DOMString effectivePreload(HTMLMediaElement mediaElement); | 221 DOMString effectivePreload(HTMLMediaElement mediaElement); |
| 222 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement
, boolean available); | 222 void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement mediaElement
, boolean available); |
| 223 void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolea
n remote); | 223 void mediaPlayerPlayingRemotelyChanged(HTMLMediaElement mediaElement, boolea
n remote); |
| 224 void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean all
ow); | 224 void setAllowHiddenVolumeControls(HTMLMediaElement mediaElement, boolean all
ow); |
| 225 | 225 |
| 226 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 226 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
| 227 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); | 227 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme, seq
uence<DOMString> policyAreas); |
| 228 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 228 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
| 229 | 229 |
| 230 TypeConversions typeConversions(); | 230 TypeConversions typeConversions(); |
| 231 | 231 |
| 232 // This is enabled only in Debug builds. | 232 // This is enabled only in Debug builds. |
| 233 // This is because we want to avoid putting the byte stream of testing priva
te scripts | 233 // This is because we want to avoid putting the byte stream of testing priva
te scripts |
| 234 // into the binary of Release builds. | 234 // into the binary of Release builds. |
| 235 PrivateScriptTest privateScriptTest(); | 235 PrivateScriptTest privateScriptTest(); |
| 236 | 236 |
| 237 DOMString[] getReferencedFilePaths(); | 237 sequence<DOMString> getReferencedFilePaths(); |
| 238 | 238 |
| 239 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: | 239 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: |
| 240 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). | 240 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). |
| 241 [RaisesException] void startTrackingRepaints(Document document); | 241 [RaisesException] void startTrackingRepaints(Document document); |
| 242 [RaisesException] void stopTrackingRepaints(Document document); | 242 [RaisesException] void stopTrackingRepaints(Document document); |
| 243 | 243 |
| 244 // |node| should be Document, HTMLIFrameElement, or unspecified. | 244 // |node| should be Document, HTMLIFrameElement, or unspecified. |
| 245 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 245 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
| 246 // specified without security checks. Unspecified means this document. | 246 // specified without security checks. Unspecified means this document. |
| 247 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); | 247 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 278 | 278 |
| 279 [RaisesException] void forceCompositingUpdate(Document document); | 279 [RaisesException] void forceCompositingUpdate(Document document); |
| 280 | 280 |
| 281 void setZoomFactor(float factor); | 281 void setZoomFactor(float factor); |
| 282 | 282 |
| 283 [RaisesException] void setShouldRevealPassword(Element element, boolean reve
al); | 283 [RaisesException] void setShouldRevealPassword(Element element, boolean reve
al); |
| 284 | 284 |
| 285 [CallWith=ScriptState] Promise createResolvedPromise(any value); | 285 [CallWith=ScriptState] Promise createResolvedPromise(any value); |
| 286 [CallWith=ScriptState] Promise createRejectedPromise(any reason); | 286 [CallWith=ScriptState] Promise createRejectedPromise(any reason); |
| 287 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); | 287 [CallWith=ScriptState] Promise addOneToPromise(Promise promise); |
| 288 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool
ean arg2, Dictionary arg3, DOMString arg4, DOMString[] arg5); | 288 [CallWith=ScriptState, RaisesException] Promise promiseCheck(long arg1, bool
ean arg2, Dictionary arg3, DOMString arg4, sequence<DOMString> arg5); |
| 289 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary
arg1, DOMString arg2, DOMString... variadic); | 289 [CallWith=ScriptState] Promise promiseCheckWithoutExceptionState(Dictionary
arg1, DOMString arg2, DOMString... variadic); |
| 290 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1); | 290 [CallWith=ScriptState] Promise promiseCheckRange([EnforceRange] octet arg1); |
| 291 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1); | 291 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1); |
| 292 [CallWith=ScriptState] Promise promiseCheckOverload(Document arg1); | 292 [CallWith=ScriptState] Promise promiseCheckOverload(Document arg1); |
| 293 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2
, long arg3); | 293 [CallWith=ScriptState] Promise promiseCheckOverload(Location arg1, long arg2
, long arg3); |
| 294 | 294 |
| 295 void setValueForUser(Element element, DOMString value); | 295 void setValueForUser(Element element, DOMString value); |
| 296 | 296 |
| 297 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); | 297 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); |
| 298 | 298 |
| 299 void setFocused(boolean focused); | 299 void setFocused(boolean focused); |
| 300 void setInitialFocus(boolean reverse); | 300 void setInitialFocus(boolean reverse); |
| 301 | 301 |
| 302 boolean ignoreLayoutWithPendingStylesheets(Document document); | 302 boolean ignoreLayoutWithPendingStylesheets(Document document); |
| 303 | 303 |
| 304 // These functions are for testing NetInfo. You must call clearNetworkConnec
tionInfoOverride() at the end. | 304 // These functions are for testing NetInfo. You must call clearNetworkConnec
tionInfoOverride() at the end. |
| 305 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS
tring type, double downlinkMaxMbps); | 305 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS
tring type, double downlinkMaxMbps); |
| 306 void clearNetworkConnectionInfoOverride(); | 306 void clearNetworkConnectionInfoOverride(); |
| 307 | 307 |
| 308 // This function is for testing HitRegions on Canvas2D. | 308 // This function is for testing HitRegions on Canvas2D. |
| 309 unsigned long countHitRegions(CanvasRenderingContext2D context); | 309 unsigned long countHitRegions(CanvasRenderingContext2D context); |
| 310 | 310 |
| 311 boolean isInCanvasFontCache(Document document, DOMString fontString); | 311 boolean isInCanvasFontCache(Document document, DOMString fontString); |
| 312 unsigned long canvasFontCacheMaxFonts(); | 312 unsigned long canvasFontCacheMaxFonts(); |
| 313 | 313 |
| 314 DictionaryTest dictionaryTest(); | 314 DictionaryTest dictionaryTest(); |
| 315 UnionTypesTest unionTypesTest(); | 315 UnionTypesTest unionTypesTest(); |
| 316 CallbackFunctionTest callbackFunctionTest(); | 316 CallbackFunctionTest callbackFunctionTest(); |
| 317 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele
ments); | 317 [RaisesException] void setScrollChain(ScrollState scrollState, sequence<Elem
ent> elements); |
| 318 void forceBlinkGCWithoutV8GC(); | 318 void forceBlinkGCWithoutV8GC(); |
| 319 | 319 |
| 320 DOMString selectedHTMLForClipboard(); | 320 DOMString selectedHTMLForClipboard(); |
| 321 DOMString selectedTextForClipboard(); | 321 DOMString selectedTextForClipboard(); |
| 322 | 322 |
| 323 void setVisualViewportOffset(long x, long y); | 323 void setVisualViewportOffset(long x, long y); |
| 324 int visualViewportHeight(); | 324 int visualViewportHeight(); |
| 325 int visualViewportWidth(); | 325 int visualViewportWidth(); |
| 326 double visualViewportScrollX(); | 326 double visualViewportScrollX(); |
| 327 double visualViewportScrollY(); | 327 double visualViewportScrollY(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 354 DOMString getScrollAnimationState(Node node); | 354 DOMString getScrollAnimationState(Node node); |
| 355 | 355 |
| 356 DOMString getProgrammaticScrollAnimationState(Node node); | 356 DOMString getProgrammaticScrollAnimationState(Node node); |
| 357 | 357 |
| 358 ClientRect visualRect(Node node); | 358 ClientRect visualRect(Node node); |
| 359 | 359 |
| 360 OriginTrialsTest originTrialsTest(); | 360 OriginTrialsTest originTrialsTest(); |
| 361 | 361 |
| 362 void crash(); | 362 void crash(); |
| 363 }; | 363 }; |
| OLD | NEW |