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

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, 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
« no previous file with comments | « Source/core/dom/Iterator.idl ('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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class DocumentMarker; 53 class DocumentMarker;
54 class Element; 54 class Element;
55 class ExceptionState; 55 class ExceptionState;
56 class ExecutionContext; 56 class ExecutionContext;
57 class GCObservation; 57 class GCObservation;
58 class HTMLElement; 58 class HTMLElement;
59 class HTMLMediaElement; 59 class HTMLMediaElement;
60 class InternalProfilers; 60 class InternalProfilers;
61 class InternalRuntimeFlags; 61 class InternalRuntimeFlags;
62 class InternalSettings; 62 class InternalSettings;
63 class Iterator;
63 class LayerRectList; 64 class LayerRectList;
64 class LocalFrame; 65 class LocalFrame;
65 class Node; 66 class Node;
66 class Page; 67 class Page;
67 class PagePopupController; 68 class PagePopupController;
68 class PrivateScriptTest; 69 class PrivateScriptTest;
69 class Range; 70 class Range;
70 class SerializedScriptValue; 71 class SerializedScriptValue;
71 class ShadowRoot; 72 class ShadowRoot;
72 template <typename NodeType> class StaticNodeTypeList; 73 template <typename NodeType> class StaticNodeTypeList;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 void setNetworkStateNotifierTestOnly(bool); 312 void setNetworkStateNotifierTestOnly(bool);
312 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 313 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
313 void setNetworkConnectionInfo(const String&, ExceptionState&); 314 void setNetworkConnectionInfo(const String&, ExceptionState&);
314 String serializeNavigationMarkup(); 315 String serializeNavigationMarkup();
315 void hideAllTransitionElements(); 316 void hideAllTransitionElements();
316 317
317 unsigned countHitRegions(CanvasRenderingContext2D*); 318 unsigned countHitRegions(CanvasRenderingContext2D*);
318 319
319 void forcePluginPlaceholder(HTMLElement* plugin, const String& htmlSource, E xceptionState&); 320 void forcePluginPlaceholder(HTMLElement* plugin, const String& htmlSource, E xceptionState&);
320 321
322 Iterator* iterator(ScriptState*, ExceptionState&);
323
321 private: 324 private:
322 explicit Internals(Document*); 325 explicit Internals(Document*);
323 Document* contextDocument() const; 326 Document* contextDocument() const;
324 LocalFrame* frame() const; 327 LocalFrame* frame() const;
325 Vector<String> iconURLs(Document*, int iconTypesMask) const; 328 Vector<String> iconURLs(Document*, int iconTypesMask) const;
326 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 329 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
327 330
328 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 331 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
329 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 332 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
330 RefPtrWillBeMember<InternalProfilers> m_profilers; 333 RefPtrWillBeMember<InternalProfilers> m_profilers;
331 }; 334 };
332 335
333 } // namespace blink 336 } // namespace blink
334 337
335 #endif // Internals_h 338 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/dom/Iterator.idl ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698