| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Function.returns a type not a property.
R=yoz@chromium.org
Review URL: https://codereview.chromium.org/12176002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180560 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
not pretty print it. This reduces the size of the chrome binary by 300kB.
R=asargent@chromium.org
BUG=171423
Review URL: https://chromiumcodereview.appspot.com/12051030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178389 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other elements due to them being parsed into an unordered dict (uses an OrderedDict instead).
The API documentation now displays items in their original IDL order.
BUG=168965
Review URL: https://chromiumcodereview.appspot.com/11826020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177664 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
templates
so that code can be shared between declarativeWebRequest and future declarative APIs.
TBR=ben
Review URL: https://chromiumcodereview.appspot.com/11572061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177313 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> 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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
the "runtime" namespace rather than "extension" in docs and samples.
R=asargent@chromium.org
TBR=dgozman@chromium.org
Review URL: https://codereview.chromium.org/11745015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175527 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
and rename it preview.py because previewserver.py is a tautology.
Review URL: https://codereview.chromium.org/11649039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174401 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This lets us have identifiers that match reserved words.
BUG=166268
Review URL: https://chromiumcodereview.appspot.com/11565053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173332 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
TBR=cduvall@chromium.org
Review URL: https://codereview.chromium.org/11413090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168816 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
The JSON schema compiler was ignoring comments on callback functions. Now
callback functions and their parameters can have comments.
BUG=158459
Review URL: https://chromiumcodereview.appspot.com/11342033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165613 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an object
The docs server was not showing the parameters of a function that was a property
of an object. This is now fixed.
BUG=156673
Review URL: https://codereview.chromium.org/11195058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164224 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out Python works that way.
Adding __eq__ fixed a problem in server2 where == was failing on re-pickled
data types. We're now using != too, so we need to define __ne__.
Also, bump the version of server2 so that I can upload it now.
TBR=cduvall@chromium.org
Review URL: https://codereview.chromium.org/11029043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160329 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a separate patch with just the server code for showing properties of
properties. HandlebarDictGenerator now generates IDs for all API items, which
are used in the table of contents.
Template changes are here: https://codereview.chromium.org/10985071/
BUG=151866
Review URL: https://codereview.chromium.org/11018003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160300 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some IDL comments that spanned multiple lines looked weird because all the text
ran together. For an example see:
http://developer.chrome.com/trunk/apps/app.window.html#method-create
This also fixes doubly-escaped quotes in the IDL files.
BUG=149143, 146977
Review URL: https://chromiumcodereview.appspot.com/10986018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158732 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
If an enumerated string is a type, the possible values were not shown.
BUG=146301
Review URL: https://chromiumcodereview.appspot.com/10907151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158475 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
Tests now can be run from any directory.
Review URL: https://chromiumcodereview.appspot.com/10916217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156043 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
This is my best guess as to what's going wrong. Python thinks the objects aren't
equal, so check the names instead.
Review URL: https://chromiumcodereview.appspot.com/10910024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154346 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) IsEnumOrEnumRef is refactored to be in the cpp_type_generator.
2) Refactored GeneratePopulatePropertyFromValue to call private methods (it was getting to be unwieldy.)
3) Refactored most of the unittests to put values on the stack instead of scoped_ptrs.
4) Implemented Enums as types. Enums all have the ENUMERATION_NONE.
BUG=141940
Review URL: https://chromiumcodereview.appspot.com/10828407
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153849 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: https://chromiumcodereview.appspot.com/10869083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153633 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, there aren't any APIs that use filtered events, but webNavigation
will soon.
BUG=142560
Review URL: https://chromiumcodereview.appspot.com/10828403
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152490 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based off: https://chromiumcodereview.appspot.com/10834329
This adds a few things to speed up performance:
1. Caches items in memcache from FileSystemCache.
2. Caches everything primarily in memory, and falls back on memcache.
3. 5 minute timeout on stats.
4. Cron job to update memcache every 5 minutes (just enough time to update expired stats).
5. Memcache uses set_multi_async and get_multi_async where applicable.
I have an instance at chrome-docs-test.appspot.com, but the cron job is only running
every 10 minutes so I don't go over quota.
After the cron job is run, even samples.html is fast!
Review URL: https://chromiumcodereview.appspot.com/10829348
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152472 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=121174
Review URL: https://chromiumcodereview.appspot.com/10809094
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151595 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For problem description and other info please see the BUG page.
This is for ListValue.
BUG=138946
TEST=N/A (no fix & no new feature)
TBR=jar,zelidrag,scottbyer,mpcomplete,darin,achuith,sky,estade,atwilson,grt,thakis,jamesr,hans,sadrul,pastarmovj
Review URL: https://chromiumcodereview.appspot.com/10837044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149819 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
TBR=cduvall@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10837073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149623 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=129311
TEST=unittest
Review URL: https://chromiumcodereview.appspot.com/10677015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149553 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Currently supports string->int, string->int64, and int->string.
BUG=139076
Review URL: https://chromiumcodereview.appspot.com/10825029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149302 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change splits devtools_api.json into a separate file per namespace so that
JSON schema compiler can parse it. Without that, HandlebarDictGenerator can't
access the API, and the docs server can't render it
BUG=131095
Review URL: https://chromiumcodereview.appspot.com/10797039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149291 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Also re-factored the recently landed Debugger api (I believe it's the only API to have compiled events, so far)
BUG=138767
Review URL: https://chromiumcodereview.appspot.com/10796114
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148878 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For problem description and other info please see the BUG page.
This is for DictionaryValue.
BUG=138946
TEST=N/A (no fix & no new feature)
TBR=jar scottbyer achuith agl mnissler davemoore garykac akalin hans bulach phajdan.jr jamesr
Review URL: https://chromiumcodereview.appspot.com/10834004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148833 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
if Pygments isn't installed, and escape HTML (especially obvious with generics)
when syntax highlighting is turned off.
Review URL: https://chromiumcodereview.appspot.com/10833024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148482 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, the compiler raised an exception when a function was used as a property,
which happens whenever a function is passed as a parameter.
The solution presented here is to create a bool has_<function_name> to allow
the hand-written C++ code to know whether or not the function was passed in.
BUG=138850
TEST=function_as_parameter
Review URL: https://chromiumcodereview.appspot.com/10824002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148480 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=133636
TEST=choices_unittest.cc
Review URL: https://chromiumcodereview.appspot.com/10790040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147904 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Callbacks no longer appear when they shouldn't.
Types now have events.
Page_capture api now has the onChange event.
Step 1 appears in the table of contents for the permissions API.
BUG=138167
TEST=
Review URL: https://chromiumcodereview.appspot.com/10800047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147890 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
"git cl dcommit" went crazy and appears to have reverted the 3
previous commits at the same time as committing my change. (This
might be due to race conditions with running "git fetch"
concurrently.)
TBR=mseaborn@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10815024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147601 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
We should be using the full path for nacl_log.h, because it shouldn't
be installed into the NaCl SDK.
BUG=http://code.google.com/p/nativeclient/issues/detail?id=2908
TEST=build
Review URL: https://chromiumcodereview.appspot.com/10804034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147594 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
for easier use by C++.
Review URL: https://chromiumcodereview.appspot.com/10700194
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147591 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Docs now handle functions with return values. See extension.html.
BUG=131095
Review URL: https://chromiumcodereview.appspot.com/10809028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147583 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Blocked on Issue 10701012
Waiting for JSON Schema Compiler to support events serialization.
BUG=133777
TEST=null
Review URL: https://chromiumcodereview.appspot.com/10701014
Patch from Christopher Hebert <hebert.christopherj@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147358 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Without this, code that looks for the "callback" in a Function, and is
interested in whether it's optional (e.g. the new docs server) won't work.
TBR=mtytel@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10780027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146957 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
callbacks
Compiles events to objects that look similar to this:
namespace OnObjectFired {
struct SomeObject {
~SomeObject();
SomeObject();
enum State {
STATE_FOO,
STATE_BAR,
STATE_BAZ,
};
static scoped_ptr<Value> CreateEnumValue(State state);
State state;
// Returns a new DictionaryValue representing the serialized form of this
// SomeObject object. Passes ownership to caller.
scoped_ptr<DictionaryValue> ToValue() const;
private:
DISALLOW_COPY_AND_ASSIGN(SomeObject);
};
Value* Create(const SomeObject& some_object);
};
BUG=133757, 135237
TEST=
Review URL: https://chromiumcodereview.appspot.com/10701012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146899 0039d316-1c4b-4281-b951-d872f2087c98
|