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

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

Issue 2687873005: Remove eventTargetInheritance from WrapperTypeInfo (Closed)
Patch Set: Created 3 years, 10 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 {% extends 'interface_base.cpp.tmpl' %} 1 {% extends 'interface_base.cpp.tmpl' %}
2 2
3 {% set has_prepare_prototype_and_interface_object = 3 {% set has_prepare_prototype_and_interface_object =
4 unscopables or has_conditional_attributes_on_prototype or 4 unscopables or has_conditional_attributes_on_prototype or
5 methods | conditionally_exposed(is_partial) %} 5 methods | conditionally_exposed(is_partial) %}
6 {% set prepare_prototype_and_interface_object_func = 6 {% set prepare_prototype_and_interface_object_func =
7 '%s::preparePrototypeAndInterfaceObject' % v8_class 7 '%s::preparePrototypeAndInterfaceObject' % v8_class
8 if has_prepare_prototype_and_interface_object 8 if has_prepare_prototype_and_interface_object
9 else 'nullptr' %} 9 else 'nullptr' %}
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 {% set active_scriptwrappable_inheritance = 528 {% set active_scriptwrappable_inheritance =
529 'InheritFromActiveScriptWrappable' 529 'InheritFromActiveScriptWrappable'
530 if active_scriptwrappable else 530 if active_scriptwrappable else
531 'NotInheritFromActiveScriptWrappable' %} 531 'NotInheritFromActiveScriptWrappable' %}
532 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 532 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
533 // and does not depend on another global objects. 533 // and does not depend on another global objects.
534 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 534 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
535 #pragma clang diagnostic push 535 #pragma clang diagnostic push
536 #pragma clang diagnostic ignored "-Wglobal-constructors" 536 #pragma clang diagnostic ignored "-Wglobal-constructors"
537 #endif 537 #endif
538 const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedde rBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::trace, {{v8_class}}: :traceWrappers, {{prepare_prototype_and_interface_object_func}}, "{{interface_na me}}", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrappe r_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inheritance}}, WrapperTy peInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}} }; 538 const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedde rBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::trace, {{v8_class}}: :traceWrappers, {{prepare_prototype_and_interface_object_func}}, "{{interface_na me}}", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::{{wrappe r_class_id}}, WrapperTypeInfo::{{active_scriptwrappable_inheritance}}, WrapperTy peInfo::{{lifetime}} };
539 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 539 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
540 #pragma clang diagnostic pop 540 #pragma clang diagnostic pop
541 #endif 541 #endif
542 542
543 {{generate_constructor(named_constructor)}} 543 {{generate_constructor(named_constructor)}}
544 v8::Local<v8::FunctionTemplate> {{v8_class}}Constructor::domTemplate(v8::Isolate * isolate, const DOMWrapperWorld& world) { 544 v8::Local<v8::FunctionTemplate> {{v8_class}}Constructor::domTemplate(v8::Isolate * isolate, const DOMWrapperWorld& world) {
545 static int domTemplateKey; // This address is used for a key to look up the do m template. 545 static int domTemplateKey; // This address is used for a key to look up the do m template.
546 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 546 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
547 v8::Local<v8::FunctionTemplate> result = data->findInterfaceTemplate(world, &d omTemplateKey); 547 v8::Local<v8::FunctionTemplate> result = data->findInterfaceTemplate(world, &d omTemplateKey);
548 if (!result.IsEmpty()) 548 if (!result.IsEmpty())
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } 929 }
930 930
931 {% for method in methods if method.overloads and method.overloads.has_partial_ov erloads %} 931 {% for method in methods if method.overloads and method.overloads.has_partial_ov erloads %}
932 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 932 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
933 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; 933 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method;
934 } 934 }
935 935
936 {% endfor %} 936 {% endfor %}
937 {% endif %} 937 {% endif %}
938 {% endblock %} 938 {% endblock %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698