| Index: third_party/WebKit/Source/platform/inspector_protocol/TypeBuilder_h.template
|
| diff --git a/third_party/WebKit/Source/platform/inspector_protocol/TypeBuilder_h.template b/third_party/WebKit/Source/platform/inspector_protocol/TypeBuilder_h.template
|
| index 1bbc6197d496adcaf974c209dfb610c7a9818558..83310065e0f0dab291dcff167ed7177dd062dfbb 100644
|
| --- a/third_party/WebKit/Source/platform/inspector_protocol/TypeBuilder_h.template
|
| +++ b/third_party/WebKit/Source/platform/inspector_protocol/TypeBuilder_h.template
|
| @@ -214,16 +214,21 @@ public:
|
| ) = 0;
|
| };
|
| {% endif %}
|
| - virtual void {{command.name}}(ErrorString*
|
| + virtual void {{command.name}}(
|
| + {%- if not("async" in command) -%}
|
| + ErrorString*
|
| + {%- endif -%}
|
| {%- for parameter in command.parameters -%}
|
| + {%- if (not loop.first) or not("async" in command) -%}, {% endif -%}
|
| {%- if "optional" in parameter -%}
|
| - , const Maybe<{{resolve_type(parameter).raw_type}}>& in_{{parameter.name}}
|
| + const Maybe<{{resolve_type(parameter).raw_type}}>& in_{{parameter.name}}
|
| {%- else -%}
|
| - , {{resolve_type(parameter).pass_type}} in_{{parameter.name}}
|
| + {{resolve_type(parameter).pass_type}} in_{{parameter.name}}
|
| {%- endif -%}
|
| {%- endfor -%}
|
| {%- if "async" in command -%}
|
| - , std::unique_ptr<{{command.name | to_title_case}}Callback> callback
|
| + {%- if command.parameters -%}, {% endif -%}
|
| + std::unique_ptr<{{command.name | to_title_case}}Callback> callback
|
| {%- else -%}
|
| {%- for parameter in command.returns -%}
|
| {%- if "optional" in parameter -%}
|
|
|