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

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

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 class {{struct.name}} { 1 class {{struct.name}} {
2 public: 2 public:
3 typedef internal::{{struct.name}}_Data Data; 3 typedef internal::{{struct.name}}_Data Data;
4 4
5 {#--- Enums #} 5 {#--- Enums #}
6 {%- for enum in struct.enums -%} 6 {%- for enum in struct.enums -%}
7 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %} 7 {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
8 {{enum_def()|indent(2)}} 8 {{enum_def()|indent(2)}}
9 {%- endfor %} 9 {%- endfor %}
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }; 78 };
79 79
80 private: 80 private:
81 friend class mojo::internal::WrapperHelper<{{struct.name}}>; 81 friend class mojo::internal::WrapperHelper<{{struct.name}}>;
82 82
83 struct Wrap {}; 83 struct Wrap {};
84 {{struct.name}}(Wrap, const Data* data) : data_(data) {} 84 {{struct.name}}(Wrap, const Data* data) : data_(data) {}
85 85
86 const Data* data_; 86 const Data* data_;
87 }; 87 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698