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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 void setValueForUser(Element element, DOMString value); | 292 void setValueForUser(Element element, DOMString value); |
293 | 293 |
294 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); | 294 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe
ngth); |
295 | 295 |
296 void setFocused(boolean focused); | 296 void setFocused(boolean focused); |
297 void setInitialFocus(boolean reverse); | 297 void setInitialFocus(boolean reverse); |
298 | 298 |
299 boolean ignoreLayoutWithPendingStylesheets(Document document); | 299 boolean ignoreLayoutWithPendingStylesheets(Document document); |
300 | 300 |
301 // These functions are for testing NetInfo. You must call setNetworkStateNot
ifierTestOnly(true) | 301 // These functions are for testing NetInfo. You must call clearNetworkConnec
tionInfoOverride() at the end. |
302 // before calling setNetworkConnectionInfo. | 302 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS
tring type, double downlinkMaxMbps); |
303 void setNetworkStateNotifierTestOnly(boolean testOnly); | 303 void clearNetworkConnectionInfoOverride(); |
304 [RaisesException] void setNetworkConnectionInfo(DOMString type, double downl
inkMaxMbps); | |
305 | 304 |
306 // This function is for testing HitRegions on Canvas2D. | 305 // This function is for testing HitRegions on Canvas2D. |
307 unsigned long countHitRegions(CanvasRenderingContext2D context); | 306 unsigned long countHitRegions(CanvasRenderingContext2D context); |
308 | 307 |
309 boolean isInCanvasFontCache(Document document, DOMString fontString); | 308 boolean isInCanvasFontCache(Document document, DOMString fontString); |
310 unsigned long canvasFontCacheMaxFonts(); | 309 unsigned long canvasFontCacheMaxFonts(); |
311 | 310 |
312 DictionaryTest dictionaryTest(); | 311 DictionaryTest dictionaryTest(); |
313 UnionTypesTest unionTypesTest(); | 312 UnionTypesTest unionTypesTest(); |
314 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele
ments); | 313 [RaisesException] void setScrollChain(ScrollState scrollState, Element[] ele
ments); |
(...skipping 30 matching lines...) Expand all Loading... |
345 | 344 |
346 void setMediaElementNetworkState(HTMLMediaElement element, long state); | 345 void setMediaElementNetworkState(HTMLMediaElement element, long state); |
347 | 346 |
348 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. | 347 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. |
349 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); | 348 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); |
350 | 349 |
351 DOMString getScrollAnimationState(Node node); | 350 DOMString getScrollAnimationState(Node node); |
352 | 351 |
353 DOMString getProgrammaticScrollAnimationState(Node node); | 352 DOMString getProgrammaticScrollAnimationState(Node node); |
354 }; | 353 }; |
OLD | NEW |