Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.idl

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)
Patch Set: Rebased, Use enum instead of string Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 308 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
309 309
310 void setFocused(boolean focused); 310 void setFocused(boolean focused);
311 void setInitialFocus(boolean reverse); 311 void setInitialFocus(boolean reverse);
312 312
313 boolean ignoreLayoutWithPendingStylesheets(Document document); 313 boolean ignoreLayoutWithPendingStylesheets(Document document);
314 314
315 // These functions are for testing NetInfo. You must call clearNetworkConnec tionInfoOverride() at the end. 315 // These functions are for testing NetInfo. You must call clearNetworkConnec tionInfoOverride() at the end.
316 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS tring type, double downlinkMaxMbps); 316 [RaisesException] void setNetworkConnectionInfoOverride(boolean onLine, DOMS tring type, double downlinkMaxMbps);
317 [RaisesException] void setNetworkQualityInfoOverride(EffectiveConnectionType effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mb ps);
317 void clearNetworkConnectionInfoOverride(); 318 void clearNetworkConnectionInfoOverride();
318 319
319 // This function is for testing HitRegions on Canvas2D. 320 // This function is for testing HitRegions on Canvas2D.
320 unsigned long countHitRegions(CanvasRenderingContext2D context); 321 unsigned long countHitRegions(CanvasRenderingContext2D context);
321 322
322 boolean isInCanvasFontCache(Document document, DOMString fontString); 323 boolean isInCanvasFontCache(Document document, DOMString fontString);
323 unsigned long canvasFontCacheMaxFonts(); 324 unsigned long canvasFontCacheMaxFonts();
324 325
325 DictionaryTest dictionaryTest(); 326 DictionaryTest dictionaryTest();
326 RecordTest recordTest(); 327 RecordTest recordTest();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 DOMString getProgrammaticScrollAnimationState(Node node); 373 DOMString getProgrammaticScrollAnimationState(Node node);
373 374
374 ClientRect visualRect(Node node); 375 ClientRect visualRect(Node node);
375 376
376 OriginTrialsTest originTrialsTest(); 377 OriginTrialsTest originTrialsTest();
377 378
378 void crash(); 379 void crash();
379 380
380 void setIsLowEndDevice(boolean isLowEndDevice); 381 void setIsLowEndDevice(boolean isLowEndDevice);
381 }; 382 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698