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

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

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 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 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 #include "{{v8_class_or_partial}}.h" 4 #include "{{v8_class_or_partial}}.h"
5 5
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %}
7 #include "{{filename}}" 7 #include "{{filename}}"
8 {% endfor %} 8 {% endfor %}
9 9
10 namespace blink { 10 namespace blink {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 {% endif %} 280 {% endif %}
281 281
282 {% if has_cross_origin_named_enumerator %} 282 {% if has_cross_origin_named_enumerator %}
283 void crossOriginNamedEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) { 283 void crossOriginNamedEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) {
284 Vector<String> names; 284 Vector<String> names;
285 for (const auto& attribute : kCrossOriginAttributeTable) 285 for (const auto& attribute : kCrossOriginAttributeTable)
286 names.append(attribute.name); 286 names.append(attribute.name);
287 287
288 v8SetReturnValue( 288 v8SetReturnValue(
289 info, 289 info,
290 toV8(names, info.Holder(), info.GetIsolate()).As<v8::Array>()); 290 ToV8(names, info.Holder(), info.GetIsolate()).As<v8::Array>());
291 } 291 }
292 {% endif %} 292 {% endif %}
293 293
294 {% if has_cross_origin_indexed_getter %} 294 {% if has_cross_origin_indexed_getter %}
295 void crossOriginIndexedGetter(uint32_t index, const v8::PropertyCallbackInfo<v8: :Value>& info) { 295 void crossOriginIndexedGetter(uint32_t index, const v8::PropertyCallbackInfo<v8: :Value>& info) {
296 {% if indexed_property_getter.is_custom %} 296 {% if indexed_property_getter.is_custom %}
297 {{v8_class}}::indexedPropertyGetterCustom(index, info); 297 {{v8_class}}::indexedPropertyGetterCustom(index, info);
298 {% else %} 298 {% else %}
299 {{cpp_class}}V8Internal::indexedPropertyGetter(index, info); 299 {{cpp_class}}V8Internal::indexedPropertyGetter(index, info);
300 {% endif %} 300 {% endif %}
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 {% block has_instance %}{% endblock %} 584 {% block has_instance %}{% endblock %}
585 {% block to_impl %}{% endblock %} 585 {% block to_impl %}{% endblock %}
586 {% block to_impl_with_type_check %}{% endblock %} 586 {% block to_impl_with_type_check %}{% endblock %}
587 {##############################################################################} 587 {##############################################################################}
588 {% block prepare_prototype_and_interface_object %}{% endblock %} 588 {% block prepare_prototype_and_interface_object %}{% endblock %}
589 {##############################################################################} 589 {##############################################################################}
590 {% block partial_interface %}{% endblock %} 590 {% block partial_interface %}{% endblock %}
591 } // namespace blink 591 } // namespace blink
592 592
593 {% endfilter %}{# format_blink_cpp_source_code #} 593 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698