Index: third_party/mojo/src/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl |
index 39c17cc9b535690406a0debde0b6cea97d62466d..320abeb9a29f801c4b42d70357e0ead728331d13 100644 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl |
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl |
@@ -36,14 +36,14 @@ interface {{method|interface_response_name}} extends org.chromium.mojo.bindings. |
{%- endif -%} |
{%- endmacro -%} |
-{%- macro flags_for_method(method, is_parameter) -%} |
-{{flags(method.response_parameters, is_parameter)}} |
+{%- macro flags_for_method(method, is_request) -%} |
+{{flags(method.response_parameters != None, is_request)}} |
{%- endmacro -%} |
-{%- macro flags(has_response_parameters, is_parameter) -%} |
-{%- if not has_response_parameters -%} |
+{%- macro flags(use_response_flag, is_request) -%} |
+{%- if not use_response_flag -%} |
org.chromium.mojo.bindings.MessageHeader.NO_FLAG |
-{%- elif is_parameter: -%} |
+{%- elif is_request: -%} |
org.chromium.mojo.bindings.MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG |
{%- else -%} |
org.chromium.mojo.bindings.MessageHeader.MESSAGE_IS_RESPONSE_FLAG |