| Index: tools/json_schema_compiler/h_generator.py
|
| diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
|
| index ba7c5ca133a27b4a4ebc5e87089b5a77071a143c..34c343b1568edc20f6429327cf91532c2ff88180 100644
|
| --- a/tools/json_schema_compiler/h_generator.py
|
| +++ b/tools/json_schema_compiler/h_generator.py
|
| @@ -159,7 +159,8 @@ class HGenerator(object):
|
| if prop.description:
|
| c.Comment(prop.description)
|
| c.Append('%s %s;' % (
|
| - self._cpp_type_generator.GetType(prop, wrap_optional=True),
|
| + self._cpp_type_generator.GetType(prop, wrap_optional=True,
|
| + serialized=True),
|
| prop.unix_name))
|
| c.Append()
|
| return c
|
| @@ -183,7 +184,8 @@ class HGenerator(object):
|
| c.Append('typedef std::vector<%(item_type)s> %(classname)s;')
|
| c.Substitute({'classname': classname, 'item_type':
|
| self._cpp_type_generator.GetType(type_.item_type,
|
| - wrap_optional=True)})
|
| + wrap_optional=True,
|
| + serialized=True)})
|
| elif type_.type_ == PropertyType.STRING:
|
| if type_.description:
|
| c.Comment(type_.description)
|
| @@ -292,7 +294,7 @@ class HGenerator(object):
|
| [choice.type_.name for choice in prop.choices.values()]))
|
| c.Concat(self._GeneratePropertyStructures(prop.choices.values()))
|
| elif prop.type_ == PropertyType.ENUM:
|
| - enum_name = self._cpp_type_generator.GetType(prop)
|
| + enum_name = self._cpp_type_generator.GetType(prop, serialized=True)
|
| c.Concat(self._GenerateEnumDeclaration(
|
| enum_name,
|
| prop,
|
| @@ -337,7 +339,7 @@ class HGenerator(object):
|
| if param.description:
|
| c.Comment(param.description)
|
| declaration_list.append('const %s' % cpp_util.GetParameterDeclaration(
|
| - param, self._cpp_type_generator.GetType(param)))
|
| + param, self._cpp_type_generator.GetType(param, serialized=True)))
|
| c.Append('scoped_ptr<base::ListValue> Create(%s);' %
|
| ', '.join(declaration_list))
|
| return c
|
|
|