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

Issue 2458913003: Add first sketch of the webmodules code generator. (Closed)

Created:
4 years, 1 month ago by dglazkov
Modified:
4 years, 1 month ago
Reviewers:
haraken, esprehn, peria, bashi, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, Dirk Pranke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add first sketch of the webmodules code generator. This is the beginning of the C++ code generator that will generate the replacemenet for the Web* interfaces (aka WebKit API). There's not much to see here at the moment, just the inklings of the future. R=yukishiino,bashi BUG=654129 NOTRY=true Committed: https://crrev.com/e9b5677d326f0bd75e2a191d1e1316068518f039 Cr-Commit-Position: refs/heads/master@{#431696}

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 14

Patch Set 3 : Comments addressed. #

Patch Set 4 : Changed generated file prefix to Web. #

Patch Set 5 : Implemented WebModuleAPI extended attribute. #

Total comments: 2

Patch Set 6 : Ready to land. #

Messages

Total messages: 38 (13 generated)
dglazkov
PTAL. Plan of attack: 1) Land the sketch 2) Iterate on code generators until fully ...
4 years, 1 month ago (2016-10-29 02:07:57 UTC) #4
haraken
If you are sure that the generated cpp bindings do not increase the binary size ...
4 years, 1 month ago (2016-10-30 18:02:28 UTC) #6
dglazkov
Thanks for your comments! Will work on the next patch!
4 years, 1 month ago (2016-10-31 17:30:00 UTC) #7
bashi
https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py File third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py (right): https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py#newcode1 third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py:1: # Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 1 month ago (2016-11-01 00:14:36 UTC) #9
Yuki
https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/templates/cpp_interface.cpp.tmpl File third_party/WebKit/Source/bindings/templates/cpp_interface.cpp.tmpl (right): https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/templates/cpp_interface.cpp.tmpl#newcode3 third_party/WebKit/Source/bindings/templates/cpp_interface.cpp.tmpl:3: {% include 'copyright_block.txt' %} copyright_block.txt includes // clang-format off, ...
4 years, 1 month ago (2016-11-01 12:58:54 UTC) #11
Yuki
nit: CL description seems having a description for another CL.
4 years, 1 month ago (2016-11-01 13:05:26 UTC) #14
dglazkov
On 2016/11/01 at 13:05:26, yukishiino wrote: > nit: CL description seems having a description for ...
4 years, 1 month ago (2016-11-04 18:01:41 UTC) #15
dglazkov
On 2016/10/30 at 18:02:28, haraken wrote: > If you are sure that the generated cpp ...
4 years, 1 month ago (2016-11-04 18:04:05 UTC) #17
dglazkov
Comments addressed.
4 years, 1 month ago (2016-11-04 20:58:39 UTC) #18
dglazkov
This now depends on https://codereview.chromium.org/2481513002. PTAL. https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py File third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py (right): https://codereview.chromium.org/2458913003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py#newcode1 third_party/WebKit/Source/bindings/scripts/code_generator_cpp.py:1: # Copyright 2016 ...
4 years, 1 month ago (2016-11-04 21:03:08 UTC) #19
dglazkov
I apologize, the https://codereview.chromium.org/2481513002 and this patche are intermingled here in the latest patch. Let ...
4 years, 1 month ago (2016-11-04 21:04:19 UTC) #20
dglazkov
Changed generated file prefix to Web.
4 years, 1 month ago (2016-11-04 21:33:38 UTC) #21
dglazkov
Let's just get https://codereview.chromium.org/2481513002 landed and then I'll rebase :)
4 years, 1 month ago (2016-11-04 21:38:33 UTC) #22
dglazkov
Implemented WebModuleAPI extended attribute.
4 years, 1 month ago (2016-11-04 23:08:19 UTC) #23
bashi
lgtm on my side with one (future) nit. https://codereview.chromium.org/2458913003/diff/80001/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2458913003/diff/80001/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode71 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:71: template_context ...
4 years, 1 month ago (2016-11-06 23:58:20 UTC) #24
haraken
LGTM But don't we need web_module_interface.h.tmpl?
4 years, 1 month ago (2016-11-07 02:20:25 UTC) #25
Yuki
lgtm https://codereview.chromium.org/2458913003/diff/80001/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl File third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl (right): https://codereview.chromium.org/2458913003/diff/80001/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl#newcode34 third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl:34: } nit: } // namespace blink
4 years, 1 month ago (2016-11-07 02:55:53 UTC) #26
haraken
+Elliott One feedback I've recently heard is that the name "Web modules" is confusing. We ...
4 years, 1 month ago (2016-11-10 04:09:02 UTC) #28
dglazkov
On 2016/11/07 at 02:55:53, yukishiino wrote: > lgtm > > https://codereview.chromium.org/2458913003/diff/80001/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl > File third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl (right): ...
4 years, 1 month ago (2016-11-12 00:11:14 UTC) #29
dglazkov
On 2016/11/07 at 02:20:25, haraken wrote: > LGTM > > But don't we need web_module_interface.h.tmpl? ...
4 years, 1 month ago (2016-11-12 00:11:35 UTC) #30
dglazkov
On 2016/11/06 at 23:58:20, bashi wrote: > lgtm on my side with one (future) nit. ...
4 years, 1 month ago (2016-11-12 00:12:15 UTC) #31
dglazkov
Ready to land.
4 years, 1 month ago (2016-11-12 00:14:04 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2458913003/100001
4 years, 1 month ago (2016-11-12 00:15:34 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-12 00:22:21 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:26:46 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e9b5677d326f0bd75e2a191d1e1316068518f039
Cr-Commit-Position: refs/heads/master@{#431696}

Powered by Google App Engine
This is Rietveld 408576698