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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
index a68154fac660b0ac22d934deae62aa0bfbdfe8a6..133ac6fb3adcbfd70e2cc8279a48a626b8a17dc0 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
@@ -1,10 +1,3 @@
-{%- from "enum_macros.tmpl" import is_valid_enum_def %}
-
-{#--- Enums #}
-{%- for enum in struct.enums -%}
- {{is_valid_enum_def(enum, class_name=struct.name)}}
-{%- endfor %}
-
// static
{{struct.name}}Ptr {{struct.name}}::New() {
{{struct.name}}Ptr rv;

Powered by Google App Engine
This is Rietveld 408576698