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

Unified Diff: mojo/tools/generate_java_callback_interfaces.py

Issue 607933002: mojo: Fix java generator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix findbugs and emptu package. 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/tools/bindings/generators/mojom_java_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/generate_java_callback_interfaces.py
diff --git a/mojo/tools/generate_java_callback_interfaces.py b/mojo/tools/generate_java_callback_interfaces.py
index eb0f738c703c9e62ddf6c8231a7a83a7d63919f0..257a5403e07abcee50b2d0e8dbb82bb812e4d37d 100644
--- a/mojo/tools/generate_java_callback_interfaces.py
+++ b/mojo/tools/generate_java_callback_interfaces.py
@@ -5,14 +5,14 @@ import sys
CALLBACK_TEMPLATE = ("""
/**
- * A generic %d-argument callback.
- *
- * %s
- */
+ * A generic %d-argument callback.
+ *
+ * %s
+ */
interface Callback%d<%s> {
/**
- * Call the callback.
- */
+ * Call the callback.
+ */
public void call(%s);
}
""")
@@ -31,6 +31,16 @@ package org.chromium.mojo.bindings;
* Contains a generic interface for callbacks.
*/
public interface Callbacks {
+
+ /**
+ * A generic callback.
+ */
+ interface Callback0 {
+ /**
+ * Call the callback.
+ */
+ public void call();
+ }
%s
}""")
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_java_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698