Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: tools/json_schema_compiler/model.py

Issue 10800047: Extension Docs Server Version 2: Various fixes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ok now it should work Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 42d38b05e94453e863de0a71fd631931809df8a1..5453e11c40a11a6abe9425d5df2a8e997ab726b5 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -64,6 +64,7 @@ class Type(object):
- |description| the description of the type (if provided)
- |properties| a map of property unix_names to their model.Property
- |functions| a map of function names to their model.Function
+ - |events| a map of event names to their model.Event
- |from_client| indicates that instances of the Type can originate from the
users of generated code, such as top-level types and function results
- |from_json| indicates that instances of the Type can originate from the
@@ -94,6 +95,7 @@ class Type(object):
self.parent = parent
self.instance_of = json.get('isInstanceOf', None)
_AddFunctions(self, json)
+ _AddEvents(self, json)
_AddProperties(self, json, from_json=True, from_client=True)
additional_properties_key = 'additionalProperties'
« no previous file with comments | « chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698