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