| Index: third_party/inspector_protocol/templates/TypeBuilder_cpp.template
|
| diff --git a/third_party/inspector_protocol/templates/TypeBuilder_cpp.template b/third_party/inspector_protocol/templates/TypeBuilder_cpp.template
|
| index 14b55b979485f10d3d851f64ca4710cb70c671ec..fa0929fc4d00b4781e63d3b0fe53749047c17e26 100644
|
| --- a/third_party/inspector_protocol/templates/TypeBuilder_cpp.template
|
| +++ b/third_party/inspector_protocol/templates/TypeBuilder_cpp.template
|
| @@ -19,6 +19,7 @@ const char Metainfo::domainName[] = "{{domain.domain}}";
|
| const char Metainfo::commandPrefix[] = "{{domain.domain}}.";
|
| const char Metainfo::version[] = "{{domain.version}}";
|
| {% for type in domain.types %}
|
| + {% if not protocol.generate_type(domain.domain, type.id) %}{% continue %} {% endif %}
|
| {% if "enum" in type %}
|
|
|
| namespace {{type.id}}Enum {
|
| @@ -337,9 +338,9 @@ DispatchResponse::Status DispatcherImpl::{{command.name}}(int callId, std::uniqu
|
| &out_{{parameter.name}}
|
| {%- endfor %}
|
| {% endif %});
|
| - {% if "returns" in command %}
|
| if (response.status() == DispatchResponse::kFallThrough)
|
| return response.status();
|
| + {% if "returns" in command %}
|
| std::unique_ptr<protocol::DictionaryValue> result = DictionaryValue::create();
|
| if (response.status() == DispatchResponse::kSuccess) {
|
| {% for parameter in command.returns %}
|
|
|