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

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

Issue 483163003: Introduce ES6 iterator for DOM objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class DocumentMarker; 52 class DocumentMarker;
53 class Element; 53 class Element;
54 class ExceptionState; 54 class ExceptionState;
55 class ExecutionContext; 55 class ExecutionContext;
56 class GCObservation; 56 class GCObservation;
57 class HTMLElement; 57 class HTMLElement;
58 class HTMLMediaElement; 58 class HTMLMediaElement;
59 class InternalProfilers; 59 class InternalProfilers;
60 class InternalRuntimeFlags; 60 class InternalRuntimeFlags;
61 class InternalSettings; 61 class InternalSettings;
62 class Iterator;
62 class LayerRectList; 63 class LayerRectList;
63 class LocalFrame; 64 class LocalFrame;
64 class Node; 65 class Node;
65 class Page; 66 class Page;
66 class PagePopupController; 67 class PagePopupController;
67 class PrivateScriptTest; 68 class PrivateScriptTest;
68 class Range; 69 class Range;
69 class SerializedScriptValue; 70 class SerializedScriptValue;
70 class ShadowRoot; 71 class ShadowRoot;
71 template <typename NodeType> class StaticNodeTypeList; 72 template <typename NodeType> class StaticNodeTypeList;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 void setNetworkStateNotifierTestOnly(bool); 309 void setNetworkStateNotifierTestOnly(bool);
309 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 310 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
310 void setNetworkConnectionInfo(const String&, ExceptionState&); 311 void setNetworkConnectionInfo(const String&, ExceptionState&);
311 String serializeNavigationMarkup(); 312 String serializeNavigationMarkup();
312 void hideAllTransitionElements(); 313 void hideAllTransitionElements();
313 314
314 unsigned countHitRegions(CanvasRenderingContext2D*); 315 unsigned countHitRegions(CanvasRenderingContext2D*);
315 316
316 void forcePluginPlaceholder(HTMLElement* plugin, const String& htmlSource, E xceptionState&); 317 void forcePluginPlaceholder(HTMLElement* plugin, const String& htmlSource, E xceptionState&);
317 318
319 Iterator* iterator(ScriptState*, ExceptionState&);
320
318 private: 321 private:
319 explicit Internals(Document*); 322 explicit Internals(Document*);
320 Document* contextDocument() const; 323 Document* contextDocument() const;
321 LocalFrame* frame() const; 324 LocalFrame* frame() const;
322 Vector<String> iconURLs(Document*, int iconTypesMask) const; 325 Vector<String> iconURLs(Document*, int iconTypesMask) const;
323 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 326 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
324 327
325 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 328 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
326 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 329 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
327 RefPtrWillBeMember<InternalProfilers> m_profilers; 330 RefPtrWillBeMember<InternalProfilers> m_profilers;
328 }; 331 };
329 332
330 } // namespace blink 333 } // namespace blink
331 334
332 #endif 335 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698