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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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
OLDNEW
1 {%- from "enum_macros.tmpl" import is_valid_enum_def %} 1 {%- from "enum_macros.tmpl" import is_valid_enum_def %}
2 2
3 {#--- Enums #} 3 {#--- Enums #}
4 {%- for enum in struct.enums -%} 4 {%- for enum in struct.enums -%}
5 {{is_valid_enum_def(enum, class_name=struct.name)}} 5 {{is_valid_enum_def(enum, class_name=struct.name)}}
6 {%- endfor %} 6 {%- endfor %}
7 7
8 // static 8 // static
9 {{struct.name}}Ptr {{struct.name}}::New() { 9 {{struct.name}}Ptr {{struct.name}}::New() {
10 {{struct.name}}Ptr rv; 10 {{struct.name}}Ptr rv;
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 {% endif %} 36 {% endif %}
37 37
38 bool {{struct.name}}::Equals(const {{struct.name}}& other) const { 38 bool {{struct.name}}::Equals(const {{struct.name}}& other) const {
39 {%- for field in struct.fields %} 39 {%- for field in struct.fields %}
40 if (!mojo::internal::ValueTraits<{{field.kind|cpp_wrapper_type}}>::Equals(this ->{{field.name}}, other.{{field.name}})) 40 if (!mojo::internal::ValueTraits<{{field.kind|cpp_wrapper_type}}>::Equals(this ->{{field.name}}, other.{{field.name}}))
41 return false; 41 return false;
42 {%- endfor %} 42 {%- endfor %}
43 return true; 43 return true;
44 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698