| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 DOMString[] allIconURLs(Document document); | 198 DOMString[] allIconURLs(Document document); |
| 199 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); | 199 long numberOfPages(optional double pageWidthInPixels, optional double pageHe
ightInPixels); |
| 200 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); | 200 [RaisesException] DOMString pageProperty(DOMString propertyName, long pageNu
mber); |
| 201 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); | 201 [RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long
width, long height, long marginTop, long marginRight, long marginBottom, long ma
rginLeft); |
| 202 | 202 |
| 203 [RaisesException] void setDeviceScaleFactor(float scaleFactor); | 203 [RaisesException] void setDeviceScaleFactor(float scaleFactor); |
| 204 | 204 |
| 205 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d
ocument, boolean isVisible); | 205 [RaisesException, TypeChecking=Interface] void setIsCursorVisible(Document d
ocument, boolean isVisible); |
| 206 | 206 |
| 207 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); | 207 void mediaPlayerRequestFullscreen(HTMLMediaElement mediaElement); |
| 208 double effectiveMediaVolume(HTMLMediaElement mediaElement); |
| 208 | 209 |
| 209 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); | 210 void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme); |
| 210 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); | 211 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString sch
eme); |
| 211 | 212 |
| 212 TypeConversions typeConversions(); | 213 TypeConversions typeConversions(); |
| 213 | 214 |
| 214 // This is enabled only in Debug builds. | 215 // This is enabled only in Debug builds. |
| 215 // This is because we want to avoid putting the byte stream of testing priva
te scripts | 216 // This is because we want to avoid putting the byte stream of testing priva
te scripts |
| 216 // into the binary of Release builds. | 217 // into the binary of Release builds. |
| 217 PrivateScriptTest privateScriptTest(); | 218 PrivateScriptTest privateScriptTest(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) | 278 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) |
| 278 // before calling setNetworkConnectionInfo. | 279 // before calling setNetworkConnectionInfo. |
| 279 void setNetworkStateNotifierTestOnly(boolean testOnly); | 280 void setNetworkStateNotifierTestOnly(boolean testOnly); |
| 280 [RaisesException] void setNetworkConnectionInfo(DOMString type); | 281 [RaisesException] void setNetworkConnectionInfo(DOMString type); |
| 281 | 282 |
| 282 // This function is for testing HitRegions on Canvas2D. | 283 // This function is for testing HitRegions on Canvas2D. |
| 283 unsigned long countHitRegions(CanvasRenderingContext2D context); | 284 unsigned long countHitRegions(CanvasRenderingContext2D context); |
| 284 | 285 |
| 285 DOMString serializeNavigationMarkup(Document document); | 286 DOMString serializeNavigationMarkup(Document document); |
| 286 }; | 287 }; |
| OLD | NEW |