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

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

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "V8TestInterface5.h" 7 #include "V8TestInterface5.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 10 matching lines...) Expand all
21 #include "wtf/RefPtr.h" 21 #include "wtf/RefPtr.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
26 // and does not depend on another global objects. 26 // and does not depend on another global objects.
27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
28 #pragma clang diagnostic push 28 #pragma clang diagnostic push
29 #pragma clang diagnostic ignored "-Wglobal-constructors" 29 #pragma clang diagnostic ignored "-Wglobal-constructors"
30 #endif 30 #endif
31 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, V8TestInterface5::refObject, V8TestInterface5::d erefObject, V8TestInterface5::trace, V8TestInterface5::visitDOMWrapper, V8TestIn terface5::preparePrototypeAndInterfaceObject, V8TestInterface5::installCondition allyEnabledProperties, "TestInterface5", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wr apperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTyp eInfo::RefCountedObject }; 31 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface5::domTemplate, V8TestInterface5::refObject, V8TestInterface5::d erefObject, V8TestInterface5::trace, V8TestInterface5::toActiveScriptWrappable, V8TestInterface5::visitDOMWrapper, V8TestInterface5::preparePrototypeAndInterfac eObject, V8TestInterface5::installConditionallyEnabledProperties, "TestInterface 5", &V8TestInterfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPr ototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTar get, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject };
32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
33 #pragma clang diagnostic pop 33 #pragma clang diagnostic pop
34 #endif 34 #endif
35 35
36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h. 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac e5Implementation.h.
37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
38 // bindings/core/v8/ScriptWrappable.h. 38 // bindings/core/v8/ScriptWrappable.h.
39 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo; 39 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI nterface5::wrapperTypeInfo;
40 40
41 namespace TestInterface5ImplementationV8Internal { 41 namespace TestInterface5ImplementationV8Internal {
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 if (executionContext && (executionContext->isDocument())) { 909 if (executionContext && (executionContext->isDocument())) {
910 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 910 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
911 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot otypeObject, interfaceObject, defaultSignature, windowExposedStaticMethodMethodC onfiguration); 911 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot otypeObject, interfaceObject, defaultSignature, windowExposedStaticMethodMethodC onfiguration);
912 } 912 }
913 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) { 913 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) {
914 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype}; 914 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype};
915 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot otypeObject, interfaceObject, defaultSignature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 915 V8DOMConfiguration::installMethod(isolate, v8::Local<v8::Object>(), prot otypeObject, interfaceObject, defaultSignature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
916 } 916 }
917 } 917 }
918 918
919 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper)
920 {
921 return toImpl(wrapper);
922 }
923
919 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) 924 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable)
920 { 925 {
921 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 926 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
922 } 927 }
923 928
924 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 929 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
925 { 930 {
926 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 931 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
927 } 932 }
928 933
929 } // namespace blink 934 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698