Created
June 30, 2015 01:10
-
-
Save abarth/0456f7b17f32a40d505c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl | |
index 39c17cc..03e5408 100644 | |
--- a/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl | |
+++ b/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl | |
@@ -40,8 +40,8 @@ interface {{method|interface_response_name}} extends org.chromium.mojo.bindings. | |
{{flags(method.response_parameters, is_parameter)}} | |
{%- endmacro -%} | |
-{%- macro flags(has_response_parameters, is_parameter) -%} | |
-{%- if not has_response_parameters -%} | |
+{%- macro flags(response_parameters, is_parameter) -%} | |
+{%- if response_parameters is None -%} | |
org.chromium.mojo.bindings.MessageHeader.NO_FLAG | |
{%- elif is_parameter: -%} | |
org.chromium.mojo.bindings.MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment