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

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

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class SerializedScriptValue; 68 class SerializedScriptValue;
69 class ShadowRoot; 69 class ShadowRoot;
70 class TypeConversions; 70 class TypeConversions;
71 class UnionTypesTest; 71 class UnionTypesTest;
72 class ScrollState; 72 class ScrollState;
73 template <typename NodeType> class StaticNodeTypeList; 73 template <typename NodeType> class StaticNodeTypeList;
74 typedef StaticNodeTypeList<Node> StaticNodeList; 74 typedef StaticNodeTypeList<Node> StaticNodeList;
75 75
76 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { 76 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> {
77 DEFINE_WRAPPERTYPEINFO(); 77 DEFINE_WRAPPERTYPEINFO();
78 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Internals); 78 USING_GARBAGE_COLLECTED_MIXIN(Internals);
79 public: 79 public:
80 static Internals* create(ScriptState*); 80 static Internals* create(ScriptState*);
81 virtual ~Internals(); 81 virtual ~Internals();
82 82
83 static void resetToConsistentState(Page*); 83 static void resetToConsistentState(Page*);
84 84
85 String elementLayoutTreeAsText(Element*, ExceptionState&); 85 String elementLayoutTreeAsText(Element*, ExceptionState&);
86 86
87 String address(Node*); 87 String address(Node*);
88 88
89 GCObservation* observeGC(ScriptValue); 89 GCObservation* observeGC(ScriptValue);
90 90
91 bool isPreloaded(const String& url); 91 bool isPreloaded(const String& url);
92 bool isPreloadedBy(const String& url, Document*); 92 bool isPreloadedBy(const String& url, Document*);
93 bool isLoadingFromMemoryCache(const String& url); 93 bool isLoadingFromMemoryCache(const String& url);
94 94
95 bool isSharingStyle(Element*, Element*) const; 95 bool isSharingStyle(Element*, Element*) const;
96 96
97 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> computedStyleIncludingVisitedInf o(Node*) const; 97 RawPtr<CSSStyleDeclaration> computedStyleIncludingVisitedInfo(Node*) const;
98 98
99 PassRefPtrWillBeRawPtr<ShadowRoot> createUserAgentShadowRoot(Element* host); 99 RawPtr<ShadowRoot> createUserAgentShadowRoot(Element* host);
100 100
101 ShadowRoot* shadowRoot(Element* host); 101 ShadowRoot* shadowRoot(Element* host);
102 ShadowRoot* youngestShadowRoot(Element* host); 102 ShadowRoot* youngestShadowRoot(Element* host);
103 ShadowRoot* oldestShadowRoot(Element* host); 103 ShadowRoot* oldestShadowRoot(Element* host);
104 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&); 104 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&);
105 String shadowRootType(const Node*, ExceptionState&) const; 105 String shadowRootType(const Node*, ExceptionState&) const;
106 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const; 106 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const;
107 bool hasContentElement(const Node*, ExceptionState&) const; 107 bool hasContentElement(const Node*, ExceptionState&) const;
108 size_t countElementShadow(const Node*, ExceptionState&) const; 108 size_t countElementShadow(const Node*, ExceptionState&) const;
109 const AtomicString& shadowPseudoId(Element*); 109 const AtomicString& shadowPseudoId(Element*);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 Vector<String> formControlStateOfHistoryItem(ExceptionState&); 152 Vector<String> formControlStateOfHistoryItem(ExceptionState&);
153 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState& ); 153 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState& );
154 DOMWindow* pagePopupWindow() const; 154 DOMWindow* pagePopupWindow() const;
155 155
156 ClientRect* absoluteCaretBounds(ExceptionState&); 156 ClientRect* absoluteCaretBounds(ExceptionState&);
157 157
158 ClientRect* boundingBox(Element*); 158 ClientRect* boundingBox(Element*);
159 159
160 unsigned markerCountForNode(Node*, const String&, ExceptionState&); 160 unsigned markerCountForNode(Node*, const String&, ExceptionState&);
161 unsigned activeMarkerCountForNode(Node*); 161 unsigned activeMarkerCountForNode(Node*);
162 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker Type, unsigned index, ExceptionState&); 162 RawPtr<Range> markerRangeForNode(Node*, const String& markerType, unsigned i ndex, ExceptionState&);
163 String markerDescriptionForNode(Node*, const String& markerType, unsigned in dex, ExceptionState&); 163 String markerDescriptionForNode(Node*, const String& markerType, unsigned in dex, ExceptionState&);
164 void addTextMatchMarker(const Range*, bool isActive); 164 void addTextMatchMarker(const Range*, bool isActive);
165 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; 165 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ;
166 void setMarkedTextMatchesAreHighlighted(Document*, bool); 166 void setMarkedTextMatchesAreHighlighted(Document*, bool);
167 167
168 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); 168 void setFrameViewPosition(Document*, long x, long y, ExceptionState&);
169 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&); 169 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&);
170 170
171 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); 171 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&);
172 String suggestedValue(Element*, ExceptionState&); 172 String suggestedValue(Element*, ExceptionState&);
173 void setSuggestedValue(Element*, const String&, ExceptionState&); 173 void setSuggestedValue(Element*, const String&, ExceptionState&);
174 void setEditingValue(Element* inputElement, const String&, ExceptionState&); 174 void setEditingValue(Element* inputElement, const String&, ExceptionState&);
175 void setAutofilled(Element*, bool enabled, ExceptionState&); 175 void setAutofilled(Element*, bool enabled, ExceptionState&);
176 176
177 PassRefPtrWillBeRawPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength); 177 RawPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength);
178 unsigned locationFromRange(Element* scope, const Range*); 178 unsigned locationFromRange(Element* scope, const Range*);
179 unsigned lengthFromRange(Element* scope, const Range*); 179 unsigned lengthFromRange(Element* scope, const Range*);
180 String rangeAsText(const Range*); 180 String rangeAsText(const Range*);
181 181
182 DOMPoint* touchPositionAdjustedToBestClickableNode(long x, long y, long widt h, long height, Document*, ExceptionState&); 182 DOMPoint* touchPositionAdjustedToBestClickableNode(long x, long y, long widt h, long height, Document*, ExceptionState&);
183 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&); 183 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&);
184 DOMPoint* touchPositionAdjustedToBestContextMenuNode(long x, long y, long wi dth, long height, Document*, ExceptionState&); 184 DOMPoint* touchPositionAdjustedToBestContextMenuNode(long x, long y, long wi dth, long height, Document*, ExceptionState&);
185 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon g height, Document*, ExceptionState&); 185 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon g height, Document*, ExceptionState&);
186 ClientRect* bestZoomableAreaForTouchPoint(long x, long y, long width, long h eight, Document*, ExceptionState&); 186 ClientRect* bestZoomableAreaForTouchPoint(long x, long y, long width, long h eight, Document*, ExceptionState&);
187 187
(...skipping 10 matching lines...) Expand all
198 LayerRectList* touchEventTargetLayerRects(Document*, ExceptionState&); 198 LayerRectList* touchEventTargetLayerRects(Document*, ExceptionState&);
199 199
200 bool executeCommand(Document*, const String& name, const String& value, Exce ptionState&); 200 bool executeCommand(Document*, const String& name, const String& value, Exce ptionState&);
201 201
202 AtomicString htmlNamespace(); 202 AtomicString htmlNamespace();
203 Vector<AtomicString> htmlTags(); 203 Vector<AtomicString> htmlTags();
204 AtomicString svgNamespace(); 204 AtomicString svgNamespace();
205 Vector<AtomicString> svgTags(); 205 Vector<AtomicString> svgTags();
206 206
207 // This is used to test rect based hit testing like what's done on touch scr eens. 207 // This is used to test rect based hit testing like what's done on touch scr eens.
208 PassRefPtrWillBeRawPtr<StaticNodeList> nodesFromRect(Document*, int x, int y , unsigned topPadding, unsigned rightPadding, 208 RawPtr<StaticNodeList> nodesFromRect(Document*, int x, int y, unsigned topPa dding, unsigned rightPadding,
209 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowChildFrameContent, ExceptionState&) const; 209 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowChildFrameContent, ExceptionState&) const;
210 210
211 bool hasSpellingMarker(Document*, int from, int length); 211 bool hasSpellingMarker(Document*, int from, int length);
212 bool hasGrammarMarker(Document*, int from, int length); 212 bool hasGrammarMarker(Document*, int from, int length);
213 void setContinuousSpellCheckingEnabled(bool); 213 void setContinuousSpellCheckingEnabled(bool);
214 214
215 bool isOverwriteModeEnabled(Document*); 215 bool isOverwriteModeEnabled(Document*);
216 void toggleOverwriteModeEnabled(Document*); 216 void toggleOverwriteModeEnabled(Document*);
217 217
218 unsigned numberOfScrollableAreas(Document*); 218 unsigned numberOfScrollableAreas(Document*);
(...skipping 18 matching lines...) Expand all
237 String scrollingStateTreeAsText(Document*) const; 237 String scrollingStateTreeAsText(Document*) const;
238 String mainThreadScrollingReasons(Document*, ExceptionState&) const; 238 String mainThreadScrollingReasons(Document*, ExceptionState&) const;
239 ClientRectList* nonFastScrollableRects(Document*, ExceptionState&) const; 239 ClientRectList* nonFastScrollableRects(Document*, ExceptionState&) const;
240 240
241 void evictAllResources() const; 241 void evictAllResources() const;
242 242
243 unsigned numberOfLiveNodes() const; 243 unsigned numberOfLiveNodes() const;
244 unsigned numberOfLiveDocuments() const; 244 unsigned numberOfLiveDocuments() const;
245 String dumpRefCountedInstanceCounts() const; 245 String dumpRefCountedInstanceCounts() const;
246 Vector<String> consoleMessageArgumentCounts(Document*) const; 246 Vector<String> consoleMessageArgumentCounts(Document*) const;
247 PassRefPtrWillBeRawPtr<LocalDOMWindow> openDummyInspectorFrontend(const Stri ng& url); 247 RawPtr<LocalDOMWindow> openDummyInspectorFrontend(const String& url);
248 void closeDummyInspectorFrontend(); 248 void closeDummyInspectorFrontend();
249 Vector<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, u nsigned long maxDeadBytes, unsigned long totalBytes); 249 Vector<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, u nsigned long maxDeadBytes, unsigned long totalBytes);
250 250
251 String counterValue(Element*); 251 String counterValue(Element*);
252 252
253 int pageNumber(Element*, float pageWidth, float pageHeight, ExceptionState&) ; 253 int pageNumber(Element*, float pageWidth, float pageHeight, ExceptionState&) ;
254 Vector<String> shortcutIconURLs(Document*) const; 254 Vector<String> shortcutIconURLs(Document*) const;
255 Vector<String> allIconURLs(Document*) const; 255 Vector<String> allIconURLs(Document*) const;
256 256
257 int numberOfPages(float pageWidthInPixels, float pageHeightInPixels, Excepti onState&); 257 int numberOfPages(float pageWidthInPixels, float pageHeightInPixels, Excepti onState&);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or 348 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo or
349 // setNetworkStateMaxBandwidth. 349 // setNetworkStateMaxBandwidth.
350 void setNetworkStateNotifierTestOnly(bool); 350 void setNetworkStateNotifierTestOnly(bool);
351 void setNetworkConnectionInfo(const String&, double downlinkMaxMbps, Excepti onState&); 351 void setNetworkConnectionInfo(const String&, double downlinkMaxMbps, Excepti onState&);
352 352
353 unsigned countHitRegions(CanvasRenderingContext*); 353 unsigned countHitRegions(CanvasRenderingContext*);
354 354
355 bool isInCanvasFontCache(Document*, const String&); 355 bool isInCanvasFontCache(Document*, const String&);
356 unsigned canvasFontCacheMaxFonts(); 356 unsigned canvasFontCacheMaxFonts();
357 357
358 void setScrollChain(ScrollState*, const WillBeHeapVector<RefPtrWillBeMember< Element>>& elements, ExceptionState&); 358 void setScrollChain(ScrollState*, const HeapVector<Member<Element>>& element s, ExceptionState&);
359 359
360 // Schedule a forced Blink GC run (Oilpan) at the end of event loop. 360 // Schedule a forced Blink GC run (Oilpan) at the end of event loop.
361 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time. 361 // Note: This is designed to be only used from PerformanceTests/BlinkGC to e xplicitly measure only Blink GC time.
362 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC. 362 // Normal LayoutTests should use gc() instead as it would trigger both Blink GC and V8 GC.
363 void forceBlinkGCWithoutV8GC(); 363 void forceBlinkGCWithoutV8GC();
364 364
365 String selectedHTMLForClipboard(); 365 String selectedHTMLForClipboard();
366 String selectedTextForClipboard(); 366 String selectedTextForClipboard();
367 367
368 void setVisualViewportOffset(int x, int y); 368 void setVisualViewportOffset(int x, int y);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 416 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
417 Member<InternalRuntimeFlags> m_runtimeFlags; 417 Member<InternalRuntimeFlags> m_runtimeFlags;
418 418
419 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 419 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
420 }; 420 };
421 421
422 } // namespace blink 422 } // namespace blink
423 423
424 #endif // Internals_h 424 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698