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

Unified Diff: third_party/WebKit/Source/core/dom/NodeList.h

Issue 1367523002: [dom] support iterable<> NodeList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actual on the left, expected on the right Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/NodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/NodeList.h
diff --git a/third_party/WebKit/Source/core/dom/NodeList.h b/third_party/WebKit/Source/core/dom/NodeList.h
index ab50dd22ed1e7ad25e58e40fc868a9f9d845d935..17be3f13f427d220f2eea16451dd7e6d33f68f23 100644
--- a/third_party/WebKit/Source/core/dom/NodeList.h
+++ b/third_party/WebKit/Source/core/dom/NodeList.h
@@ -24,6 +24,7 @@
#ifndef NodeList_h
#define NodeList_h
+#include "bindings/core/v8/Iterable.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "wtf/RefCounted.h"
@@ -32,7 +33,7 @@ namespace blink {
class Node;
-class CORE_EXPORT NodeList : public RefCountedWillBeGarbageCollectedFinalized<NodeList>, public ScriptWrappable {
+class CORE_EXPORT NodeList : public RefCountedWillBeGarbageCollectedFinalized<NodeList>, public ScriptWrappable, public ValueIterable<Node *> {
DEFINE_WRAPPERTYPEINFO();
public:
virtual ~NodeList() { }
@@ -51,6 +52,9 @@ public:
protected:
NodeList() { }
+
+private:
+ IterationSource* startIteration(ScriptState*, ExceptionState&) override;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/NodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698