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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.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/module.cc.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
index ae217e83fa6ec1446e4259230c1d2f0475c86a9d..b8f5b7db70d3b1c883beaac35ae41752692460fd 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
@@ -91,12 +91,6 @@ const uint32_t {{method_name}} = {{method.ordinal}};
} // namespace internal
-{#--- Enums #}
-{%- from "enum_macros.tmpl" import is_valid_enum_def -%}
-{%- for enum in enums -%}
- {{is_valid_enum_def(enum, class_name='')}}
-{%- endfor %}
-
{#--- Struct Constants #}
{%- for struct in structs %}
{%- for constant in struct.constants %}

Powered by Google App Engine
This is Rietveld 408576698