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

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: Update test expectations 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 void setValueForUser(Element*, const String&); 331 void setValueForUser(Element*, const String&);
332 332
333 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 333 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
334 334
335 void setFocused(bool); 335 void setFocused(bool);
336 void setInitialFocus(bool); 336 void setInitialFocus(bool);
337 337
338 bool ignoreLayoutWithPendingStylesheets(Document*); 338 bool ignoreLayoutWithPendingStylesheets(Document*);
339 339
340 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or
341 // setNetworkStateMaxBandwidth.
340 void setNetworkStateNotifierTestOnly(bool); 342 void setNetworkStateNotifierTestOnly(bool);
341 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 343 void setNetworkConnectionInfo(const String&, double downlinkMax, ExceptionSt ate&);
342 void setNetworkConnectionInfo(const String&, ExceptionState&);
343 344
344 ClientRect* boundsInViewportSpace(Element*); 345 ClientRect* boundsInViewportSpace(Element*);
345 346
346 unsigned countHitRegions(CanvasRenderingContext*); 347 unsigned countHitRegions(CanvasRenderingContext*);
347 348
348 bool isInCanvasFontCache(Document*, const String&); 349 bool isInCanvasFontCache(Document*, const String&);
349 unsigned canvasFontCacheMaxFonts(); 350 unsigned canvasFontCacheMaxFonts();
350 351
351 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu mentFragment>, ExceptionState&); 352 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu mentFragment>, ExceptionState&);
352 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti ons&, ExceptionState&); 353 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti ons&, ExceptionState&);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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