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

Unified Diff: tools/json_schema_compiler/cpp_type_generator.py

Issue 197873009: Support scoped types in PPAPI IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 6 years, 9 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/cpp_type_generator.py
diff --git a/tools/json_schema_compiler/cpp_type_generator.py b/tools/json_schema_compiler/cpp_type_generator.py
index e0e82789ccfee369dc87faad13eb0d971b6d525c..cb95206feb2f9c393369340900004396d8bef66d 100644
--- a/tools/json_schema_compiler/cpp_type_generator.py
+++ b/tools/json_schema_compiler/cpp_type_generator.py
@@ -99,7 +99,8 @@ class CppTypeGenerator(object):
if self._default_namespace is ref_type.namespace:
cpp_type = ref_type.name
else:
- cpp_type = '%s::%s' % (ref_type.namespace.unix_name, ref_type.name)
+ cpp_type = '%s::%s' % (ref_type.namespace.unix_name,
+ cpp_util.Classname(ref_type.name))
elif type_.property_type == PropertyType.BOOLEAN:
cpp_type = 'bool'
elif type_.property_type == PropertyType.INTEGER:

Powered by Google App Engine
This is Rietveld 408576698