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

Issue 9600050: Add IDL capability to json_schema_compiler. (Closed)

Created:
8 years, 9 months ago by miket_OOO
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, pam+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

- Extend compiler.py to recognize .idl files. - Extend .gyp to pass certain .idl files to compiler.py. - Implement a translator taking IDL parser output and creating a schema that the JSON compiler recognizes. - Convert one API to IDL using asargent's JSON cat JSON-to-IDL converter, and adapt API's implementation to use the newly generated output. TEST=no changes BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125300

Patch Set 1 : Patch Set 1 #

Total comments: 19

Patch Set 2 : Patch Set TWO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -23 lines) Patch
M build/json_schema_compile.gypi View 2 chunks +40 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/dns/dns_api.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_api.cc View 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_apitest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.dns.idl View 1 chunk +28 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 2 chunks +12 lines, -4 lines 0 comments Download
A tools/json_schema_compiler/idl_schema.py View 1 1 chunk +211 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/json_schema.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/model.py View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
miket_OOO
8 years, 9 months ago (2012-03-06 20:45:17 UTC) #1
asargent_no_longer_on_chrome
mostly nits http://codereview.chromium.org/9600050/diff/1008/chrome/browser/extensions/api/dns/dns_api.cc File chrome/browser/extensions/api/dns/dns_api.cc (right): http://codereview.chromium.org/9600050/diff/1008/chrome/browser/extensions/api/dns/dns_api.cc#newcode11 chrome/browser/extensions/api/dns/dns_api.cc:11: #include "chrome/common/extensions/api/experimental.dns.h" This experimental.dns.h file gets auto-generated ...
8 years, 9 months ago (2012-03-06 22:27:57 UTC) #2
miket_OOO
Looking better, representing an IDL namespace. Representing an IDL namespace. (Also: representing an IDL namespace.) ...
8 years, 9 months ago (2012-03-07 00:23:01 UTC) #3
asargent_no_longer_on_chrome
LGTM! http://codereview.chromium.org/9600050/diff/1008/tools/json_schema_compiler/idl_schema.py File tools/json_schema_compiler/idl_schema.py (right): http://codereview.chromium.org/9600050/diff/1008/tools/json_schema_compiler/idl_schema.py#newcode111 tools/json_schema_compiler/idl_schema.py:111: properties['$ref'] = self.typeref On 2012/03/07 00:23:01, miket wrote: ...
8 years, 9 months ago (2012-03-07 00:42:09 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/9600050/7001
8 years, 9 months ago (2012-03-07 00:43:28 UTC) #5
commit-bot: I haz the power
8 years, 9 months ago (2012-03-07 02:33:37 UTC) #6
Change committed as 125300

Powered by Google App Engine
This is Rietveld 408576698