|
|
JSON Schema Compiler: Add event compilation and allow multiple parameters to 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=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146899
Total comments: 1
Total comments: 1
Total comments: 32
Total comments: 30
Total comments: 5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+729 lines, -257 lines) |
Patch |
 |
M |
chrome/browser/chromeos/extensions/file_browser_handler_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/alarms/alarms_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative/declarative_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/dns/dns_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/permissions/permissions_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/record/record_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/storage.json
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/cc_generator.py
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+47 lines, -38 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/cpp_type_generator.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/cpp_type_generator_test.py
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/h_generator.py
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+54 lines, -28 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/model.py
|
View
|
1
2
3
4
5
6
|
10 chunks |
+26 lines, -43 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/model_test.py
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/schema_bundle_generator.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/additional_properties_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/any.json
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/arrays_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+20 lines, -21 lines |
0 comments
|
Download
|
 |
A + |
tools/json_schema_compiler/test/callbacks.json
|
View
|
1
2
3
4
5
|
2 chunks |
+31 lines, -20 lines |
0 comments
|
Download
|
 |
A |
tools/json_schema_compiler/test/callbacks_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/choices.json
|
View
|
1
2
3
4
5
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/choices_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/crossref_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/enums.json
|
View
|
1
2
3
4
5
|
2 chunks |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/enums_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/json_schema_compiler/test/forbidden.json
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/idl_schemas_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/json_schema_compiler_tests.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/objects.json
|
View
|
1
2
3
4
5
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/objects_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+21 lines, -10 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/simple_api.json
|
View
|
1
2
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/test/simple_api_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+50 lines, -12 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|