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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp

Issue 1550393002: Rename conversions.cpp to utilities.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 {% from 'conversions.cpp' import declare_enum_validation_variable %} 1 {% from 'utilities.cpp' import declare_enum_validation_variable %}
2 {% include 'copyright_block.txt' %} 2 {% include 'copyright_block.txt' %}
3 #include "{{v8_original_class}}.h" 3 #include "{{v8_original_class}}.h"
4 4
5 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} 5 {% for filename in cpp_includes if filename != '%s.h' % v8_class %}
6 #include "{{filename}}" 6 #include "{{filename}}"
7 {% endfor %} 7 {% endfor %}
8 8
9 namespace blink { 9 namespace blink {
10 10
11 {% from 'conversions.cpp' import v8_value_to_local_cpp_value %} 11 {% from 'utilities.cpp' import v8_value_to_local_cpp_value %}
12 void {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, {{ cpp_class}}& impl, ExceptionState& exceptionState) 12 void {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, {{ cpp_class}}& impl, ExceptionState& exceptionState)
13 { 13 {
14 if (isUndefinedOrNull(v8Value)) 14 if (isUndefinedOrNull(v8Value))
15 return; 15 return;
16 if (!v8Value->IsObject()) { 16 if (!v8Value->IsObject()) {
17 {% if use_permissive_dictionary_conversion %} 17 {% if use_permissive_dictionary_conversion %}
18 // Do nothing. 18 // Do nothing.
19 return; 19 return;
20 {% else %} 20 {% else %}
21 exceptionState.throwTypeError("cannot convert to dictionary."); 21 exceptionState.throwTypeError("cannot convert to dictionary.");
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 {{cpp_class}} NativeValueTraits<{{cpp_class}}>::nativeValue(v8::Isolate* isolate , v8::Local<v8::Value> value, ExceptionState& exceptionState) 126 {{cpp_class}} NativeValueTraits<{{cpp_class}}>::nativeValue(v8::Isolate* isolate , v8::Local<v8::Value> value, ExceptionState& exceptionState)
127 { 127 {
128 {{cpp_class}} impl; 128 {{cpp_class}} impl;
129 {{v8_class}}::toImpl(isolate, value, impl, exceptionState); 129 {{v8_class}}::toImpl(isolate, value, impl, exceptionState);
130 return impl; 130 return impl;
131 } 131 }
132 132
133 } // namespace blink 133 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698