Index: mojo/public/bindings/generators/js_templates/interface_definition.tmpl |
diff --git a/mojo/public/bindings/generators/js_templates/interface_definition.tmpl b/mojo/public/bindings/generators/js_templates/interface_definition.tmpl |
index fd8ea47c5b05310270c893c0a3f5c7f9ba38b867..fd5e27a43c384576cd8f6b95e00dd2cbf7164b41 100644 |
--- a/mojo/public/bindings/generators/js_templates/interface_definition.tmpl |
+++ b/mojo/public/bindings/generators/js_templates/interface_definition.tmpl |
@@ -44,3 +44,10 @@ params.{{parameter.name}}{% if not loop.last %}, {% endif %} |
return false; |
} |
}; |
+ |
+{#--- Enums #} |
+{%- from "enum_definition.tmpl" import enum_def -%} |
+{% for enum in interface.enums %} |
+{{ enum_def("%sProxy.%s"|format(interface.name, enum.name), enum)}} |
+ {{interface.name}}Stub.{{enum.name}} = {{interface.name}}Proxy.{{enum.name}}; |
abarth-chromium
2013/12/20 04:40:24
Do we want these to be the same object or two diff
Matt Perry
2014/01/06 19:55:11
Is there a difference?
|
+{%- endfor %} |