Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl

Issue 526303003: mojo: java bindings rename Message subclasses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/java/bindings/src/org/chromium/mojo/bindings/Struct.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl
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 e23d8d9dbc9432111c4688faa716b697efed66e3..bda2ef2d8e4e61e3ff47c06762beeb537e854cef 100644
--- a/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl
@@ -93,8 +93,8 @@ public static final {{manager_class(interface, client, True)}} MANAGER =
{% if (interface|has_method_with_response and with_response) or
(interface|has_method_without_response and not with_response) %}
try {
- org.chromium.mojo.bindings.MessageWithHeader messageWithHeader =
- message.asMojoMessage();
+ org.chromium.mojo.bindings.ServiceMessage messageWithHeader =
+ message.asServiceMessage();
org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader();
if (!header.validateHeader({{flags(with_response, True)}})) {
return false;
@@ -234,8 +234,8 @@ class {{interface|name}}_Internal {
@Override
public boolean accept(org.chromium.mojo.bindings.Message message) {
try {
- org.chromium.mojo.bindings.MessageWithHeader messageWithHeader =
- message.asMojoMessage();
+ org.chromium.mojo.bindings.ServiceMessage messageWithHeader =
+ message.asServiceMessage();
org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader();
if (!header.validateHeader({{method|method_ordinal_name}},
{{flags_for_method(method, False)}})) {
@@ -271,7 +271,7 @@ class {{interface|name}}_Internal {
{% for param in method.response_parameters %}
response.{{param|name}} = {{param|name}};
{% endfor %}
- org.chromium.mojo.bindings.MessageWithHeader message =
+ org.chromium.mojo.bindings.ServiceMessage message =
response.serializeWithHeader(
mCore,
new org.chromium.mojo.bindings.MessageHeader(
« no previous file with comments | « mojo/public/java/bindings/src/org/chromium/mojo/bindings/Struct.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698