| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void webkitDidExitFullScreenForElement(Document document, Element element); | 211 void webkitDidExitFullScreenForElement(Document document, Element element); |
| 212 | 212 |
| 213 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); | 213 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); |
| 214 | 214 |
| 215 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 215 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
| 216 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 216 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
| 217 | 217 |
| 218 MallocStatistics mallocStatistics(); | 218 MallocStatistics mallocStatistics(); |
| 219 TypeConversions typeConversions(); | 219 TypeConversions typeConversions(); |
| 220 | 220 |
| 221 // This is enabled only in Debug builds. |
| 222 // This is because we want to avoid putting the byte stream of testing priva
te scripts |
| 223 // into the binary of Release builds. |
| 224 PrivateScriptTest privateScriptTest(); |
| 225 |
| 221 DOMString[] getReferencedFilePaths(); | 226 DOMString[] getReferencedFilePaths(); |
| 222 | 227 |
| 223 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: | 228 // These functions both reset the tracked repaint rects. They are inteded to
be used in the following order: |
| 224 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. | 229 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. |
| 225 [RaisesException] void startTrackingRepaints(Document document); | 230 [RaisesException] void startTrackingRepaints(Document document); |
| 226 [RaisesException] void stopTrackingRepaints(Document document); | 231 [RaisesException] void stopTrackingRepaints(Document document); |
| 227 | 232 |
| 228 // |node| should be Document, HTMLIFrameElement, or unspecified. | 233 // |node| should be Document, HTMLIFrameElement, or unspecified. |
| 229 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 234 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
| 230 // specified without security checks. Unspecified means this document. | 235 // specified without security checks. Unspecified means this document. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 279 |
| 275 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume
nt); | 280 [RaisesException] boolean ignoreLayoutWithPendingStylesheets(Document docume
nt); |
| 276 | 281 |
| 277 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) | 282 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) |
| 278 // before calling setNetworkConnectionInfo. | 283 // before calling setNetworkConnectionInfo. |
| 279 void setNetworkStateNotifierTestOnly(boolean testOnly); | 284 void setNetworkStateNotifierTestOnly(boolean testOnly); |
| 280 [RaisesException] void setNetworkConnectionInfo(DOMString type); | 285 [RaisesException] void setNetworkConnectionInfo(DOMString type); |
| 281 | 286 |
| 282 // This function is for testing HitRegions on Canvas2D. | 287 // This function is for testing HitRegions on Canvas2D. |
| 283 unsigned long countHitRegions(CanvasRenderingContext2D context); | 288 unsigned long countHitRegions(CanvasRenderingContext2D context); |
| 284 | |
| 285 // FIXME: Move these tests to a separate IDL file. | |
| 286 [ImplementedInPrivateScript] void doNothing(); | |
| 287 [ImplementedInPrivateScript] short return123(); | |
| 288 [ImplementedInPrivateScript] short echoInteger(short value); | |
| 289 [ImplementedInPrivateScript] DOMString echoString(DOMString value); | |
| 290 [ImplementedInPrivateScript] Node echoNode(Node value); | |
| 291 [ImplementedInPrivateScript] short addInteger(short value1, short value2); | |
| 292 [ImplementedInPrivateScript] DOMString addString(DOMString value1, DOMString
value2); | |
| 293 [ImplementedInPrivateScript] void setIntegerToPrototype(short value); | |
| 294 [ImplementedInPrivateScript] short getIntegerFromPrototype(); | |
| 295 [ImplementedInPrivateScript] void setIntegerToDocument(Document document, sh
ort value); | |
| 296 [ImplementedInPrivateScript] short getIntegerFromDocument(Document document)
; | |
| 297 [ImplementedInPrivateScript] Node createElement(Document document); | |
| 298 [ImplementedInPrivateScript] void appendChild(Node node1, Node node2); | |
| 299 [ImplementedInPrivateScript] Node firstChild(Node node); | |
| 300 [ImplementedInPrivateScript] Node nextSibling(Node node); | |
| 301 [ImplementedInPrivateScript] DOMString innerHTML(Node node); | |
| 302 [ImplementedInPrivateScript] void setInnerHTML(Node node, DOMString string); | |
| 303 [ImplementedInPrivateScript] void addClickListener(Node node); | |
| 304 [ImplementedInPrivateScript] void clickNode(Document document, Node node); | |
| 305 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
; | |
| 306 [ImplementedInPrivateScript] attribute short shortAttribute; | |
| 307 [ImplementedInPrivateScript] attribute DOMString stringAttribute; | |
| 308 [ImplementedInPrivateScript] attribute Node nodeAttribute; | |
| 309 }; | 289 }; |
| OLD | NEW |