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

Issue 483163003: Introduce ES6 iterator for DOM objects. (Closed)

Created:
6 years, 4 months ago by yhirano
Modified:
6 years, 3 months ago
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Introduce ES6 iterator for DOM objects. This CL introduces blink::Iterator class and "Iterable" IDL attribute to make it enable for DOM objects to become iteratable. BUG=401699 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181294

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Total comments: 19

Patch Set 7 : rebase #

Patch Set 8 : #

Total comments: 12

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : rebase #

Total comments: 4

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -24 lines) Patch
A LayoutTests/fast/js/iterable-object.html View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/js/iterable-object-expected.txt View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M Source/bindings/IDLExtendedAttributes.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/V8DOMConfiguration.h View 1 2 3 4 5 6 7 8 9 3 chunks +37 lines, -14 lines 0 comments Download
M Source/bindings/core/v8/V8DOMConfiguration.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestInterface.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +24 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
A Source/core/dom/Iterator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
A + Source/core/dom/Iterator.idl View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +38 lines, -1 line 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (3 generated)
yhirano
This CL depends on https://code.google.com/p/v8/source/detail?r=23196 and https://codereview.chromium.org/459413002/. I will modify the code generator and remove ...
6 years, 4 months ago (2014-08-20 05:58:18 UTC) #1
haraken
> I will modify the code generator and remove the custom implementation in the > ...
6 years, 4 months ago (2014-08-20 06:19:04 UTC) #2
yhirano
On 2014/08/20 06:19:04, haraken wrote: > > I will modify the code generator and remove ...
6 years, 4 months ago (2014-08-20 06:29:56 UTC) #3
haraken
On 2014/08/20 06:29:56, yhirano wrote: > On 2014/08/20 06:19:04, haraken wrote: > > > I ...
6 years, 4 months ago (2014-08-20 06:37:18 UTC) #4
yhirano
On 2014/08/20 06:37:18, haraken wrote: > Hmm, I'm never intending to block your work, but ...
6 years, 4 months ago (2014-08-20 06:47:50 UTC) #5
arv (Not doing code reviews)
haraken knows the Blink side better than I do. Adding him as reviewer. I agree ...
6 years, 4 months ago (2014-08-20 14:18:38 UTC) #6
abarth-chromium
https://codereview.chromium.org/483163003/diff/20001/Source/bindings/core/v8/custom/V8InternalsCustom.cpp File Source/bindings/core/v8/custom/V8InternalsCustom.cpp (right): https://codereview.chromium.org/483163003/diff/20001/Source/bindings/core/v8/custom/V8InternalsCustom.cpp#newcode6 Source/bindings/core/v8/custom/V8InternalsCustom.cpp:6: // generator. Please don't introduce any custom bindings for ...
6 years, 4 months ago (2014-08-20 18:22:42 UTC) #7
yhirano
I removed the custom wrapper. PTAL.
6 years, 4 months ago (2014-08-21 11:55:20 UTC) #8
yhirano
https://codereview.chromium.org/483163003/diff/20001/Source/bindings/core/v8/custom/V8InternalsCustom.cpp File Source/bindings/core/v8/custom/V8InternalsCustom.cpp (right): https://codereview.chromium.org/483163003/diff/20001/Source/bindings/core/v8/custom/V8InternalsCustom.cpp#newcode6 Source/bindings/core/v8/custom/V8InternalsCustom.cpp:6: // generator. On 2014/08/20 18:22:42, abarth wrote: > Please ...
6 years, 4 months ago (2014-08-21 11:55:27 UTC) #9
Jens Widell
https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp#newcode467 Source/bindings/templates/methods.cpp:467: {% elif internal_namespace %} You could skip this conditional ...
6 years, 4 months ago (2014-08-21 13:08:53 UTC) #10
yhirano
https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp#newcode467 Source/bindings/templates/methods.cpp:467: {% elif internal_namespace %} On 2014/08/21 13:08:53, Jens Widell ...
6 years, 4 months ago (2014-08-21 13:19:58 UTC) #11
Jens Widell
https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/483163003/diff/80001/Source/bindings/templates/methods.cpp#newcode467 Source/bindings/templates/methods.cpp:467: {% elif internal_namespace %} On 2014/08/21 13:19:58, yhirano wrote: ...
6 years, 4 months ago (2014-08-21 13:58:02 UTC) #12
arv (Not doing code reviews)
On 2014/08/21 at 11:55:27, yhirano wrote: > https://codereview.chromium.org/483163003/diff/20001/Source/core/testing/Internals.cpp > File Source/core/testing/Internals.cpp (right): > > https://codereview.chromium.org/483163003/diff/20001/Source/core/testing/Internals.cpp#newcode151 ...
6 years, 4 months ago (2014-08-21 15:36:25 UTC) #13
haraken
The overall approach looks good. https://codereview.chromium.org/483163003/diff/100001/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/483163003/diff/100001/Source/bindings/templates/interface.cpp#newcode982 Source/bindings/templates/interface.cpp:982: static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolIteratorConfiguration ...
6 years, 4 months ago (2014-08-21 16:15:59 UTC) #14
yhirano
On 2014/08/21 15:36:25, arv wrote: > On 2014/08/21 at 11:55:27, yhirano wrote: > > > ...
6 years, 4 months ago (2014-08-25 06:08:49 UTC) #15
yhirano
https://codereview.chromium.org/483163003/diff/100001/Source/bindings/core/v8/V8DOMConfiguration.cpp File Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/483163003/diff/100001/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode120 Source/bindings/core/v8/V8DOMConfiguration.cpp:120: v8::Handle<v8::FunctionTemplate> V8DOMConfiguration::functionTemplateForMethod(v8::Handle<v8::Signature> signature, const SymbolKeyedMethodConfiguration& callback, v8::Isolate* isolate) On ...
6 years, 4 months ago (2014-08-25 06:09:26 UTC) #16
haraken
Mostly looks good. Jens and arv might want to confirm. https://codereview.chromium.org/483163003/diff/140001/Source/bindings/core/v8/V8DOMConfiguration.h File Source/bindings/core/v8/V8DOMConfiguration.h (right): https://codereview.chromium.org/483163003/diff/140001/Source/bindings/core/v8/V8DOMConfiguration.h#newcode137 ...
6 years, 4 months ago (2014-08-25 06:22:00 UTC) #17
yhirano
https://codereview.chromium.org/483163003/diff/140001/Source/bindings/core/v8/V8DOMConfiguration.h File Source/bindings/core/v8/V8DOMConfiguration.h (right): https://codereview.chromium.org/483163003/diff/140001/Source/bindings/core/v8/V8DOMConfiguration.h#newcode137 Source/bindings/core/v8/V8DOMConfiguration.h:137: v8::Local<v8::Name> getName(v8::Isolate* isolate) const { return v8AtomicString(isolate, name); } ...
6 years, 4 months ago (2014-08-25 06:54:58 UTC) #18
Jens Widell
LGTM
6 years, 4 months ago (2014-08-25 07:01:38 UTC) #19
haraken
LGTM https://codereview.chromium.org/483163003/diff/160001/Source/bindings/core/v8/V8DOMConfiguration.h File Source/bindings/core/v8/V8DOMConfiguration.h (right): https://codereview.chromium.org/483163003/diff/160001/Source/bindings/core/v8/V8DOMConfiguration.h#newcode152 Source/bindings/core/v8/V8DOMConfiguration.h:152: v8::FunctionCallback callbackForWorld(const DOMWrapperWorld& world) const Remove |world|.
6 years, 4 months ago (2014-08-25 07:11:09 UTC) #20
yhirano
https://codereview.chromium.org/483163003/diff/160001/Source/bindings/core/v8/V8DOMConfiguration.h File Source/bindings/core/v8/V8DOMConfiguration.h (right): https://codereview.chromium.org/483163003/diff/160001/Source/bindings/core/v8/V8DOMConfiguration.h#newcode152 Source/bindings/core/v8/V8DOMConfiguration.h:152: v8::FunctionCallback callbackForWorld(const DOMWrapperWorld& world) const On 2014/08/25 07:11:09, haraken ...
6 years, 4 months ago (2014-08-25 07:39:28 UTC) #21
yhirano
arv@: Do you have other comments?
6 years, 3 months ago (2014-08-28 01:34:57 UTC) #22
sof
When this has landed, it'd be good to document [Iterable] in http://www.chromium.org/blink/webidl/blink-idl-extended-attributes
6 years, 3 months ago (2014-08-28 08:10:56 UTC) #23
yhirano
On 2014/08/28 08:10:56, sof wrote: > When this has landed, it'd be good to document ...
6 years, 3 months ago (2014-08-28 08:22:59 UTC) #24
jsbell
Drive-by comment without looking at the patch. Since it seems like we're taking the lead ...
6 years, 3 months ago (2014-08-28 16:50:33 UTC) #25
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/483163003/diff/200001/Source/core/dom/Iterator.h File Source/core/dom/Iterator.h (right): https://codereview.chromium.org/483163003/diff/200001/Source/core/dom/Iterator.h#newcode23 Source/core/dom/Iterator.h:23: Iterator* iterator(ScriptState*, ExceptionState&) { return this; } This ...
6 years, 3 months ago (2014-09-02 14:31:24 UTC) #26
yhirano
https://codereview.chromium.org/483163003/diff/200001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/483163003/diff/200001/Source/core/testing/Internals.cpp#newcode161 Source/core/testing/Internals.cpp:161: return ScriptValue(scriptState, result); On 2014/09/02 14:31:24, arv wrote: > ...
6 years, 3 months ago (2014-09-03 06:42:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/483163003/220001
6 years, 3 months ago (2014-09-03 06:55:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/483163003/220001
6 years, 3 months ago (2014-09-03 07:08:07 UTC) #32
yhirano
https://codereview.chromium.org/483163003/diff/200001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/483163003/diff/200001/Source/core/testing/Internals.cpp#newcode161 Source/core/testing/Internals.cpp:161: return ScriptValue(scriptState, result); On 2014/09/03 06:42:29, yhirano wrote: > ...
6 years, 3 months ago (2014-09-03 07:21:05 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001) as 181294
6 years, 3 months ago (2014-09-03 08:06:38 UTC) #34
yhirano
6 years, 3 months ago (2014-09-03 09:07:33 UTC) #35
Message was sent while issue was closed.
On 2014/08/28 08:10:56, sof wrote:
> When this has landed, it'd be good to document [Iterable] in
> http://www.chromium.org/blink/webidl/blink-idl-extended-attributes

Done.

Powered by Google App Engine
This is Rietveld 408576698