summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/compiler.py
Commit message (Collapse)AuthorAgeFilesLines
* Generate all extension schema namespaces as "api" and instead vary the ↵kalman2015-07-231-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | generated bundle names. At the moment the 3 modules that use extension API schemas, those in extensions/common/api, chrome/common/extensions/api, and extensions/shell/api, are generated with different C++ namespaces: "core_api", "api", and "shell::api" respectively. This is a pointless distinction to make since as far as JS is concerned they must all go on the window.chrome object, therefore namespace conflicts are impossible. It just ends up adding code noise. The only problem it solves is that all bundle compiles are generated to the same name, "GeneratedSchemas" and "GeneratedFunctionRegistry". This patch solves that a different way, by adding a JSON schema compiler option to give those generated classes a prefix such that they are "GeneratedSchemas", "ChromeGeneratedSchemas", and "ShellGeneratedSchemas" respectively. This lets us to a global substitution from "core_api" to just "api". R=rockot@chromium.org, dpranke@chromium.org TBR=ben@chromium.org Review URL: https://codereview.chromium.org/1226353004 Cr-Commit-Position: refs/heads/master@{#340119}
* [Extensions API] Remove inline enumsrdevlin.cronin2015-04-061-1/+1
| | | | | | | | | | | Remove all inlined enums from extension APIs. BUG=472279 TBR=derat@chromium.org (mechanical changes to chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc and chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc) Review URL: https://codereview.chromium.org/1055673002 Cr-Commit-Position: refs/heads/master@{#323912}
* Generate externs automatically from json/idl filesrdevlin.cronin2015-03-241-1/+6
| | | | | | | | | | Continued from https://codereview.chromium.org/511943003/. BUG=469920 Review URL: https://codereview.chromium.org/1006373003 Cr-Commit-Position: refs/heads/master@{#322016}
* Remove dart generator code from json schema compiler.benwells2015-01-211-12/+2
| | | | | | | | | | This isn't used by anything. BUG=448704 Review URL: https://codereview.chromium.org/843213003 Cr-Commit-Position: refs/heads/master@{#312343}
* Cleanup most pylint errors in json_schema_compiler.thestig2015-01-151-2/+2
| | | | | | Review URL: https://codereview.chromium.org/849103005 Cr-Commit-Position: refs/heads/master@{#311761}
* - Add support for references in different paths in apis.lfg2014-08-291-8/+30
| | | | | | | | | | - Move ImageDetails from chrome to extensions. BUG=352290 Review URL: https://codereview.chromium.org/487533005 Cr-Commit-Position: refs/heads/master@{#292567}
* Reland 596ff54335b2a1b393af10657bc4945114f3beed - Split API bundle ↵yoz2014-08-271-14/+25
| | | | | | | | | | | | | | | | | | | generation steps * Fixed in this version: dependencies for *_api_registration on *_api. Split bundle generation steps so that API registration is generated in browser, not common. We now have schema generation, schema bundle generation, and schema bundle registration generation; the last of these is generated in a separate build target and output to browser rather than common. Fix a couple of dangling gyp issues also. BUG=405226 TBR=scottmg@chromium.org,sky@chromium.org Review URL: https://codereview.chromium.org/513633002 Cr-Commit-Position: refs/heads/master@{#292090}
* Revert "Split bundle generation steps so that API registration is generated ↵Albert J. Wong2014-08-271-25/+14
| | | | | | | | | | | | | | | in browser, not common." Causing build failure in Android due to failed include for extensions/common/api/runtime.h. This reverts commit 3b70ef14be986a3252428cc6d9553bf2c69deb70. BUG=none TBR=yoz Review URL: https://codereview.chromium.org/506253003 Cr-Commit-Position: refs/heads/master@{#292059}
* Split bundle generation steps so that API registration is generated in ↵yoz2014-08-271-14/+25
| | | | | | | | | | | | | | | browser, not common. We now have schema generation, schema bundle generation, and schema bundle registration generation; the last of these is generated in a separate build target and output to browser rather than common. Fix a couple of dangling gyp issues also. BUG=405226 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/489153003 Cr-Commit-Position: refs/heads/master@{#292057}
* Make the root_namespace argument to json_schema_compiler.gypi a stringkalman@chromium.org2014-08-051-20/+20
| | | | | | | | | | | | pattern rather than a prefix. BUG=370952 R=yoz@chromium.org TBR=dmazzoni@chromium.org Review URL: https://codereview.chromium.org/437883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287488 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the Pepper IDL generator from JSON schema compiler.sammc@chromium.org2014-07-291-8/+1
| | | | | | Review URL: https://codereview.chromium.org/422783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286118 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium side changes to add the ledger API.rkc@chromium.org2014-05-121-7/+18
| | | | | | | | | R=isherman@chromium.org, kalman@chromium.org BUG=346488 Review URL: https://codereview.chromium.org/232183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269820 0039d316-1c4b-4281-b951-d872f2087c98
* Add an implementation path option to json_schema_compilerrockot@chromium.org2014-03-051-3/+8
| | | | | | | | | | | This replaces the hard-coded chrome/browser/extensions/api path with a command-line option (impl_dir). BUG=349019 Review URL: https://codereview.chromium.org/183763032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254995 0039d316-1c4b-4281-b951-d872f2087c98
* Generate ax enums from idl.dtseng@chromium.org2014-02-091-9/+2
| | | | | | | | | | This cl lays the groundwork for sharing all ax enums between platfrom accessibility and extension accessibility. BUG= Review URL: https://codereview.chromium.org/143473003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249993 0039d316-1c4b-4281-b951-d872f2087c98
* Add a Pepper IDL generator to the JSON schema compiler.sammc@chromium.org2013-12-121-1/+8
| | | | | | | | BUG=326867 Review URL: https://codereview.chromium.org/101483003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240297 0039d316-1c4b-4281-b951-d872f2087c98
* JSON schema compiler: remove SOURCE_BASE_PATH hack from bundle generator.yoz@chromium.org2013-11-201-1/+2
| | | | | | Review URL: https://codereview.chromium.org/77063004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236308 0039d316-1c4b-4281-b951-d872f2087c98
* Make SchemaLoader independent of current working directory.msimonides@opera.com2013-09-301-5/+4
| | | | | | | | | | | | | | | | The SchemaLoader looks for schema files in the current directory. This isn't very robust and may cause problems for other products than Chromium if they run the script from a GYP file in another directory. The SchemaLoader is supplied two arguments now: the path to API files relative to the root path (for use in #includes) and the regular path to API files (for file access). BUG= Review URL: https://codereview.chromium.org/23534063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225977 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up JSON Schema Compiler's pylint errors.DHNishi@gmail.com2013-09-101-5/+2
| | | | | | Review URL: https://chromiumcodereview.appspot.com/23549025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222389 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a typo (missing space) in JSON Schema Compiler's help prompt.DHNishi@gmail.com2013-08-301-1/+1
| | | | | | | | | TBR=kalman@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/23707013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220678 0039d316-1c4b-4281-b951-d872f2087c98
* Lazily load extension API schemascduvall@chromium.org2013-03-231-51/+11
| | | | | | | | | | | | | Now all the extensions API schemas are loaded lazily, to avoid the memory overhead of loading them upfront. Also, the API feature system now can use the URL to determine availability of the API. APIs can now be checked for availability separately, without needing to load all the APIs. Review URL: https://chromiumcodereview.appspot.com/12522004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190058 0039d316-1c4b-4281-b951-d872f2087c98
* JSON Compiler should convert the namespace value in lowerCamelCase to ↵ncj674@motorola.com2013-02-231-2/+2
| | | | | | | | | | unix_name for the referenced dependency. BUG=159265 Review URL: https://chromiumcodereview.appspot.com/12283025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184263 0039d316-1c4b-4281-b951-d872f2087c98
* Added unit tests for the Dart Chrome.* API wrappers, testing the Dart output ↵sashab@chromium.org2013-02-221-50/+60
| | | | | | | | | | | | | | | | | | | | mode from JSON Schema Compiler. The physical tests I've added are initial dummies - kalman, please take a look at the *structure* of the test setup. It feels like there is a lot of repetition of test names, but I like using python's unittest framework so it runs as a presubmit check. Any hints? I have a lot more tests I'd like to add. Note that there needs to be functionality to disable tests, e.g. there will need to be some tests that will fail from the IDL return value type bug (https://code.google.com/p/chromium/issues/detail?id=170837). Thanks, Sasha Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183709 Review URL: https://chromiumcodereview.appspot.com/12218151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183931 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 183709nhiroki@chromium.org2013-02-211-59/+50
| | | | | | | | | | | | | | | | | | | | | > Added unit tests for the Dart Chrome.* API wrappers, testing the Dart output mode from JSON Schema Compiler. > > The physical tests I've added are initial dummies - kalman, please take a look at the *structure* of the test setup. It feels like there is a lot of repetition of test names, but I like using python's unittest framework so it runs as a presubmit check. Any hints? > > I have a lot more tests I'd like to add. > > Note that there needs to be functionality to disable tests, e.g. there will need to be some tests that will fail from the IDL return value type bug (https://code.google.com/p/chromium/issues/detail?id=170837). > > Thanks, > > Sasha > > Review URL: https://chromiumcodereview.appspot.com/12218151 TBR=sashab@chromium.org Review URL: https://codereview.chromium.org/12320030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183751 0039d316-1c4b-4281-b951-d872f2087c98
* Added unit tests for the Dart Chrome.* API wrappers, testing the Dart output ↵sashab@chromium.org2013-02-211-50/+59
| | | | | | | | | | | | | | | | | | mode from JSON Schema Compiler. The physical tests I've added are initial dummies - kalman, please take a look at the *structure* of the test setup. It feels like there is a lot of repetition of test names, but I like using python's unittest framework so it runs as a presubmit check. Any hints? I have a lot more tests I'd like to add. Note that there needs to be functionality to disable tests, e.g. there will need to be some tests that will fail from the IDL return value type bug (https://code.google.com/p/chromium/issues/detail?id=170837). Thanks, Sasha Review URL: https://chromiumcodereview.appspot.com/12218151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183709 0039d316-1c4b-4281-b951-d872f2087c98
* generated_api.h should have its body generated into generated_api.ccMHX348@motorola.com2013-02-121-0/+1
| | | | | | | | | BUG=172050 Review URL: https://chromiumcodereview.appspot.com/12181005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181848 0039d316-1c4b-4281-b951-d872f2087c98
* Initial commit of the Dart Chrome Extension APIs generatorssashab@chromium.org2013-02-061-145/+126
| | | | | | | | | | | 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. Review URL: https://chromiumcodereview.appspot.com/12041098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180845 0039d316-1c4b-4281-b951-d872f2087c98
* IDL generated extensions code only generate foo_api.h when requiredcalamity@chromium.org2013-01-251-1/+1
| | | | | | | | | BUG=148545 Review URL: https://chromiumcodereview.appspot.com/12035070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178751 0039d316-1c4b-4281-b951-d872f2087c98
* Run the JSON Schema Compiler's bundle compilation on JSON files. Previously itkalman@chromium.org2013-01-111-3/+8
| | | | | | | | | | | | | was only run on IDL files. Clean up all the code which that simplifies. TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org BUG=141318 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176015 Review URL: https://codereview.chromium.org/11747025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176236 0039d316-1c4b-4281-b951-d872f2087c98
* Revert revision 176015ricow@chromium.org2013-01-101-8/+3
| | | | | | | | | | | | | | | | | This is a manual revert, drover did not like the deleted files > Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it > was only run on IDL files. Clean up all the code which that simplifies. > > TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org > BUG=141318 > > Review URL: https://chromiumcodereview.appspot.com/11747025 TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org Review URL: https://codereview.chromium.org/11778097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176054 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 176047ricow@chromium.org2013-01-101-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | > Revert 176015 > > Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it > > was only run on IDL files. Clean up all the code which that simplifies. > > > > TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org > > BUG=141318 > > > > Review URL: https://chromiumcodereview.appspot.com/11747025 > > This seems to be causing complation failures on release win builders: > http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702 > > TBR=kalman@chromium.org > Review URL: https://codereview.chromium.org/11826048 Drover messed up this revert, reverting it TBR=ricow@chromium.org Review URL: https://codereview.chromium.org/11778096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176051 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 176015ricow@chromium.org2013-01-101-8/+3
| | | | | | | | | | | | | | | | | | > Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it > was only run on IDL files. Clean up all the code which that simplifies. > > TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org > BUG=141318 > > Review URL: https://chromiumcodereview.appspot.com/11747025 This seems to be causing complation failures on release win builders: http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702 TBR=kalman@chromium.org Review URL: https://codereview.chromium.org/11826048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176047 0039d316-1c4b-4281-b951-d872f2087c98
* Run the JSON Schema Compiler's bundle compilation on JSON files. Previously itkalman@chromium.org2013-01-101-3/+8
| | | | | | | | | | | was only run on IDL files. Clean up all the code which that simplifies. TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org BUG=141318 Review URL: https://chromiumcodereview.appspot.com/11747025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176015 0039d316-1c4b-4281-b951-d872f2087c98
* Update the JSON Schema Compiler to take dependencies of the form type:name.mitchellwrosen@chromium.org2012-07-031-0/+7
| | | | | | | | | BUG=135224 Review URL: https://chromiumcodereview.appspot.com/10700039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145235 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for 'nocompile' to IDL schema compiler.asargent@chromium.org2012-05-241-1/+1
| | | | | | | | | | | | | | | The json schema stuff already has this support, to skip generation of C++ code for certain functions. Doing the same thing for IDL is slightly complicated by the fact that we still want to generate JSON for functions marked nocompile. BUG=129080 TEST=includes unit and browser tests Review URL: https://chromiumcodereview.appspot.com/10435003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138707 0039d316-1c4b-4281-b951-d872f2087c98
* Files generated by the JSON schema compiler are named incorrectlycduvall@chromium.org2012-05-121-5/+23
| | | | | | | | | | | | | | | Files are now named like "file_name.h" instead of "fileName.h" or "file.name.h", and all the JSON files have been renamed. BUG=125669 TEST=All previous tests for the renamed files Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135077 Review URL: https://chromiumcodereview.appspot.com/10272021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136747 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135077 - Files generated by the JSON schema compiler are named ↵tfarina@chromium.org2012-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | incorrectly Files are now named like "file_name.h" instead of "fileName.h" or "file.name.h" BUG=125669 TEST=All previous tests for the renamed files This broke Linux and Linux64: g++: out/Release/obj/gen/chrome/common/extensions/api/experimental.fontSettings.cc: No such file or directory g++: no input files make: *** [out/Release/obj.target/api/gen/chrome/common/extensions/api/experimental.fontSettings.o] Error 1 Review URL: http://codereview.chromium.org/10272021 TBR=cduvall@chromium.org Review URL: https://chromiumcodereview.appspot.com/10348005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135081 0039d316-1c4b-4281-b951-d872f2087c98
* Files generated by the JSON schema compiler are named incorrectlycduvall@chromium.org2012-05-031-3/+3
| | | | | | | | | | | | Files are now named like "file_name.h" instead of "fileName.h" or "file.name.h" BUG=125669 TEST=All previous tests for the renamed files Review URL: http://codereview.chromium.org/10272021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135077 0039d316-1c4b-4281-b951-d872f2087c98
* JSON schema compiler can't handle strings as typescduvall@chromium.org2012-05-011-2/+2
| | | | | | | | | | | | | | JSON schema compiler now supports having strings as types. Similar to http://crbug.com/122075 BUG=124771 TEST=cpp_type_generator_test.py Review URL: http://codereview.chromium.org/10206034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134674 0039d316-1c4b-4281-b951-d872f2087c98
* Make json_schema_compiler resolve type names via resolution rules.gdk@chromium.org2012-03-271-0/+2
| | | | | | | | | | | | | | | | Instead of sharing a single namespace internally for types, makes json_schema_compiler treat types as their fully-qualified selfs. This allows two different namespaces to have types with the same name, and to be able to reference the others' types by a fully-qualified name. This change also causes namespaces to not be added twice to their CppTypeGenerators. BUG=119954 TEST=none Review URL: http://codereview.chromium.org/9834088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129251 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dependence on .json files for IDL-specified extensions/apps APIsasargent@chromium.org2012-03-211-10/+24
| | | | | | | | | | | | | | This is an incremental step towards fully IDL-specified API bindings. This patch adds code which generates JSON based on IDL for the purpose of exposing bindings to javascript. BUG=119137 TEST=Code should compile and existing tests should pass. Review URL: http://codereview.chromium.org/9774001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127908 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply 127159 (http://codereview.chromium.org/9666059) plus important fixes.miket@chromium.org2012-03-191-23/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor extension_function_dispatcher to extract ExtensionFunctionRegistry. This allows us to generate an additional code block that takes an ExtensionFunctionRegistry and asks it to register generated API functions. Then switch DnsResolve over to get registered this way. Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that. Fixes since original 127159: - change name of build rule to gen_bundle_api - actually add per-file dependencies to .gyp (this was why clean builds failed) - change 'outputs' to match the emitted filename, fixing a needless rebuild problem. - split the top-level build action that was a part of json_schema_compile.gypi, and include it only in api.gyp, thus fixing the problem where json_schema_compiler_tests.gyp was asking it to create outputs in the tools/json_schema_compiler_test directory, again causing needless work during the build process. BUG=none (essential plumbing work) TEST=same as before. Review URL: https://chromiumcodereview.appspot.com/9716003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127555 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127159 - Refactor extension_function_dispatcher to extract ↵miket@chromium.org2012-03-161-72/+23
| | | | | | | | | | | | | | | | | | ExtensionFunctionRegistry. This allows us to generate an additional code block that takes an ExtensionFunctionRegistry and asks it to register generated API functions. Then switch DnsResolve over to get registered this way. Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that. BUG=none (essential plumbing work) TEST=same as before Review URL: http://codereview.chromium.org/9666059 TBR=miket@chromium.org Review URL: https://chromiumcodereview.appspot.com/9701105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127188 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor extension_function_dispatcher to extract ExtensionFunctionRegistry. ↵miket@chromium.org2012-03-161-23/+72
| | | | | | | | | | | | | | | This allows us to generate an additional code block that takes an ExtensionFunctionRegistry and asks it to register generated API functions. Then switch DnsResolve over to get registered this way. Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that. BUG=none (essential plumbing work) TEST=same as before Review URL: http://codereview.chromium.org/9666059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127159 0039d316-1c4b-4281-b951-d872f2087c98
* - Extend compiler.py to recognize .idl files.miket@chromium.org2012-03-071-4/+12
| | | | | | | | | | | | | | | | - 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 Review URL: http://codereview.chromium.org/9600050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125300 0039d316-1c4b-4281-b951-d872f2087c98
* Allow comments in extension config files.cduvall@chromium.org2012-03-031-5/+3
| | | | | | | | | | | | | | | | | | Added a script to remove comments from the extension api JSON files before processing for the extension docs. We will now be able to comment in the JSON files, and they should be much easier to read. Also added the license header to all the JSON files. BUG=114233 TEST=Put comments in one of the JSON files and remake the docs. They will make with no problems. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124660 Review URL: http://codereview.chromium.org/9447090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124878 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 124660 - Allow comments in extension config files.yzshen@chromium.org2012-03-021-3/+5
| | | | | | | | | | | | | | | | | | | Added a script to remove comments from the extension api JSON files before processing for the extension docs. We will now be able to comment in the JSON files, and they should be much easier to read. Also added the license header to all the JSON files. BUG=114233 TEST=Put comments in one of the JSON files and remake the docs. They will make with no problems. Review URL: http://codereview.chromium.org/9447090 TBR=cduvall@chromium.org Review URL: https://chromiumcodereview.appspot.com/9582013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124675 0039d316-1c4b-4281-b951-d872f2087c98
* Allow comments in extension config files.cduvall@chromium.org2012-03-021-5/+3
| | | | | | | | | | | | | | | | Added a script to remove comments from the extension api JSON files before processing for the extension docs. We will now be able to comment in the JSON files, and they should be much easier to read. Also added the license header to all the JSON files. BUG=114233 TEST=Put comments in one of the JSON files and remake the docs. They will make with no problems. Review URL: http://codereview.chromium.org/9447090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124660 0039d316-1c4b-4281-b951-d872f2087c98
* json_schema_compiler: any, additionalProperties, functions on typescalamity@chromium.org2012-03-021-2/+2
| | | | | | | | | | | | Add support and tests for more json types. Also fixed a number of API jsons. BUG= TEST= Review URL: http://codereview.chromium.org/9491002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124643 0039d316-1c4b-4281-b951-d872f2087c98
* json_schema_compiler: Added wider support for OBJECTs and ENUMs. Used the ↵calamity@chromium.org2012-02-281-10/+13
| | | | | | | | | | | | new 'dependencies' property in the jsons. Refactored to avoid code duplication. Added tests for new features and where tests were lacking. BUG= TEST=unit_tests --gtest_filter=JsonSchemaCompiler* Review URL: http://codereview.chromium.org/9456007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123909 0039d316-1c4b-4281-b951-d872f2087c98
* Add enum support to json_schema_compilercalamity@chromium.org2012-02-221-4/+5
| | | | | | | | | | | | json_schema_compiler: add support for enum properties and tests for enums BUG= TEST= Review URL: http://codereview.chromium.org/9424045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123026 0039d316-1c4b-4281-b951-d872f2087c98