Chromium Code Reviews| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 | 296 |
| 297 void setFocused(boolean focused); | 297 void setFocused(boolean focused); |
| 298 void setInitialFocus(boolean reverse); | 298 void setInitialFocus(boolean reverse); |
| 299 | 299 |
| 300 boolean ignoreLayoutWithPendingStylesheets(Document document); | 300 boolean ignoreLayoutWithPendingStylesheets(Document document); |
| 301 | 301 |
| 302 // These functions are for testing NetInfo. You must call clearNetworkConnec tionInfoOverride() at the end. | 302 // These functions are for testing NetInfo. You must call clearNetworkConnec tionInfoOverride() at the end. |
| 303 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS tring type, double downlinkMaxMbps); | 303 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS tring type, double downlinkMaxMbps); |
| 304 void clearNetworkConnectionInfoOverride(); | 304 void clearNetworkConnectionInfoOverride(); |
| 305 | 305 |
| 306 // These functions are for testing the effective connection type. You must c all clearEffectiveConnectionTypeOverride at the end. | |
| 307 [RaisesException] void setEffectiveConnectionTypeOverride(DOMString type); | |
|
Nate Chapin
2016/09/16 21:56:41
These APIs want to override logic that doesn't res
jkarlin
2016/09/19 14:38:25
With the testRunner API, I'd have to configure the
| |
| 308 void clearEffectiveConnectionTypeOverride(); | |
| 309 | |
| 306 // This function is for testing HitRegions on Canvas2D. | 310 // This function is for testing HitRegions on Canvas2D. |
| 307 unsigned long countHitRegions(CanvasRenderingContext2D context); | 311 unsigned long countHitRegions(CanvasRenderingContext2D context); |
| 308 | 312 |
| 309 boolean isInCanvasFontCache(Document document, DOMString fontString); | 313 boolean isInCanvasFontCache(Document document, DOMString fontString); |
| 310 unsigned long canvasFontCacheMaxFonts(); | 314 unsigned long canvasFontCacheMaxFonts(); |
| 311 | 315 |
| 312 DictionaryTest dictionaryTest(); | 316 DictionaryTest dictionaryTest(); |
| 313 UnionTypesTest unionTypesTest(); | 317 UnionTypesTest unionTypesTest(); |
| 314 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele ments); | 318 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele ments); |
| 315 void forceBlinkGCWithoutV8GC(); | 319 void forceBlinkGCWithoutV8GC(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 349 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); | 353 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); |
| 350 | 354 |
| 351 DOMString getScrollAnimationState(Node node); | 355 DOMString getScrollAnimationState(Node node); |
| 352 | 356 |
| 353 DOMString getProgrammaticScrollAnimationState(Node node); | 357 DOMString getProgrammaticScrollAnimationState(Node node); |
| 354 | 358 |
| 355 ClientRect visualRect(Node node); | 359 ClientRect visualRect(Node node); |
| 356 | 360 |
| 357 void crash(); | 361 void crash(); |
| 358 }; | 362 }; |
| OLD | NEW |