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

Issue 19607011: Generate binding code for VoidCallback.idl with code generator in python (Closed)

Created:
7 years, 5 months ago by kojih
Modified:
7 years, 4 months ago
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

This is the first step to migrate binding code generator from perl to python (with jinja template engine). R=haraken@chromium.org BUG=262365 TEST=no tests. refactoring. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155080

Patch Set 1 #

Total comments: 65

Patch Set 2 : Smaller patch which support only VoidCallback.idl #

Patch Set 3 : fix double -> single quote etc #

Total comments: 111

Patch Set 4 : smaller #

Total comments: 40

Patch Set 5 : nits #

Total comments: 6

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -22 lines) Patch
M Source/bindings/derived_sources.gyp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.py View 1 2 3 4 5 1 chunk +130 lines, -14 lines 0 comments Download
M Source/bindings/scripts/idl_compiler.py View 1 2 3 4 5 1 chunk +3 lines, -7 lines 0 comments Download
A Source/bindings/templates/callback.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A Source/bindings/templates/callback.cpp View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
kojih
r? This patch is subset of the new generator in my local branch which generate ...
7 years, 5 months ago (2013-07-24 10:14:45 UTC) #1
kojih
Note: generated code is exactly same as before.
7 years, 5 months ago (2013-07-24 10:15:40 UTC) #2
do-not-use
https://codereview.chromium.org/19607011/diff/1/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/1/Source/bindings/scripts/code_generator_v8.py#newcode59 Source/bindings/scripts/code_generator_v8.py:59: return dirs return reversed(dirs) ? https://codereview.chromium.org/19607011/diff/1/Source/bindings/scripts/code_generator_v8.py#newcode74 Source/bindings/scripts/code_generator_v8.py:74: return os.sep.join(relpath) ...
7 years, 5 months ago (2013-07-24 10:56:20 UTC) #3
do-not-use
https://codereview.chromium.org/19607011/diff/1/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/1/Source/bindings/scripts/code_generator_v8.py#newcode56 Source/bindings/scripts/code_generator_v8.py:56: dirs.append(basename) Or we could simply dir.insert(0, baseline) to avoid ...
7 years, 5 months ago (2013-07-24 11:17:59 UTC) #4
Nils Barth (inactive)
Woo-hoo! This looks fabulous Koji! Various comments inline, though generally looks fine and pretty clear, ...
7 years, 5 months ago (2013-07-24 11:41:20 UTC) #5
Nils Barth (inactive)
BTW, in case anyone's counting: this CL moves 32 IDL files over!
7 years, 5 months ago (2013-07-24 11:45:48 UTC) #6
haraken
Thanks nbarth and christophe. I'm not familiar with Python syntax, so your reviews are precious ...
7 years, 5 months ago (2013-07-24 11:50:55 UTC) #7
haraken
At a first glance, this CL looks too big. I'm concerned that this CL might ...
7 years, 5 months ago (2013-07-25 00:53:06 UTC) #8
kojih
Thanks Christophe, Nils, haraken. First I'll try smaller patch which support only VoidCallback.idl.
7 years, 5 months ago (2013-07-25 03:03:52 UTC) #9
Nils Barth (inactive)
On 2013/07/25 00:53:06, haraken wrote: > At a first glance, this CL looks too big. ...
7 years, 5 months ago (2013-07-25 03:09:16 UTC) #10
Nils Barth (inactive)
A few more comments. Most important is: Easier to explicitly use posixpath for C++ include ...
7 years, 5 months ago (2013-07-25 03:30:53 UTC) #11
kojih
Reflected comments and uploaded smaller patch. https://codereview.chromium.org/19607011/diff/1/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/19607011/diff/1/Source/bindings/derived_sources.gyp#newcode276 Source/bindings/derived_sources.gyp:276: 'templates/callback.cpp', Thanks, done. ...
7 years, 5 months ago (2013-07-25 09:08:37 UTC) #12
kojih
Updated: " -> '
7 years, 5 months ago (2013-07-25 09:25:44 UTC) #13
Nils Barth (inactive)
On 2013/07/25 09:08:37, kojih wrote: > Reflected comments and uploaded smaller patch. Thanks for all ...
7 years, 5 months ago (2013-07-25 11:57:56 UTC) #14
Nils Barth (inactive)
A few more style notes. https://codereview.chromium.org/19607011/diff/20001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/20001/Source/bindings/scripts/code_generator_v8.py#newcode61 Source/bindings/scripts/code_generator_v8.py:61: def get_impl_name(interface_or_function): This could ...
7 years, 5 months ago (2013-07-25 11:58:19 UTC) #15
haraken
I'm sorry about too many comments below. Overall, I think we have to migrate things ...
7 years, 5 months ago (2013-07-26 02:03:29 UTC) #16
Nils Barth (inactive)
A few more style points. Also agreeing with haraken that can probably strip this further ...
7 years, 5 months ago (2013-07-26 03:02:40 UTC) #17
kojih
Thanks for a lot of comments! revised version. https://codereview.chromium.org/19607011/diff/20001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/19607011/diff/20001/Source/bindings/derived_sources.gyp#newcode58 Source/bindings/derived_sources.gyp:58: 'jinja_template_files': ...
7 years, 5 months ago (2013-07-26 07:18:38 UTC) #18
haraken
Thanks for the update! The CL looks much easier for reviewing. Almost looks good. nbarth ...
7 years, 5 months ago (2013-07-26 07:47:10 UTC) #19
do-not-use
Nice. Much simpler indeed. https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py#newcode60 Source/bindings/scripts/code_generator_v8.py:60: def cpp_class_name(interface_or_function): On 2013/07/26 07:47:11, ...
7 years, 5 months ago (2013-07-26 07:55:41 UTC) #20
kojih
revised. https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py#newcode60 Source/bindings/scripts/code_generator_v8.py:60: def cpp_class_name(interface_or_function): This function will return [ImplementedAs] value ...
7 years, 5 months ago (2013-07-26 10:04:31 UTC) #21
do-not-use
LGTM but let haraken and nils take a look as well.
7 years, 5 months ago (2013-07-26 10:15:33 UTC) #22
haraken
LGTM. Given that you already have a big CL, it would be flustrating for you ...
7 years, 5 months ago (2013-07-26 10:15:47 UTC) #23
Nils Barth (inactive)
LGTM from me as well. Some refactoring and naming suggestions, but nothing substantive. https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py File ...
7 years, 5 months ago (2013-07-26 10:27:46 UTC) #24
kojih
https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py#newcode87 Source/bindings/scripts/code_generator_v8.py:87: def cpp_class_header(self): I'd like to leave this part as ...
7 years, 4 months ago (2013-07-29 03:43:20 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/19607011/50001
7 years, 4 months ago (2013-07-29 03:43:32 UTC) #26
Nils Barth (inactive)
https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/19607011/diff/33001/Source/bindings/scripts/code_generator_v8.py#newcode87 Source/bindings/scripts/code_generator_v8.py:87: def cpp_class_header(self): On 2013/07/29 03:43:21, kojih wrote: > I'd ...
7 years, 4 months ago (2013-07-29 04:11:09 UTC) #27
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=209
7 years, 4 months ago (2013-07-29 07:04:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/19607011/50001
7 years, 4 months ago (2013-07-29 07:09:32 UTC) #29
commit-bot: I haz the power
7 years, 4 months ago (2013-07-29 07:56:24 UTC) #30
Message was sent while issue was closed.
Change committed as 155080

Powered by Google App Engine
This is Rietveld 408576698