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

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

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge origin/master 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class CanvasRenderingContext; 46 class CanvasRenderingContext;
47 class ClientRect; 47 class ClientRect;
48 class ClientRectList; 48 class ClientRectList;
49 class DOMArrayBuffer; 49 class DOMArrayBuffer;
50 class DOMPoint; 50 class DOMPoint;
51 class DictionaryTest; 51 class DictionaryTest;
52 class Document; 52 class Document;
53 class DocumentFragment;
54 class DocumentMarker; 53 class DocumentMarker;
55 class Element; 54 class Element;
56 class ExceptionState; 55 class ExceptionState;
57 class GCObservation; 56 class GCObservation;
58 class HTMLElement;
59 class HTMLMediaElement; 57 class HTMLMediaElement;
60 class InternalRuntimeFlags; 58 class InternalRuntimeFlags;
61 class InternalSettings; 59 class InternalSettings;
62 class Iterator; 60 class Iterator;
63 class LayerRectList; 61 class LayerRectList;
64 class LocalDOMWindow; 62 class LocalDOMWindow;
65 class LocalFrame; 63 class LocalFrame;
66 class Node; 64 class Node;
67 class Page; 65 class Page;
68 class PluginPlaceholderOptions;
69 class PrivateScriptTest; 66 class PrivateScriptTest;
70 class Range; 67 class Range;
71 class SerializedScriptValue; 68 class SerializedScriptValue;
72 class ShadowRoot; 69 class ShadowRoot;
73 class TypeConversions; 70 class TypeConversions;
74 class UnionTypesTest; 71 class UnionTypesTest;
75 template <typename NodeType> class StaticNodeTypeList; 72 template <typename NodeType> class StaticNodeTypeList;
76 typedef StaticNodeTypeList<Node> StaticNodeList; 73 typedef StaticNodeTypeList<Node> StaticNodeList;
77 74
78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { 75 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 339 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
343 void setNetworkConnectionInfo(const String&, ExceptionState&); 340 void setNetworkConnectionInfo(const String&, ExceptionState&);
344 341
345 ClientRect* boundsInViewportSpace(Element*); 342 ClientRect* boundsInViewportSpace(Element*);
346 343
347 unsigned countHitRegions(CanvasRenderingContext*); 344 unsigned countHitRegions(CanvasRenderingContext*);
348 345
349 bool isInCanvasFontCache(Document*, const String&); 346 bool isInCanvasFontCache(Document*, const String&);
350 unsigned canvasFontCacheMaxFonts(); 347 unsigned canvasFontCacheMaxFonts();
351 348
352 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu mentFragment>, ExceptionState&);
353 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti ons&, ExceptionState&);
354
355 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop. 349 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop.
356 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time. 350 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time.
357 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC. 351 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC.
358 void forceBlinkGCWithoutV8GC(); 352 void forceBlinkGCWithoutV8GC();
359 353
360 String selectedHTMLForClipboard(); 354 String selectedHTMLForClipboard();
361 String selectedTextForClipboard(); 355 String selectedTextForClipboard();
362 356
363 void setVisualViewportOffset(int x, int y); 357 void setVisualViewportOffset(int x, int y);
364 358
365 // Return true if the given use counter exists for the given document. 359 // Return true if the given use counter exists for the given document.
366 // |useCounterId| must be one of the values from the UseCounter::Feature enu m. 360 // |useCounterId| must be one of the values from the UseCounter::Feature enu m.
367 bool isUseCounted(Document*, int useCounterId); 361 bool isUseCounted(Document*, int useCounterId);
368 362
369 String unscopeableAttribute(); 363 String unscopeableAttribute();
370 String unscopeableMethod(); 364 String unscopeableMethod();
371 365
372 ClientRectList* outlineRects(Element*); 366 ClientRectList* outlineRects(Element*);
373 367
374 void setCapsLockState(bool enabled); 368 void setCapsLockState(bool enabled);
375 369
376 bool setScrollbarVisibilityInScrollableArea(Node*, bool visible); 370 bool setScrollbarVisibilityInScrollableArea(Node*, bool visible);
377 371
378 void forceRestrictIFramePermissions(); 372 void forceRestrictIFramePermissions();
379
380 private: 373 private:
381 explicit Internals(ScriptState*); 374 explicit Internals(ScriptState*);
382 Document* contextDocument() const; 375 Document* contextDocument() const;
383 LocalFrame* frame() const; 376 LocalFrame* frame() const;
384 Vector<String> iconURLs(Document*, int iconTypesMask) const; 377 Vector<String> iconURLs(Document*, int iconTypesMask) const;
385 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ; 378 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ;
386 379
387 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 380 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
388 Member<InternalRuntimeFlags> m_runtimeFlags; 381 Member<InternalRuntimeFlags> m_runtimeFlags;
389 382
390 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 383 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
391 }; 384 };
392 385
393 } // namespace blink 386 } // namespace blink
394 387
395 #endif // Internals_h 388 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698