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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2671553003: Remove uses of VisitDOMWrapper (Closed)
Patch Set: Add DependentLifetime when removing Custom=VisitDOMWrapper 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 18 matching lines...) Expand all
29 #include "wtf/RefPtr.h" 29 #include "wtf/RefPtr.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 33 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
34 // and does not depend on another global objects. 34 // and does not depend on another global objects.
35 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 35 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
36 #pragma clang diagnostic push 36 #pragma clang diagnostic push
37 #pragma clang diagnostic ignored "-Wglobal-constructors" 37 #pragma clang diagnostic ignored "-Wglobal-constructors"
38 #endif 38 #endif
39 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace Wrappers, V8TestInterface5::visitDOMWrapper, V8TestInterface5::preparePrototypeA ndInterfaceObject, "TestInterface5", &V8TestInterfaceEmpty::wrapperTypeInfo, Wra pperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wrappe rTypeInfo::InheritFromActiveScriptWrappable, WrapperTypeInfo::NotInheritFromEven tTarget, WrapperTypeInfo::Dependent }; 39 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, V8TestInterface5::trace, V8TestInterface5::trace Wrappers, V8TestInterface5::preparePrototypeAndInterfaceObject, "TestInterface5" , &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProt otype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromActiveScriptW rappable, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent };
40 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 40 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
41 #pragma clang diagnostic pop 41 #pragma clang diagnostic pop
42 #endif 42 #endif
43 43
44 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h. 44 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h.
45 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 45 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
46 // bindings/core/v8/ScriptWrappable.h. 46 // bindings/core/v8/ScriptWrappable.h.
47 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo; 47 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo;
48 48
49 // [ActiveScriptWrappable] 49 // [ActiveScriptWrappable]
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 } 841 }
842 842
843 void V8TestInterface5::indexedPropertySetterCallback(uint32_t index, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { 843 void V8TestInterface5::indexedPropertySetterCallback(uint32_t index, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
844 TestInterface5ImplementationV8Internal::indexedPropertySetter(index, v8Value, info); 844 TestInterface5ImplementationV8Internal::indexedPropertySetter(index, v8Value, info);
845 } 845 }
846 846
847 void V8TestInterface5::indexedPropertyDeleterCallback(uint32_t index, const v8:: PropertyCallbackInfo<v8::Boolean>& info) { 847 void V8TestInterface5::indexedPropertyDeleterCallback(uint32_t index, const v8:: PropertyCallbackInfo<v8::Boolean>& info) {
848 TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info); 848 TestInterface5ImplementationV8Internal::indexedPropertyDeleter(index, info);
849 } 849 }
850 850
851 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper) {
852 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5Imp lementation>();
853 TestInterface5Implementation* referencedName = impl->referencedName();
854 if (referencedName) {
855 DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, referencedName, is olate);
856 }
857 }
858
859 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 851 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
860 // and does not depend on another global objects. 852 // and does not depend on another global objects.
861 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 853 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
862 #pragma clang diagnostic push 854 #pragma clang diagnostic push
863 #pragma clang diagnostic ignored "-Wglobal-constructors" 855 #pragma clang diagnostic ignored "-Wglobal-constructors"
864 #endif 856 #endif
865 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5LazyDataAttribu tes[] = { 857 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5LazyDataAttribu tes[] = {
866 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrap perTypeInfo), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfigurati on::OnInstance, V8DOMConfiguration::CheckHolder}, 858 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrap perTypeInfo), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfigurati on::OnInstance, V8DOMConfiguration::CheckHolder},
867 }; 859 };
868 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 860 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 975 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
984 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration); 976 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi guration);
985 } 977 }
986 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 978 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
987 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 979 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
988 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration); 980 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM ethodConfiguration);
989 } 981 }
990 } 982 }
991 983
992 } // namespace blink 984 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698