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

Issue 10639020: Switch the downloads API over to IDL/json_schema_compiler (Closed)

Created:
8 years, 6 months ago by benjhayden
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Switch the downloads API over to IDL/json_schema_compiler Modify ppapi/generators/idl_parser.py to 0: not require a file-level comment (but generate the same parse tree structure), 1: actually support ext_attrs (modifiers) for dictionaries, and 2: support [ext_attr=(symbols|values)]. Modify json_schema_compiler to 0: use "base::Value" and any_helper.ANY_CLASS instead of Value and Any in order to support ArrayBuffers named |value| or |any|, 1: actually test that namespaces and dictionaries are sorted correctly, 2: fix HGenerator._FieldDependencyOrder(), 3: support [inline_doc] on dictionaries and enums, 4: support descriptions on enums, 5: support documentation_permissions_required, 6: support [legalValues=(values...)]. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146201

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : merge #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 14

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : merge #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : merge #

Patch Set 16 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+969 lines, -1991 lines) Patch
M chrome/browser/extensions/api/downloads/downloads_api.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -169 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +298 lines, -427 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/downloads.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +399 lines, -0 lines 0 comments Download
D chrome/common/extensions/api/downloads.json View 1 chunk +0 lines, -1208 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/build/directory.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/extensions/downloads.html View 1 2 3 4 5 6 7 8 9 10 11 12 22 chunks +22 lines, -22 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/common/extensions_api_resources.grd View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/generators/idl_parser.py View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/cc_generator.py View 1 2 3 4 5 6 7 8 16 chunks +51 lines, -50 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator_test.py View 2 chunks +10 lines, -6 lines 0 comments Download
M tools/json_schema_compiler/h_generator.py View 8 chunks +15 lines, -15 lines 0 comments Download
M tools/json_schema_compiler/idl_schema.py View 1 2 3 4 5 6 7 8 7 chunks +69 lines, -51 lines 0 comments Download
M tools/json_schema_compiler/idl_schema_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -2 lines 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M tools/json_schema_compiler/schema_util.py View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/test/idl_basics.idl View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
benjhayden
PTAL
8 years, 5 months ago (2012-06-28 14:42:23 UTC) #1
noelallen1
Changes to the idl_parser.py and idl_basics.py LGTM.
8 years, 5 months ago (2012-07-02 17:56:00 UTC) #2
asargent_no_longer_on_chrome
LGTM with a couple of minor issues to fix http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc File chrome/browser/extensions/api/downloads/downloads_api.cc (right): http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc#newcode364 chrome/browser/extensions/api/downloads/downloads_api.cc:364: ...
8 years, 5 months ago (2012-07-02 23:43:48 UTC) #3
not at google - send to devlin
json schema compiler lgtm
8 years, 5 months ago (2012-07-04 13:28:47 UTC) #4
benjhayden
Antony, PTAL. http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc File chrome/browser/extensions/api/downloads/downloads_api.cc (right): http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc#newcode364 chrome/browser/extensions/api/downloads/downloads_api.cc:364: static base::LazyInstance<SortTypeMap> sorter_types = On 2012/07/02 23:43:48, ...
8 years, 5 months ago (2012-07-09 20:18:09 UTC) #5
asargent_no_longer_on_chrome
http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc File chrome/browser/extensions/api/downloads/downloads_api.cc (right): http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc#newcode364 chrome/browser/extensions/api/downloads/downloads_api.cc:364: static base::LazyInstance<SortTypeMap> sorter_types = On 2012/07/09 20:18:09, benjhayden_chromium wrote: ...
8 years, 5 months ago (2012-07-09 22:09:43 UTC) #6
benjhayden
I'll commit tomorrow morning if there are no further comments. http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc File chrome/browser/extensions/api/downloads/downloads_api.cc (right): http://codereview.chromium.org/10639020/diff/21002/chrome/browser/extensions/api/downloads/downloads_api.cc#newcode364 ...
8 years, 5 months ago (2012-07-10 18:32:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10639020/27021
8 years, 5 months ago (2012-07-11 19:36:06 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 21:03:28 UTC) #9
Change committed as 146201

Powered by Google App Engine
This is Rietveld 408576698