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

Unified Diff: tools/json_schema_compiler/cc_generator.py

Issue 12041098: Initial commit of the Dart Chrome Extension APIs generators (Closed) Base URL: http://git.chromium.org/chromium/src.git@file_path_bugfix
Patch Set: Added wrappers for more types of functions (including events, callbacks and lists) Created 7 years, 11 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/cc_generator.py
diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py
index fff945762c379dd46c55d3e04446731444d33966..feebda0936683d68e9dc873ad593513a0cff2035 100644
--- a/tools/json_schema_compiler/cc_generator.py
+++ b/tools/json_schema_compiler/cc_generator.py
@@ -11,6 +11,13 @@ import sys
import util_cc_helper
class CCGenerator(object):
+ def __init__(self, type_generator):
+ self._type_generator = type_generator
+
+ def Generate(self, namespace):
+ return _Generator(namespace, self._type_generator).Generate()
+
+class _Generator(object):
"""A .cc generator for a namespace.
"""
def __init__(self, namespace, cpp_type_generator):

Powered by Google App Engine
This is Rietveld 408576698