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

Unified Diff: mojo/public/bindings/pylib/parse/mojo_translate.py

Issue 184813004: Create response_parameters as part of mojom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up mojom files Created 6 years, 10 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/bindings/pylib/parse/mojo_parser.py ('k') | mojo/public/bindings/tests/math_calculator.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/pylib/parse/mojo_translate.py
diff --git a/mojo/public/bindings/pylib/parse/mojo_translate.py b/mojo/public/bindings/pylib/parse/mojo_translate.py
index 4ba0d142d65632e922b5d652ff525fa6bbdef9cd..c8d322fd42fbcf53b5d1b3621a05bb87d9bb1432 100755
--- a/mojo/public/bindings/pylib/parse/mojo_translate.py
+++ b/mojo/public/bindings/pylib/parse/mojo_translate.py
@@ -81,9 +81,12 @@ class MojomBuilder():
if methods:
for method in methods:
if method[0] == 'METHOD':
- out.append({'name': method[1],
- 'parameters': self.MapParameters(method[2]),
- 'ordinal': self.MapOrdinal(method[3])})
+ method_dict = {'name': method[1],
+ 'parameters': self.MapParameters(method[2]),
+ 'ordinal': self.MapOrdinal(method[3])}
+ if method[4] != None:
+ method_dict['response_parameters'] = self.MapParameters(method[4])
+ out.append(method_dict)
return out
« no previous file with comments | « mojo/public/bindings/pylib/parse/mojo_parser.py ('k') | mojo/public/bindings/tests/math_calculator.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698