Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
deleted file mode 100644 |
index 25b39b30d0e5622390e3010e77dd2168224d8a57..0000000000000000000000000000000000000000 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
+++ /dev/null |
@@ -1,41 +0,0 @@ |
- |
-class {{struct.name}} { |
- public: |
- typedef internal::{{struct.name}}_Data Data_; |
- |
-{#--- Constants #} |
-{%- for constant in struct.constants %} |
- static const {{constant.kind|cpp_pod_type}} {{constant.name}}; |
-{%- endfor %} |
-{#--- Enums #} |
-{%- for enum in struct.enums -%} |
-{% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} |
- {{enum_def()|indent(2)}} |
-{%- endfor %} |
- static {{struct.name}}Ptr New(); |
- |
- template <typename U> |
- static {{struct.name}}Ptr From(const U& u) { |
- return mojo::TypeConverter<{{struct.name}}Ptr, U>::Convert(u); |
- } |
- |
- template <typename U> |
- U To() const { |
- return mojo::TypeConverter<U, {{struct.name}}>::Convert(*this); |
- } |
- |
- {{struct.name}}(); |
- ~{{struct.name}}(); |
- |
-{% if struct|is_cloneable_kind %} |
- {{struct.name}}Ptr Clone() const; |
-{%- endif %} |
- bool Equals(const {{struct.name}}& other) const; |
- |
-{#--- Getters #} |
-{% for field in struct.fields %} |
-{%- set type = field.kind|cpp_wrapper_type %} |
-{%- set name = field.name %} |
- {{type}} {{name}}; |
-{%- endfor %} |
-}; |