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/V8HiddenValue.h" | 12 #include "bindings/core/v8/V8HiddenValue.h" |
13 #include "bindings/core/v8/V8ObjectConstructor.h" | 13 #include "bindings/core/v8/V8ObjectConstructor.h" |
14 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 14 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
15 #include "core/dom/ContextFeatures.h" | 15 #include "core/dom/ContextFeatures.h" |
16 #include "core/dom/Document.h" | 16 #include "core/dom/Document.h" |
17 #include "core/frame/LocalDOMWindow.h" | 17 #include "core/frame/LocalDOMWindow.h" |
18 #include "platform/RuntimeEnabledFeatures.h" | 18 #include "platform/RuntimeEnabledFeatures.h" |
19 #include "platform/TraceEvent.h" | 19 #include "platform/TraceEvent.h" |
20 #include "wtf/GetPtr.h" | 20 #include "wtf/GetPtr.h" |
21 #include "wtf/RefPtr.h" | 21 #include "wtf/RefPtr.h" |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte
d::derefObject, V8TestInterfaceWillBeGarbageCollected::createPersistentHandle, 0
, V8TestInterfaceWillBeGarbageCollected::toEventTarget, 0, V8TestInterfaceWillBe
GarbageCollected::installConditionallyEnabledMethods, V8TestInterfaceWillBeGarba
geCollected::installConditionallyEnabledProperties, &V8EventTarget::wrapperTypeI
nfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId
, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; | 25 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test
InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte
d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, V8TestInterface
WillBeGarbageCollected::toEventTarget, 0, V8TestInterfaceWillBeGarbageCollected:
:installConditionallyEnabledMethods, V8TestInterfaceWillBeGarbageCollected::inst
allConditionallyEnabledProperties, &V8EventTarget::wrapperTypeInfo, WrapperTypeI
nfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo
::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
26 | 26 |
27 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eWillBeGarbageCollected.h. | 27 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eWillBeGarbageCollected.h. |
28 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 28 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
29 // bindings/core/v8/ScriptWrappable.h. | 29 // bindings/core/v8/ScriptWrappable.h. |
30 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo =
V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; | 30 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo =
V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; |
31 | 31 |
32 namespace TestInterfaceWillBeGarbageCollectedV8Internal { | 32 namespace TestInterfaceWillBeGarbageCollectedV8Internal { |
33 | 33 |
34 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 34 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) |
35 { | 35 { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
101 | 101 |
102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
103 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnInstance}, | 103 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette
rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa
llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnInstance}, |
104 }; | 104 }; |
105 | 105 |
106 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { | 106 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceWillBeGarbag
eCollectedMethods[] = { |
107 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 107 {"func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
108 }; | 108 }; |
109 | 109 |
110 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac
eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::cre
atePersistentHandle, 0, V8TestInterfaceWillBeGarbageCollected::toEventTarget, 0,
V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledMethods, V8Te
stInterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, 0, Wra
pperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wrappe
rTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject }; | 110 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT
ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac
eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra
ce, 0, V8TestInterfaceWillBeGarbageCollected::toEventTarget, 0, V8TestInterfaceW
illBeGarbageCollected::installConditionallyEnabledMethods, V8TestInterfaceWillBe
GarbageCollected::installConditionallyEnabledProperties, 0, WrapperTypeInfo::Wra
pperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Indepe
ndent, WrapperTypeInfo::WillBeGarbageCollectedObject }; |
111 | 111 |
112 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 112 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
113 { | 113 { |
114 if (!info.IsConstructCall()) { | 114 if (!info.IsConstructCall()) { |
115 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterface"), info.GetIsolate()); | 115 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterface"), info.GetIsolate()); |
116 return; | 116 return; |
117 } | 117 } |
118 | 118 |
119 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 119 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
120 v8SetReturnValue(info, info.Holder()); | 120 v8SetReturnValue(info, info.Holder()); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 #endif | 222 #endif |
223 } | 223 } |
224 | 224 |
225 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappableBase* int
ernalPointer) | 225 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappableBase* int
ernalPointer) |
226 { | 226 { |
227 #if !ENABLE(OILPAN) | 227 #if !ENABLE(OILPAN) |
228 internalPointer->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); | 228 internalPointer->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); |
229 #endif | 229 #endif |
230 } | 230 } |
231 | 231 |
232 WrapperPersistentNode* V8TestInterfaceWillBeGarbageCollected::createPersistentHa
ndle(ScriptWrappableBase* internalPointer) | |
233 { | |
234 #if ENABLE(OILPAN) | |
235 return WrapperPersistent<TestInterfaceWillBeGarbageCollected>::create(intern
alPointer->toImpl<TestInterfaceWillBeGarbageCollected>()); | |
236 #else | |
237 ASSERT_NOT_REACHED(); | |
238 return 0; | |
239 #endif | |
240 } | |
241 | |
242 template<> | 232 template<> |
243 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 233 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
244 { | 234 { |
245 return toV8(impl, creationContext, isolate); | 235 return toV8(impl, creationContext, isolate); |
246 } | 236 } |
247 | 237 |
248 } // namespace blink | 238 } // namespace blink |
OLD | NEW |