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

Side by Side Diff: Source/core/testing/Internals.h

Issue 1308943005: [NetInfo] Add Blink support for connection.change, connection.downlinkMax, and wimax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « Source/core/page/NetworkStateNotifierTest.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 void setValueForUser(Element*, const String&); 338 void setValueForUser(Element*, const String&);
339 339
340 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 340 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
341 341
342 void setFocused(bool); 342 void setFocused(bool);
343 void setInitialFocus(bool); 343 void setInitialFocus(bool);
344 344
345 bool ignoreLayoutWithPendingStylesheets(Document*); 345 bool ignoreLayoutWithPendingStylesheets(Document*);
346 346
347 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or
348 // setNetworkStateMaxBandwidth.
347 void setNetworkStateNotifierTestOnly(bool); 349 void setNetworkStateNotifierTestOnly(bool);
348 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 350 void setNetworkConnectionInfo(const String&, double downlinkMaxMbps, Excepti onState&);
349 void setNetworkConnectionInfo(const String&, ExceptionState&);
350 351
351 ClientRect* boundsInViewportSpace(Element*); 352 ClientRect* boundsInViewportSpace(Element*);
352 353
353 unsigned countHitRegions(CanvasRenderingContext*); 354 unsigned countHitRegions(CanvasRenderingContext*);
354 355
355 bool isInCanvasFontCache(Document*, const String&); 356 bool isInCanvasFontCache(Document*, const String&);
356 unsigned canvasFontCacheMaxFonts(); 357 unsigned canvasFontCacheMaxFonts();
357 358
358 void setScrollChain(ScrollState*, const WillBeHeapVector<RefPtrWillBeMember< Element>>& elements, ExceptionState&); 359 void setScrollChain(ScrollState*, const WillBeHeapVector<RefPtrWillBeMember< Element>>& elements, ExceptionState&);
359 360
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 393
393 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 394 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
394 Member<InternalRuntimeFlags> m_runtimeFlags; 395 Member<InternalRuntimeFlags> m_runtimeFlags;
395 396
396 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 397 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
397 }; 398 };
398 399
399 } // namespace blink 400 } // namespace blink
400 401
401 #endif // Internals_h 402 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/page/NetworkStateNotifierTest.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698