0
Commit Graph

10 Commits

Author SHA1 Message Date
Avi Drissman
dfd8808526 Update copyright headers in testing/, tools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I3a8a7b150e7bd64690534727150646081df50439
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900697
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047644}
2022-09-15 20:11:09 +00:00
DHNishi@gmail.com
baed4d3ddf Clean up JSON Schema Compiler's pylint errors.
Review URL: https://chromiumcodereview.appspot.com/23549025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222389 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-10 23:14:04 +00:00
kalman@chromium.org
c1411679a8 Fix up how the JSON Schema compiler decides whether to include or forward
declare references to C++ types in other files. This fixed up a problem where
references as part of required properties would cause compilation errors,
specifically for the use of tabs.InjectDetails from the webview API.


BUG=171726


Review URL: https://chromiumcodereview.appspot.com/11953121

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179232 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-29 00:56:27 +00:00
kalman@chromium.org
242d5e7aaf Overhaul JSON Schema Compiler to support a number of features required to
support the full range of JSON/IDL features, improve the interface of generated
code, and improve generated code formatting, notably:
 * Make "choices" generate a struct containing each possible type, rather than
   multiple fields with different names plus and enum. This makes it possible
   to embed choices inside containers - notably within arrays (as in bug).
   It also improves optional choices detection.
 * Remove the Any C++ type generated by "any", and model it as a base::Value.
 * Make "additionalProperties" generated a std::map with the actual types as
   values, rather than just a DictionaryValue forcing callers to extract types.
 * Fix enum naming, it was unnecessarily including the namespace as a prefix.

R=yoz@chromium.org
BUG=162044

Review URL: https://codereview.chromium.org/11827026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177361 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-17 06:50:31 +00:00
cduvall@chromium.org
b2fad3f166 Extensions Docs Server: Preserve JSON declaration order in extensions documentation
All JSON is now parsed using an OrderedDict, so the order of properties is preserved.
The order was also being messed up within the JSON Schema Compiler, because
lists were being converted to (unordered) dictionaries.

BUG=146649, 151867

Review URL: https://chromiumcodereview.appspot.com/11079010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168702 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-20 02:13:24 +00:00
asargent@chromium.org
f0233ffea6 Move chrome.appWindow to chrome.app.window.
BUG=134573
TEST=In platform apps, you should be able to call all the same methods, etc.
via the new chrome.app.window namespace that you used to be able to with
chrome.appWindow.

Review URL: https://chromiumcodereview.appspot.com/10659021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147710 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-20 20:14:50 +00:00
benjhayden@chromium.org
9d27318a0a 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...)].

Review URL: https://chromiumcodereview.appspot.com/10639020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146201 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-11 21:03:26 +00:00
bryeung@chromium.org
9f01b0b825 Make all extension api types fully qualified.
BUG=123073
TEST= (unit_tests --gtest_filter=ExtensionAPI) && (browser_tests --gtest_filter=ExtensionApiTest)

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136296

Review URL: https://chromiumcodereview.appspot.com/10367002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136588 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-11 17:00:01 +00:00
yzshen@chromium.org
6ead498671 Revert 136296 - Make all extension api types fully qualified.
BUG=123073
TEST= (unit_tests --gtest_filter=ExtensionAPI) && (browser_tests --gtest_filter=ExtensionApiTest)

Review URL: https://chromiumcodereview.appspot.com/10367002

TBR=bryeung@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10381089

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136323 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-10 16:48:46 +00:00
bryeung@chromium.org
120513402d Make all extension api types fully qualified.
BUG=123073
TEST= (unit_tests --gtest_filter=ExtensionAPI) && (browser_tests --gtest_filter=ExtensionApiTest)

Review URL: https://chromiumcodereview.appspot.com/10367002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136296 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-10 14:38:07 +00:00