OLD | NEW |
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 "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceWillBeGarbageCollected.h" | 8 #include "V8TestInterfaceWillBeGarbageCollected.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/V8DOMConfiguration.h" | 11 #include "bindings/core/v8/V8DOMConfiguration.h" |
12 #include "bindings/core/v8/V8ObjectConstructor.h" | 12 #include "bindings/core/v8/V8ObjectConstructor.h" |
13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
14 #include "core/dom/ContextFeatures.h" | 14 #include "core/dom/ContextFeatures.h" |
15 #include "core/dom/Document.h" | 15 #include "core/dom/Document.h" |
16 #include "core/frame/LocalDOMWindow.h" | 16 #include "core/frame/LocalDOMWindow.h" |
17 #include "platform/RuntimeEnabledFeatures.h" | 17 #include "platform/RuntimeEnabledFeatures.h" |
18 #include "platform/TraceEvent.h" | 18 #include "platform/TraceEvent.h" |
19 #include "wtf/GetPtr.h" | 19 #include "wtf/GetPtr.h" |
20 #include "wtf/RefPtr.h" | 20 #include "wtf/RefPtr.h" |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte
d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, 0, V8TestInterf
aceWillBeGarbageCollected::installConditionallyEnabledMethods, V8TestInterfaceWi
llBeGarbageCollected::installConditionallyEnabledProperties, "TestInterfaceWillB
eGarbageCollected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTyp
eObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEv
entTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollected
Object }; | 24 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte
d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, 0, V8TestInterf
aceWillBeGarbageCollected::preparePrototypeObject, V8TestInterfaceWillBeGarbageC
ollected::installConditionallyEnabledProperties, "TestInterfaceWillBeGarbageColl
ected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProto
type, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, W
rapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
25 | 25 |
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eWillBeGarbageCollected.h. | 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eWillBeGarbageCollected.h. |
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
28 // bindings/core/v8/ScriptWrappable.h. | 28 // bindings/core/v8/ScriptWrappable.h. |
29 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo =
V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; | 29 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo =
V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; |
30 | 30 |
31 namespace TestInterfaceWillBeGarbageCollectedV8Internal { | 31 namespace TestInterfaceWillBeGarbageCollectedV8Internal { |
32 | 32 |
33 static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info
) | 33 static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info
) |
34 { | 34 { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); | 98 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); |
99 v8SetReturnValue(info, wrapper); | 99 v8SetReturnValue(info, wrapper); |
100 } | 100 } |
101 | 101 |
102 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 102 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
103 | 103 |
104 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb
ageCollectedAccessors[] = { | 104 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb
ageCollectedAccessors[] = { |
105 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING), stat
ic_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAll
Scripts}, | 105 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING), stat
ic_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAll
Scripts}, |
106 }; | 106 }; |
107 | 107 |
108 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac
eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra
ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledMeth
ods, V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledPropertie
s, "TestInterfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectP
rototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarge
t, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }
; | 108 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac
eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra
ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeObject, V8TestI
nterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, "TestInte
rfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wr
apperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTy
peInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
109 | 109 |
110 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 110 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
111 { | 111 { |
112 if (!info.IsConstructCall()) { | 112 if (!info.IsConstructCall()) { |
113 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterface")); | 113 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterface")); |
114 return; | 114 return; |
115 } | 115 } |
116 | 116 |
117 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 117 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
118 v8SetReturnValue(info, info.Holder()); | 118 v8SetReturnValue(info, info.Holder()); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) | 222 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) |
223 { | 223 { |
224 #if !ENABLE(OILPAN) | 224 #if !ENABLE(OILPAN) |
225 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); | 225 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); |
226 #endif | 226 #endif |
227 } | 227 } |
228 | 228 |
229 } // namespace blink | 229 } // namespace blink |
OLD | NEW |