| 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::trace, 0, 0, V8TestInterf
aceWillBeGarbageCollected::installConditionallyEnabledMethods, V8TestInterfaceWi
llBeGarbageCollected::installConditionallyEnabledProperties, &V8EventTarget::wra
pperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Obje
ctClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTypeInfo::Independent
, WrapperTypeInfo::WillBeGarbageCollectedObject }; | 25 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 }; |
| 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::FunctionCallbackInfo<v8::Value>& info
) | 34 static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 35 { | 35 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); | 99 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); |
| 100 v8SetReturnValue(info, wrapper); | 100 v8SetReturnValue(info, wrapper); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 103 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
| 104 | 104 |
| 105 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb
ageCollectedAccessors[] = { | 105 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb
ageCollectedAccessors[] = { |
| 106 {"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 {"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}, |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 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, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassI
d, WrapperTypeInfo::InheritFromEventTarget, WrapperTypeInfo::Independent, Wrappe
rTypeInfo::WillBeGarbageCollectedObject }; | 109 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 }
; |
| 110 | 110 |
| 111 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 111 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
| 112 { | 112 { |
| 113 if (!info.IsConstructCall()) { | 113 if (!info.IsConstructCall()) { |
| 114 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterface")); | 114 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterface")); |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 | 117 |
| 118 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 118 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
| 119 v8SetReturnValue(info, info.Holder()); | 119 v8SetReturnValue(info, info.Holder()); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 | 222 |
| 223 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) | 223 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) |
| 224 { | 224 { |
| 225 #if !ENABLE(OILPAN) | 225 #if !ENABLE(OILPAN) |
| 226 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); | 226 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); |
| 227 #endif | 227 #endif |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |