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

Issue 12041098: Initial commit of the Dart Chrome Extension APIs generators (Closed)

Created:
7 years, 11 months ago by sashab
Modified:
7 years, 10 months ago
CC:
chromium-reviews, pam+watch_chromium.org, benwells, Emily Fortuna, sra1, sethladd, blois
Base URL:
http://git.chromium.org/chromium/src.git@file_path_bugfix
Visibility:
Public.

Description

Initial commit of the Dart Chrome Extension APIs generators Modified json_schema_compiler to allow a -l option to specify the language. Also allowed for a -H option to specify a hooks file, which is currently only supported for Dart. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180845

Patch Set 1 #

Total comments: 21

Patch Set 2 : Fixed tracking branch to be master #

Patch Set 3 : Added dart subfolder, with custom hooks for the Chrome.* APIs #

Patch Set 4 : Fixed minor style issues; added support for [nodart] IDL flag #

Total comments: 27

Patch Set 5 : Updated master to latest #

Patch Set 6 : Fixed to work with json_schema_compiler changes, fixed style & structure issues, and implemented a … #

Total comments: 104

Patch Set 7 : #

Patch Set 8 : Cleaned up dart_generator, and added wrappers for callbacks #

Total comments: 43

Patch Set 9 : Refactored json_schema_compiler, moving lang-specific code to its own generators. #

Patch Set 10 : Small style & structure fixes to dart_generator, and similar. #

Total comments: 38

Patch Set 11 : Added wrappers for more types of functions (including events, callbacks and lists) #

Total comments: 9

Patch Set 12 : Changed constructor for CppTypeGenerator and updated tests #

Patch Set 13 : Fixed .gyp files to reflect new filenames #

Total comments: 13

Patch Set 14 : Fixing cpp_type_generator; still some broken unit tests #

Patch Set 15 : blah #

Patch Set 16 : Reupload of previous patch #

Patch Set 17 : kalman fixes #

