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

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

Issue 1508613003: Require an explicit ServiceName annotation for interfaces in Python. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/python/mojo_bindings/interface_reflection.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
diff --git a/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl b/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
index 9d57600a893ad584e444a259c37181fb20ef8eb4..c60f1fd1462fe570cd67b70ffd0a9db54fd837c6 100644
--- a/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
+++ b/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
@@ -47,7 +47,7 @@ class {{union|name}}(object):
class {{interface|name}}(object):
__metaclass__ = _interface_reflection.MojoInterfaceType
DESCRIPTOR = {
- 'fully_qualified_name': '{% if namespace %}{{namespace|replace(".","::")}}::{% endif %}{{interface|fully_qualified_name|replace(".","::")}}',
+ 'fully_qualified_name': {% if interface.service_name %}'{{interface.service_name}}'{% else %}None{% endif %},
'version': {{interface.version}},
'methods': [
{% for method in interface.methods %}
« no previous file with comments | « mojo/public/python/mojo_bindings/interface_reflection.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698