Adds support for the "choices" and "any" types to json_schema_compiler, as well
commitcfe484905085bc55742da39f792a571615cb419b
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 15 Feb 2012 14:52:32 +0000 (15 14:52 +0000)
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 15 Feb 2012 14:52:32 +0000 (15 14:52 +0000)
treed655642171deba8dcbb57d5cdbe9693ee2e42dd8
parent498e0a6eb258f10ad76039c3028d0f7a4ad365e4
Adds support for the "choices" and "any" types to json_schema_compiler, as well
as miscellaneous improvements to get at least 3 more schema files compiling:
windows, tabs, and the in-progress experimental.declarative.

For description of the generator, see http://codereview.chromium.org/9114036/

BUG=
TEST=

Review URL: http://codereview.chromium.org/9309044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122082 0039d316-1c4b-4281-b951-d872f2087c98
26 files changed:
build/json_schema_compile.gypi
chrome/browser/extensions/api/permissions/permissions_api.cc
chrome/browser/extensions/extension_tabs_module.cc
chrome/browser/extensions/extension_tabs_module_constants.cc
chrome/browser/extensions/extension_tabs_module_constants.h
chrome/browser/extensions/permissions_updater.cc
chrome/common/extensions/api/api.gyp
chrome/common/extensions/api/permissions.json
chrome/common/extensions/api/systemPrivate.json
chrome/common/extensions/api/tabs.json
tools/json_schema_compiler/cc_generator.py
tools/json_schema_compiler/code.py
tools/json_schema_compiler/compiler.py
tools/json_schema_compiler/cpp_type_generator.py
tools/json_schema_compiler/cpp_type_generator_test.py
tools/json_schema_compiler/cpp_util.py
tools/json_schema_compiler/cpp_util_test.py
tools/json_schema_compiler/h_generator.py
tools/json_schema_compiler/model.py
tools/json_schema_compiler/model_test.py
tools/json_schema_compiler/test/permissions.json
tools/json_schema_compiler/test/tabs.json
tools/json_schema_compiler/test/windows.json
tools/json_schema_compiler/util.cc
tools/json_schema_compiler/util.h
tools/json_schema_compiler/util_cc_helper.py [new file with mode: 0644]