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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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_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 %}
-};

Powered by Google App Engine
This is Rietveld 408576698