| Index: third_party/inspector_protocol/templates/TypeBuilder_h.template
|
| diff --git a/third_party/inspector_protocol/templates/TypeBuilder_h.template b/third_party/inspector_protocol/templates/TypeBuilder_h.template
|
| index 2edf737ee7ae2d18b642c1e482a3242867fd543b..66cdebf14d8f6de06fe28e94db8e9e739ea6a4bb 100644
|
| --- a/third_party/inspector_protocol/templates/TypeBuilder_h.template
|
| +++ b/third_party/inspector_protocol/templates/TypeBuilder_h.template
|
| @@ -71,7 +71,7 @@ namespace {{param.name | to_title_case}}Enum {
|
| {% set type_def = type_definition(domain.domain + "." + type.id)%}
|
|
|
| // {{type.description}}
|
| -class {{config.protocol.export_macro}} {{type.id}} {% if type.exported %}: public API::{{type.id}} {% endif %}{
|
| +class {{config.protocol.export_macro}} {{type.id}} : public Serializable{% if type.exported %}, public API::{{type.id}}{% endif %}{
|
| PROTOCOL_DISALLOW_COPY({{type.id}});
|
| public:
|
| static std::unique_ptr<{{type.id}}> parse(protocol::Value* value, ErrorSupport* errors);
|
| @@ -96,7 +96,8 @@ public:
|
| void {{"set" | to_method_case}}{{property.name | to_title_case}}({{resolve_type(property).pass_type}} value) { m_{{property.name}} = {{resolve_type(property).to_rvalue % "value"}}; }
|
| {% endfor %}
|
|
|
| - std::unique_ptr<protocol::DictionaryValue> serialize() const;
|
| + std::unique_ptr<protocol::DictionaryValue> serializeValue() const;
|
| + String serialize() { return serializeValue()->toJSONString(); }
|
| std::unique_ptr<{{type.id}}> clone() const;
|
| {% if type.exported %}
|
| {{config.exported.string_out}} toJSONString() const override;
|
|
|