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

Unified Diff: mojo/tools/generate_java_callback_interfaces.py

Issue 443293003: Mojo: Add PRESUBMIT.py to mojo/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/pylib/mojom_tests/support/find_files.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 fdf1f74d8a98f4e2adfbe6079561d0bc5b25bd58..eb0f738c703c9e62ddf6c8231a7a83a7d63919f0 100644
--- a/mojo/tools/generate_java_callback_interfaces.py
+++ b/mojo/tools/generate_java_callback_interfaces.py
@@ -35,14 +35,14 @@ public interface Callbacks {
}""")
def GenerateCallback(nb_args):
- params = '\n * '.join(
- ['@param <T%d> the type of argument %d.' % (i+1, i+1)
- for i in xrange(nb_args)])
- template_parameters = ', '.join(['T%d' % (i+1) for i in xrange(nb_args)])
- callback_parameters = ', '.join(['T%d arg%d' % ((i+1), (i+1))
- for i in xrange(nb_args)])
- return CALLBACK_TEMPLATE % (nb_args, params, nb_args, template_parameters,
- callback_parameters)
+ params = '\n * '.join(
+ ['@param <T%d> the type of argument %d.' % (i+1, i+1)
+ for i in xrange(nb_args)])
+ template_parameters = ', '.join(['T%d' % (i+1) for i in xrange(nb_args)])
+ callback_parameters = ', '.join(['T%d arg%d' % ((i+1), (i+1))
+ for i in xrange(nb_args)])
+ return CALLBACK_TEMPLATE % (nb_args, params, nb_args, template_parameters,
+ callback_parameters)
def main():
parser = argparse.ArgumentParser(
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698