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

Side by Side Diff: Source/bindings/templates/union.cpp

Issue 1056423002: [bindings] Include copyright block in generated code for consistency. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/bindings/templates/union.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'conversions.cpp' import declare_enum_validation_variable %} 1 {% from 'conversions.cpp' import declare_enum_validation_variable %}
2 // Copyright 2014 The Chromium Authors. All rights reserved. 2 {% include 'copyright_block.txt' %}
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
7
8 #include "config.h" 3 #include "config.h"
9 #include "{{header_filename}}" 4 #include "{{header_filename}}"
10 5
11 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} 6 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %}
12 {% macro assign_and_return_if_hasinstance(member) %} 7 {% macro assign_and_return_if_hasinstance(member) %}
13 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) { 8 if (V8{{member.type_name}}::hasInstance(v8Value, isolate)) {
14 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca l<v8::Object>::Cast(v8Value)); 9 {{member.cpp_local_type}} cppValue = V8{{member.type_name}}::toImpl(v8::Loca l<v8::Object>::Cast(v8Value));
15 impl.set{{member.type_name}}(cppValue); 10 impl.set{{member.type_name}}(cppValue);
16 return; 11 return;
17 } 12 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 187
193 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState ) 188 {{container.cpp_class}} NativeValueTraits<{{container.cpp_class}}>::nativeValue( v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState )
194 { 189 {
195 {{container.cpp_class}} impl; 190 {{container.cpp_class}} impl;
196 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState); 191 V8{{container.cpp_class}}::toImpl(isolate, value, impl, exceptionState);
197 return impl; 192 return impl;
198 } 193 }
199 194
200 {% endfor %} 195 {% endfor %}
201 } // namespace blink 196 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/union.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698