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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl

Issue 1127293003: Update mojo sdk to rev f84766d3b6420b7cf6a113d9d65d73cb5fe18d90 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 5 years, 7 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
Index: third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
index bb0b99d381f3e415576cf6e0ed9305b3740f6a08..2a229327b71301a4ce0658a902cd70a9cfbdb455 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
@@ -6,6 +6,9 @@
import mojo_bindings.descriptor as _descriptor
import mojo_bindings.reflection as _reflection
+{% if interfaces %}
+import mojo_bindings.interface_reflection as _interface_reflection
+{% endif %}
{% if imports %}
{% for import in imports %}
@@ -34,9 +37,10 @@ class {{struct|name}}(object):
{% for interface in interfaces %}
class {{interface|name}}(object):
- __metaclass__ = _reflection.MojoInterfaceType
+ __metaclass__ = _interface_reflection.MojoInterfaceType
DESCRIPTOR = {
'fully_qualified_name': '{% if namespace %}{{namespace|replace(".","::")}}::{% endif %}{{interface|fully_qualified_name|replace(".","::")}}',
+ 'version': {{interface.version}},
'methods': [
{% for method in interface.methods %}
{

Powered by Google App Engine
This is Rietveld 408576698