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

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: 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
Index: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 33c0bc56192d30a786fedc8d563ef2efe2a54e41..13b297c113e9a6e15a4edc800d9fa2344d8f5c1d 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
@@ -93,6 +94,7 @@ class Type(object):
self.from_client = True
self.parent = parent
_AddFunctions(self, json)
+ _AddEvents(self, json)
_AddProperties(self, json, from_json=True, from_client=True)
additional_properties_key = 'additionalProperties'

Powered by Google App Engine
This is Rietveld 408576698