| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 [RaisesException] DOMString shadowPseudoId(Element element); | 52 [RaisesException] DOMString shadowPseudoId(Element element); |
| 53 [RaisesException] void setShadowPseudoId(Element element, DOMString id); | 53 [RaisesException] void setShadowPseudoId(Element element, DOMString id); |
| 54 [RaisesException] Element createContentElement(); | 54 [RaisesException] Element createContentElement(); |
| 55 [RaisesException] boolean isValidContentSelect(Element contentElement); | 55 [RaisesException] boolean isValidContentSelect(Element contentElement); |
| 56 [RaisesException] Node treeScopeRootNode(Node node); | 56 [RaisesException] Node treeScopeRootNode(Node node); |
| 57 [RaisesException] Node parentTreeScope(Node node); | 57 [RaisesException] Node parentTreeScope(Node node); |
| 58 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i
d); | 58 [RaisesException] boolean hasSelectorForIdInShadow(Element host, DOMString i
d); |
| 59 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin
g className); | 59 [RaisesException] boolean hasSelectorForClassInShadow(Element host, DOMStrin
g className); |
| 60 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS
tring attributeName); | 60 [RaisesException] boolean hasSelectorForAttributeInShadow(Element host, DOMS
tring attributeName); |
| 61 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO
MString pseudoClass); | 61 [RaisesException] boolean hasSelectorForPseudoClassInShadow(Element host, DO
MString pseudoClass); |
| 62 [RaisesException] unsigned short compareTreeScopePosition(Node treeScope1, N
ode treeScope2); |
| 62 | 63 |
| 63 // CSS Animation and Transition testing. | 64 // CSS Animation and Transition testing. |
| 64 unsigned long numberOfActiveAnimations(); | 65 unsigned long numberOfActiveAnimations(); |
| 65 [RaisesException] void suspendAnimations(Document document); | 66 [RaisesException] void suspendAnimations(Document document); |
| 66 [RaisesException] void resumeAnimations(Document document); | 67 [RaisesException] void resumeAnimations(Document document); |
| 67 [RaisesException] void pauseAnimations(double pauseTime); | 68 [RaisesException] void pauseAnimations(double pauseTime); |
| 68 | 69 |
| 69 [RaisesException] Node nextSiblingByWalker(Node node); | 70 [RaisesException] Node nextSiblingByWalker(Node node); |
| 70 [RaisesException] Node firstChildByWalker(Node node); | 71 [RaisesException] Node firstChildByWalker(Node node); |
| 71 [RaisesException] Node lastChildByWalker(Node node); | 72 [RaisesException] Node lastChildByWalker(Node node); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Flags for layerTreeAsText. | 163 // Flags for layerTreeAsText. |
| 163 const unsigned short LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1; | 164 const unsigned short LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1; |
| 164 const unsigned short LAYER_TREE_INCLUDES_TILE_CACHES = 2; | 165 const unsigned short LAYER_TREE_INCLUDES_TILE_CACHES = 2; |
| 165 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 4; | 166 const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 4; |
| 166 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 8; | 167 const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 8; |
| 167 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); | 168 [RaisesException] DOMString layerTreeAsText(Document document, optional unsi
gned short flags); |
| 168 | 169 |
| 169 [RaisesException] NodeList paintOrderListBeforePromote(Element element); | 170 [RaisesException] NodeList paintOrderListBeforePromote(Element element); |
| 170 [RaisesException] NodeList paintOrderListAfterPromote(Element element); | 171 [RaisesException] NodeList paintOrderListAfterPromote(Element element); |
| 171 | 172 |
| 173 // The values of these constants must be kept in sync with those in RenderLa
yer. |
| 174 const unsigned short DoNotForceCompositedScrolling = 0; |
| 175 const unsigned short CompositedScrollingAlwaysOn = 1; |
| 176 const unsigned short CompositedScrollingAlwaysOff = 2; |
| 177 [RaisesException] void setNeedsCompositedScrolling(Element element, unsigned
short value); |
| 178 |
| 172 [RaisesException] DOMString scrollingStateTreeAsText(Document document); | 179 [RaisesException] DOMString scrollingStateTreeAsText(Document document); |
| 173 [RaisesException] DOMString mainThreadScrollingReasons(Document document); | 180 [RaisesException] DOMString mainThreadScrollingReasons(Document document); |
| 174 [RaisesException] ClientRectList nonFastScrollableRects(Document document); | 181 [RaisesException] ClientRectList nonFastScrollableRects(Document document); |
| 175 | 182 |
| 176 [RaisesException] DOMString repaintRectsAsText(Document document); | 183 [RaisesException] DOMString repaintRectsAsText(Document document); |
| 177 | 184 |
| 178 [RaisesException] void garbageCollectDocumentResources(Document document); | 185 [RaisesException] void garbageCollectDocumentResources(Document document); |
| 179 | 186 |
| 180 void allowRoundingHacks(); | 187 void allowRoundingHacks(); |
| 181 | 188 |
| 182 void insertAuthorCSS(Document document, DOMString css); | 189 void insertAuthorCSS(Document document, DOMString css); |
| 183 void insertUserCSS(Document document, DOMString css); | 190 void insertUserCSS(Document document, DOMString css); |
| 184 | 191 |
| 185 #if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS | 192 #if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS |
| 186 [RaisesException] void setBatteryStatus(Document document, DOMString eventTy
pe, boolean charging, double chargingTime, double dischargingTime, double level)
; | 193 [RaisesException] void setBatteryStatus(Document document, DOMString eventTy
pe, boolean charging, double chargingTime, double dischargingTime, double level)
; |
| 187 #endif | 194 #endif |
| 188 | 195 |
| 189 unsigned long numberOfLiveNodes(); | 196 unsigned long numberOfLiveNodes(); |
| 190 unsigned long numberOfLiveDocuments(); | 197 unsigned long numberOfLiveDocuments(); |
| 191 sequence<DOMString> consoleMessageArgumentCounts(Document document); | 198 sequence<DOMString> consoleMessageArgumentCounts(Document document); |
| 192 DOMWindow openDummyInspectorFrontend(DOMString url); | 199 DOMWindow openDummyInspectorFrontend(DOMString url); |
| 193 void closeDummyInspectorFrontend(); | 200 void closeDummyInspectorFrontend(); |
| 194 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); | 201 [RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResou
rcesContentSize, long maximumSingleResourceContentSize); |
| 195 [RaisesException] void setJavaScriptProfilingEnabled(boolean creates); | |
| 196 | 202 |
| 197 DOMString counterValue(Element element); | 203 DOMString counterValue(Element element); |
| 198 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); | 204 long pageNumber(Element element, optional float pageWidth, optional float pa
geHeight); |
| 199 DOMString[] shortcutIconURLs(Document document); | 205 DOMString[] shortcutIconURLs(Document document); |
| 200 DOMString[] allIconURLs(Document document); | 206 DOMString[] allIconURLs(Document document); |
| 201 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 207 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
| 202 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 208 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
| 203 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 209 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
| 204 | 210 |
| 205 [RaisesException] void setDeviceScaleFactor(float scaleFactor); | 211 [RaisesException] void setDeviceScaleFactor(float scaleFactor); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 void forceReload(boolean endToEnd); | 244 void forceReload(boolean endToEnd); |
| 239 | 245 |
| 240 [Conditional=ENCRYPTED_MEDIA_V2] void initializeMockCDM(); | 246 [Conditional=ENCRYPTED_MEDIA_V2] void initializeMockCDM(); |
| 241 | 247 |
| 242 void enableMockSpeechSynthesizer(); | 248 void enableMockSpeechSynthesizer(); |
| 243 | 249 |
| 244 [RaisesException] DOMString getImageSourceURL(Element element); | 250 [RaisesException] DOMString getImageSourceURL(Element element); |
| 245 | 251 |
| 246 boolean isSelectPopupVisible(Node node); | 252 boolean isSelectPopupVisible(Node node); |
| 247 }; | 253 }; |
| OLD | NEW |