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

Side by Side Diff: mojo/public/tools/bindings/generators/js_templates/union_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 {%- macro union_def(union) %} 1 {%- macro union_def(union) %}
2 function {{union.name}}(value) { 2 function {{union.name}}(value) {
3 this.initDefault_(); 3 this.initDefault_();
4 this.initValue_(value); 4 this.initValue_(value);
5 } 5 }
6 6
7 {{tags(union)}} 7 {{tags(union)}}
8 8
9 {{union.name}}.prototype.initDefault_ = function() { 9 {{union.name}}.prototype.initDefault_ = function() {
10 this.$data = null; 10 this.$data = null;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 {%- set name = union.name ~ '.' ~ field.name %} 137 {%- set name = union.name ~ '.' ~ field.name %}
138 case {{union.name}}.Tags.{{field.name}}: 138 case {{union.name}}.Tags.{{field.name}}:
139 {{validate_union_field(field, "data_offset", name)}} 139 {{validate_union_field(field, "data_offset", name)}}
140 break; 140 break;
141 {%- endfor %} 141 {%- endfor %}
142 } 142 }
143 143
144 return validator.validationError.NONE; 144 return validator.validationError.NONE;
145 }; 145 };
146 {%- endmacro %} 146 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698