Patch Set 18 : Kalman fixes 2 (nocompile ignored in bundle mode) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1026 lines, -562 lines) Patch
M build/json_schema_bundle_compile.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 15 2 chunks +2 lines, -2 lines 0 comments Download
M build/json_schema_compile.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 15 4 chunks +4 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +15 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/code.py View 1 2 3 4 5 6 7 8 9 15 2 chunks +6 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +126 lines, -145 lines 0 comments Download
A + tools/json_schema_compiler/cpp_bundle_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +75 lines, -56 lines 0 comments Download
A tools/json_schema_compiler/cpp_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +30 lines, -57 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +43 lines, -72 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 2 chunks +17 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cpp_util_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 1 chunk +14 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/dart_generator.py View 1 2 3 4 5 6 7 8 9 10 11 15 1 chunk +651 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +17 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/idl_schema.py View 1 2 3 4 15 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/json_schema.py View 1 2 3 4 5 15 2 chunks +11 lines, -7 lines 0 comments Download
M tools/json_schema_compiler/json_schema_test.py View 1 2 3 4 5 15 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 4 5 6 7 8 9 10 11 12 15 1 chunk +2 lines, -0 lines 0 comments Download
D tools/json_schema_compiler/schema_bundle_generator.py View 1 2 3 4 5 6 7 8 15 1 chunk +0 lines, -209 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
sashab
These are the Dart Chrome Extension generators that will be pulled to Dart for generating ...
7 years, 11 months ago (2013-01-25 02:10:19 UTC) #1
sashab
Sorry; resending due to wrong reviewer addresses.
7 years, 11 months ago (2013-01-25 02:40:01 UTC) #2
benwells
https://codereview.chromium.org/12041098/diff/1/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://codereview.chromium.org/12041098/diff/1/tools/json_schema_compiler/compiler.py#newcode95 tools/json_schema_compiler/compiler.py:95: if lang.lower() == 'c++': I don't think this is ...
7 years, 11 months ago (2013-01-25 03:15:32 UTC) #3
not at google - send to devlin
Hi Sasha, What does the generator do so far? What does it support / what ...
7 years, 11 months ago (2013-01-25 03:17:08 UTC) #4
calamity
Hey, At this point, I'm only vaguely familiar with this code and I'll only be ...
7 years, 11 months ago (2013-01-25 04:16:01 UTC) #5
sashab
Apologies before for not giving a better introduction as to what this change is for. ...
7 years, 11 months ago (2013-01-25 05:58:11 UTC) #6
not at google - send to devlin
I didn't look at dart_generator.py too closely - I think it will end up changing ...
7 years, 11 months ago (2013-01-25 18:14:33 UTC) #7
sashab
Fixed a lot of the style & structure issues, as well as accounted for the ...
7 years, 10 months ago (2013-01-29 08:27:13 UTC) #8
not at google - send to devlin
Like I said, I'm really nervous adding that much code to compiler.py, please consider something ...
7 years, 10 months ago (2013-01-29 16:37:08 UTC) #9
sashab
Cleaned up dart_generator quite a bit; now working on refactoring json_schema_compiler (mainly compiler.py) from the ...
7 years, 10 months ago (2013-01-30 05:26:03 UTC) #10
not at google - send to devlin
Some more comments, gotta leave work, looking forward to the compiler.py changes. https://codereview.chromium.org/12041098/diff/3003/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py ...
7 years, 10 months ago (2013-01-31 02:08:47 UTC) #11
sashab
Refactored json_schema_compiler from the ground-up, and fixed some small structure & style issues with dart_generator. ...
7 years, 10 months ago (2013-01-31 04:41:40 UTC) #12
not at google - send to devlin
Looking really nice, just need to update the blank-override thing based on the email discussion, ...
7 years, 10 months ago (2013-02-02 00:45:47 UTC) #13
sashab
Added wrappers for many more types of callbacks (including events) and support for more types ...
7 years, 10 months ago (2013-02-04 05:09:26 UTC) #14
not at google - send to devlin
lgtm https://codereview.chromium.org/12041098/diff/17004/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://codereview.chromium.org/12041098/diff/17004/tools/json_schema_compiler/compiler.py#newcode63 tools/json_schema_compiler/compiler.py:63: help='''The language to generate the output in.''') On ...
7 years, 10 months ago (2013-02-04 17:21:06 UTC) #15
sashab
Changed the constructor for CppTypeGenerator and updated its tests to work with this new constructor. ...
7 years, 10 months ago (2013-02-04 23:12:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12041098/50001
7 years, 10 months ago (2013-02-05 00:02:41 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-05 00:30:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12041098/49021
7 years, 10 months ago (2013-02-05 00:30:57 UTC) #19
not at google - send to devlin
something like this https://codereview.chromium.org/12041098/diff/49021/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://codereview.chromium.org/12041098/diff/49021/tools/json_schema_compiler/compiler.py#newcode112 tools/json_schema_compiler/compiler.py:112: os.path.relpath(referenced_schema_path, opts.root)) TBH I think that ...
7 years, 10 months ago (2013-02-05 00:47:46 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-05 00:52:57 UTC) #21
sashab
https://codereview.chromium.org/12041098/diff/49021/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://codereview.chromium.org/12041098/diff/49021/tools/json_schema_compiler/compiler.py#newcode115 tools/json_schema_compiler/compiler.py:115: for target_namespace, schema_filename in zip(api_defs, filenames): On 2013/02/05 00:47:46, ...
7 years, 10 months ago (2013-02-05 01:14:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12041098/66001
7 years, 10 months ago (2013-02-05 03:25:37 UTC) #23
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=96262
7 years, 10 months ago (2013-02-05 06:24:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sashab@chromium.org/12041098/76001
7 years, 10 months ago (2013-02-05 22:42:06 UTC) #25
commit-bot: I haz the power
7 years, 10 months ago (2013-02-06 01:29:32 UTC) #26
Message was sent while issue was closed.
Change committed as 180845

Powered by Google App Engine
This is Rietveld 408576698