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 |
}""") |