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

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: Add units 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
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 void setValueForUser(Element*, const String&); 333 void setValueForUser(Element*, const String&);
334 334
335 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 335 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
336 336
337 void setFocused(bool); 337 void setFocused(bool);
338 void setInitialFocus(bool); 338 void setInitialFocus(bool);
339 339
340 bool ignoreLayoutWithPendingStylesheets(Document*); 340 bool ignoreLayoutWithPendingStylesheets(Document*);
341 341
342 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or
343 // setNetworkStateMaxBandwidth.
342 void setNetworkStateNotifierTestOnly(bool); 344 void setNetworkStateNotifierTestOnly(bool);
343 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 345 void setNetworkConnectionInfo(const String&, double downlinkMaxMbps, Excepti onState&);
344 void setNetworkConnectionInfo(const String&, ExceptionState&);
345 346
346 ClientRect* boundsInViewportSpace(Element*); 347 ClientRect* boundsInViewportSpace(Element*);
347 348
348 unsigned countHitRegions(CanvasRenderingContext*); 349 unsigned countHitRegions(CanvasRenderingContext*);
349 350
350 bool isInCanvasFontCache(Document*, const String&); 351 bool isInCanvasFontCache(Document*, const String&);
351 unsigned canvasFontCacheMaxFonts(); 352 unsigned canvasFontCacheMaxFonts();
352 353
353 void setScrollChain(ScrollState*, const WillBeHeapVector<RefPtrWillBeMember< Element>>& elements, ExceptionState&); 354 void setScrollChain(ScrollState*, const WillBeHeapVector<RefPtrWillBeMember< Element>>& elements, ExceptionState&);
354 355
(...skipping 30 matching lines...) Expand all
385 386
386 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 387 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
387 Member<InternalRuntimeFlags> m_runtimeFlags; 388 Member<InternalRuntimeFlags> m_runtimeFlags;
388 389
389 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 390 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
390 }; 391 };
391 392
392 } // namespace blink 393 } // namespace blink
393 394
394 #endif // Internals_h 395 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698