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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed)

Created:
8 years, 9 months ago by calamity
Modified:
8 years, 9 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, mihaip+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, Aaron Boodman, pam+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

json_schema_compiler: any, additionalProperties, functions on types Add support and tests for more json types. Also fixed a number of API jsons. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124643

Patch Set 1 #

Patch Set 2 : remove whitespace #

Total comments: 69

Patch Set 3 : rework, better errors #

Total comments: 10

Patch Set 4 : more rework #

Patch Set 5 : small fixes #

Patch Set 6 : fix code.py #

Patch Set 7 : fix patch #

Patch Set 8 : add any::Any to util.h #

Patch Set 9 : add any in arrays to util.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+895 lines, -163 lines) Patch
M build/json_schema_compile.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/chromeosInfoPrivate.json View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/devtools_api.json View 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental.accessibility.json View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/experimental.app.json View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/webstorePrivate.json View 1 chunk +6 lines, -1 line 0 comments Download
A tools/json_schema_compiler/any.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/any.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/any_helper.py View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/api_gen_util.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 17 chunks +111 lines, -51 lines 0 comments Download
M tools/json_schema_compiler/code.py View 1 2 3 4 5 5 chunks +32 lines, -17 lines 0 comments Download
M tools/json_schema_compiler/code_test.py View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 3 chunks +6 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cpp_util.py View 1 chunk +0 lines, -1 line 0 comments Download
M tools/json_schema_compiler/h_generator.py View 1 2 3 7 chunks +50 lines, -26 lines 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 4 10 chunks +102 lines, -37 lines 0 comments Download
M tools/json_schema_compiler/model_test.py View 1 2 3 4 chunks +4 lines, -9 lines 0 comments Download
M tools/json_schema_compiler/previewserver.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A tools/json_schema_compiler/test/additionalProperties.json View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/additional_properties_unittest.cc View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/any.json View 1 1 chunk +54 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/any_unittest.cc View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/arrays.json View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/arrays_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/functionsOnTypes.json View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
A tools/json_schema_compiler/test/functions_on_types_unittest.cc View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/json_schema_compiler_tests.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/util.h View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/util.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
calamity
8 years, 9 months ago (2012-02-28 09:58:37 UTC) #1
Yoyo Zhou
TM, mostly LG. http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/cc_generator.py File tools/json_schema_compiler/cc_generator.py (right): http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/cc_generator.py#newcode139 tools/json_schema_compiler/cc_generator.py:139: c.Append('out->additional_properties' The additional properties can't have ...
8 years, 9 months ago (2012-02-28 22:23:40 UTC) #2
not at google - send to devlin
This is so cool. I haven't looked at the tests yet, will do now. http://codereview.chromium.org/9491002/diff/3001/build/json_schema_compile.gypi ...
8 years, 9 months ago (2012-02-28 22:41:17 UTC) #3
not at google - send to devlin
comments on tests http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/test/additionalProperties.json File tools/json_schema_compiler/test/additionalProperties.json (right): http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/test/additionalProperties.json#newcode5 tools/json_schema_compiler/test/additionalProperties.json:5: ], seems unnecessary actually, what about ...
8 years, 9 months ago (2012-02-29 03:06:30 UTC) #4
calamity
https://chromiumcodereview.appspot.com/9491002/diff/3001/build/json_schema_compile.gypi File build/json_schema_compile.gypi (right): https://chromiumcodereview.appspot.com/9491002/diff/3001/build/json_schema_compile.gypi#newcode28 build/json_schema_compile.gypi:28: '<(api_gen_dir)/any.h', On 2012/02/28 22:41:17, kalman wrote: > alphabetical order ...
8 years, 9 months ago (2012-03-01 04:47:09 UTC) #5
not at google - send to devlin
just 1 more I promise... http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/any_helper.py File tools/json_schema_compiler/any_helper.py (right): http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/any_helper.py#newcode16 tools/json_schema_compiler/any_helper.py:16: dst: Type* On 2012/02/28 ...
8 years, 9 months ago (2012-03-01 07:09:37 UTC) #6
calamity
https://chromiumcodereview.appspot.com/9491002/diff/12001/tools/json_schema_compiler/model.py File tools/json_schema_compiler/model.py (right): https://chromiumcodereview.appspot.com/9491002/diff/12001/tools/json_schema_compiler/model.py#newcode118 tools/json_schema_compiler/model.py:118: self.properties[prop.unix_name] = prop On 2012/03/01 07:09:37, kalman wrote: > ...
8 years, 9 months ago (2012-03-01 11:05:51 UTC) #7
not at google - send to devlin
Well there are a few comments that you seem to have not noticed (e.g. deleting ...
8 years, 9 months ago (2012-03-01 11:36:20 UTC) #8
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/9491002/diff/3001/tools/json_schema_compiler/model.py File tools/json_schema_compiler/model.py (right): https://chromiumcodereview.appspot.com/9491002/diff/3001/tools/json_schema_compiler/model.py#newcode84 tools/json_schema_compiler/model.py:84: self.functions[function.name] = function On 2012/03/01 04:47:09, calamity wrote: ...
8 years, 9 months ago (2012-03-01 19:02:37 UTC) #9
calamity
http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/code.py File tools/json_schema_compiler/code.py (right): http://codereview.chromium.org/9491002/diff/3001/tools/json_schema_compiler/code.py#newcode84 tools/json_schema_compiler/code.py:84: Unaffected by code.Substitute(). On 2012/03/01 07:09:37, kalman wrote: > ...
8 years, 9 months ago (2012-03-01 23:58:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9491002/22036
8 years, 9 months ago (2012-03-01 23:59:11 UTC) #11
commit-bot: I haz the power
Can't apply patch for file chrome/common/extensions/api/fileBrowserPrivate.json. While running patch -p1 --forward --force; patching file chrome/common/extensions/api/fileBrowserPrivate.json ...
8 years, 9 months ago (2012-03-01 23:59:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9491002/17005
8 years, 9 months ago (2012-03-02 02:07:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9491002/16009
8 years, 9 months ago (2012-03-02 02:57:39 UTC) #14
commit-bot: I haz the power
Try job failure for 9491002-16009 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-02 03:28:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9491002/16012
8 years, 9 months ago (2012-03-02 04:35:24 UTC) #16
commit-bot: I haz the power
Try job failure for 9491002-16012 (retry) on mac_rel for step "ui_tests". It's a second try, ...
8 years, 9 months ago (2012-03-02 06:25:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/9491002/16012
8 years, 9 months ago (2012-03-02 06:31:57 UTC) #18
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 15:05:28 UTC) #19
Change committed as 124643

Powered by Google App Engine
This is Rietveld 408576698