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

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

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGSVGElement.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 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #ifndef Internals_h 27 #ifndef Internals_h
28 #define Internals_h 28 #define Internals_h
29 29
30 #include "bindings/v8/ExceptionStatePlaceholder.h" 30 #include "bindings/v8/ExceptionStatePlaceholder.h"
31 #include "bindings/v8/ScriptPromise.h" 31 #include "bindings/v8/ScriptPromise.h"
32 #include "bindings/v8/ScriptValue.h" 32 #include "bindings/v8/ScriptValue.h"
33 #include "core/css/CSSComputedStyleDeclaration.h" 33 #include "core/css/CSSComputedStyleDeclaration.h"
34 #include "core/dom/ContextLifecycleObserver.h" 34 #include "core/dom/ContextLifecycleObserver.h"
35 #include "core/dom/NodeList.h"
36 #include "core/page/scrolling/ScrollingCoordinator.h" 35 #include "core/page/scrolling/ScrollingCoordinator.h"
37 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
38 #include "wtf/ArrayBuffer.h" 37 #include "wtf/ArrayBuffer.h"
39 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
40 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
41 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
42 41
43 namespace WebCore { 42 namespace WebCore {
44 43
45 class ClientRect; 44 class ClientRect;
(...skipping 12 matching lines...) Expand all
58 class InternalRuntimeFlags; 57 class InternalRuntimeFlags;
59 class InternalSettings; 58 class InternalSettings;
60 class LayerRectList; 59 class LayerRectList;
61 class LocalFrame; 60 class LocalFrame;
62 class MallocStatistics; 61 class MallocStatistics;
63 class Node; 62 class Node;
64 class Page; 63 class Page;
65 class PagePopupController; 64 class PagePopupController;
66 class Range; 65 class Range;
67 class SerializedScriptValue; 66 class SerializedScriptValue;
67 class StaticNodeList;
68 class ShadowRoot; 68 class ShadowRoot;
69 class TypeConversions; 69 class TypeConversions;
70 70
71 class Internals FINAL : public RefCountedWillBeGarbageCollectedFinalized<Interna ls>, public ContextLifecycleObserver { 71 class Internals FINAL : public RefCountedWillBeGarbageCollectedFinalized<Interna ls>, public ContextLifecycleObserver {
72 public: 72 public:
73 static PassRefPtrWillBeRawPtr<Internals> create(Document*); 73 static PassRefPtrWillBeRawPtr<Internals> create(Document*);
74 virtual ~Internals(); 74 virtual ~Internals();
75 75
76 static void resetToConsistentState(Page*); 76 static void resetToConsistentState(Page*);
77 77
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 Vector<AtomicString> userPreferredLanguages() const; 179 Vector<AtomicString> userPreferredLanguages() const;
180 void setUserPreferredLanguages(const Vector<String>&); 180 void setUserPreferredLanguages(const Vector<String>&);
181 181
182 unsigned activeDOMObjectCount(Document*, ExceptionState&); 182 unsigned activeDOMObjectCount(Document*, ExceptionState&);
183 unsigned wheelEventHandlerCount(Document*, ExceptionState&); 183 unsigned wheelEventHandlerCount(Document*, ExceptionState&);
184 unsigned scrollEventHandlerCount(Document*, ExceptionState&); 184 unsigned scrollEventHandlerCount(Document*, ExceptionState&);
185 unsigned touchEventHandlerCount(Document*, ExceptionState&); 185 unsigned touchEventHandlerCount(Document*, ExceptionState&);
186 PassRefPtrWillBeRawPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionState&); 186 PassRefPtrWillBeRawPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionState&);
187 187
188 // This is used to test rect based hit testing like what's done on touch scr eens. 188 // This is used to test rect based hit testing like what's done on touch scr eens.
189 PassRefPtrWillBeRawPtr<NodeList> nodesFromRect(Document*, int x, int y, unsi gned topPadding, unsigned rightPadding, 189 PassRefPtrWillBeRawPtr<StaticNodeList> nodesFromRect(Document*, int x, int y , unsigned topPadding, unsigned rightPadding,
190 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionState&) const; 190 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionState&) const;
191 191
192 void emitInspectorDidBeginFrame(int frameId = 0); 192 void emitInspectorDidBeginFrame(int frameId = 0);
193 void emitInspectorDidCancelFrame(); 193 void emitInspectorDidCancelFrame();
194 194
195 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&); 195 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&);
196 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&); 196 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&);
197 void setContinuousSpellCheckingEnabled(bool enabled, ExceptionState&); 197 void setContinuousSpellCheckingEnabled(bool enabled, ExceptionState&);
198 198
199 bool isOverwriteModeEnabled(Document*, ExceptionState&); 199 bool isOverwriteModeEnabled(Document*, ExceptionState&);
(...skipping 10 matching lines...) Expand all
210 InternalProfilers* profilers(); 210 InternalProfilers* profilers();
211 unsigned workerThreadCount() const; 211 unsigned workerThreadCount() const;
212 212
213 void setDeviceProximity(Document*, const String& eventType, double value, do uble min, double max, ExceptionState&); 213 void setDeviceProximity(Document*, const String& eventType, double value, do uble min, double max, ExceptionState&);
214 214
215 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const; 215 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const;
216 String layerTreeAsText(Document*, ExceptionState&) const; 216 String layerTreeAsText(Document*, ExceptionState&) const;
217 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con st; 217 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con st;
218 String elementLayerTreeAsText(Element*, ExceptionState&) const; 218 String elementLayerTreeAsText(Element*, ExceptionState&) const;
219 219
220 PassRefPtrWillBeRawPtr<NodeList> paintOrderListBeforePromote(Element*, Excep tionState&);
221 PassRefPtrWillBeRawPtr<NodeList> paintOrderListAfterPromote(Element*, Except ionState&);
222
223 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); 220 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&);
224 bool isUnclippedDescendant(Element*, ExceptionState&); 221 bool isUnclippedDescendant(Element*, ExceptionState&);
225 222
226 String repaintRectsAsText(Document*, ExceptionState&) const; 223 String repaintRectsAsText(Document*, ExceptionState&) const;
227 PassRefPtrWillBeRawPtr<ClientRectList> repaintRects(Element*, ExceptionState &) const; 224 PassRefPtrWillBeRawPtr<ClientRectList> repaintRects(Element*, ExceptionState &) const;
228 225
229 String scrollingStateTreeAsText(Document*, ExceptionState&) const; 226 String scrollingStateTreeAsText(Document*, ExceptionState&) const;
230 String mainThreadScrollingReasons(Document*, ExceptionState&) const; 227 String mainThreadScrollingReasons(Document*, ExceptionState&) const;
231 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc eptionState&) const; 228 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc eptionState&) const;
232 229
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 330 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
334 331
335 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 332 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
336 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 333 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
337 RefPtrWillBeMember<InternalProfilers> m_profilers; 334 RefPtrWillBeMember<InternalProfilers> m_profilers;
338 }; 335 };
339 336
340 } // namespace WebCore 337 } // namespace WebCore
341 338
342 #endif 339 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698