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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceWillBeGarbageCollected.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 "V8TestInterfaceWillBeGarbageCollected.h" 7 #include "V8TestInterfaceWillBeGarbageCollected.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
11 #include "bindings/core/v8/V8ObjectConstructor.h" 11 #include "bindings/core/v8/V8ObjectConstructor.h"
12 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" 12 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
13 #include "core/dom/Document.h" 13 #include "core/dom/Document.h"
14 #include "core/frame/LocalDOMWindow.h" 14 #include "core/frame/LocalDOMWindow.h"
15 #include "wtf/GetPtr.h" 15 #include "wtf/GetPtr.h"
16 #include "wtf/RefPtr.h" 16 #include "wtf/RefPtr.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 20 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
21 // and does not depend on another global objects. 21 // and does not depend on another global objects.
22 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 22 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
23 #pragma clang diagnostic push 23 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wglobal-constructors" 24 #pragma clang diagnostic ignored "-Wglobal-constructors"
25 #endif 25 #endif
26 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, V8TestInterface WillBeGarbageCollected::preparePrototypeAndInterfaceObject, V8TestInterfaceWillB eGarbageCollected::installConditionallyEnabledProperties, "TestInterfaceWillBeGa rbageCollected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeOb jectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEvent Target, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObj ect }; 26 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, 0, V8TestInterf aceWillBeGarbageCollected::preparePrototypeAndInterfaceObject, V8TestInterfaceWi llBeGarbageCollected::installConditionallyEnabledProperties, "TestInterfaceWillB eGarbageCollected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTyp eObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEv entTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollected Object };
27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
28 #pragma clang diagnostic pop 28 #pragma clang diagnostic pop
29 #endif 29 #endif
30 30
31 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eWillBeGarbageCollected.h. 31 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eWillBeGarbageCollected.h.
32 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 32 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
33 // bindings/core/v8/ScriptWrappable.h. 33 // bindings/core/v8/ScriptWrappable.h.
34 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo = V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; 34 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo = V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo;
35 35
36 namespace TestInterfaceWillBeGarbageCollectedV8Internal { 36 namespace TestInterfaceWillBeGarbageCollectedV8Internal {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbageCollec tedMethods[] = { 117 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbageCollec tedMethods[] = {
118 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback, 0, 1, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete), V8DOMCo nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 118 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback, 0, 1, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete), V8DOMCo nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
119 }; 119 };
120 120
121 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 121 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
122 // and does not depend on another global objects. 122 // and does not depend on another global objects.
123 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 123 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
124 #pragma clang diagnostic push 124 #pragma clang diagnostic push
125 #pragma clang diagnostic ignored "-Wglobal-constructors" 125 #pragma clang diagnostic ignored "-Wglobal-constructors"
126 #endif 126 #endif
127 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeAndInterfaceObject , V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, "TestInterfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectProt otype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; 127 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeAndInterfaceObj ect, V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledPropertie s, "TestInterfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectP rototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarge t, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject } ;
128 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 128 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
129 #pragma clang diagnostic pop 129 #pragma clang diagnostic pop
130 #endif 130 #endif
131 131
132 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 132 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
133 { 133 {
134 if (!info.IsConstructCall()) { 134 if (!info.IsConstructCall()) {
135 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterface")); 135 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterface"));
136 return; 136 return;
137 } 137 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 233 }
234 234
235 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 235 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
236 { 236 {
237 #if !ENABLE(OILPAN) 237 #if !ENABLE(OILPAN)
238 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 238 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
239 #endif 239 #endif
240 } 240 }
241 241
242 } // namespace blink 242 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698