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

Issue 349523004: IDL: Generate all constructor callbacks with the same template macro (Closed)

Created:
6 years, 6 months ago by Jens Widell
Modified:
6 years, 6 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Generate all constructor callbacks with the same template macro Regular constructors and named constructors are similar enough that using separate template macros to generate them mostly leads to duplicated code. The actual difference is now more visible, since it takes the explicit form {% if constructor.is_named_constructor %} // the difference {% endif %} in the shared macro. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176920

Patch Set 1 #

Patch Set 2 : fix arity check #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -57 lines) Patch
M Source/bindings/templates/interface.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 chunks +18 lines, -44 lines 5 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Jens Widell
PTAL
6 years, 6 months ago (2014-06-25 07:36:53 UTC) #1
Jens Widell
https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp#newcode506 Source/bindings/templates/methods.cpp:506: {% if constructor.number_of_required_arguments and not constructor.overload_index %} Using 'constructor.number_of_required_arguments' ...
6 years, 6 months ago (2014-06-25 07:50:42 UTC) #2
haraken
https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp#newcode501 Source/bindings/templates/methods.cpp:501: {% endif %} This block is fine in this ...
6 years, 6 months ago (2014-06-25 09:43:11 UTC) #3
Jens Widell
https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp#newcode501 Source/bindings/templates/methods.cpp:501: {% endif %} On 2014/06/25 09:43:11, haraken wrote: > ...
6 years, 6 months ago (2014-06-25 10:55:37 UTC) #4
haraken
On 2014/06/25 10:55:37, Jens Lindström wrote: > https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp > File Source/bindings/templates/methods.cpp (right): > > https://codereview.chromium.org/349523004/diff/20001/Source/bindings/templates/methods.cpp#newcode501 ...
6 years, 6 months ago (2014-06-25 10:58:47 UTC) #5
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 6 months ago (2014-06-25 11:02:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/349523004/20001
6 years, 6 months ago (2014-06-25 11:02:37 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 14:04:20 UTC) #8
Message was sent while issue was closed.
Change committed as 176920

Powered by Google App Engine
This is Rietveld 408576698