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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 | 1301 |
1302 } // namespace TestInterfaceImplementationV8Internal | 1302 } // namespace TestInterfaceImplementationV8Internal |
1303 | 1303 |
1304 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj
ect>& wrapper, v8::Isolate* isolate) | 1304 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj
ect>& wrapper, v8::Isolate* isolate) |
1305 { | 1305 { |
1306 TestInterfaceImplementation* impl = fromInternalPointer(object); | 1306 TestInterfaceImplementation* impl = fromInternalPointer(object); |
1307 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 1307 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
1308 V8WrapperInstantiationScope scope(creationContext, isolate); | 1308 V8WrapperInstantiationScope scope(creationContext, isolate); |
1309 TestInterfaceImplementation* referencedName = impl->referencedName(); | 1309 TestInterfaceImplementation* referencedName = impl->referencedName(); |
1310 if (referencedName) { | 1310 if (referencedName) { |
1311 ASSERT(DOMDataStore::containsWrapper<V8TestInterface>(referencedName, is
olate)); | 1311 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol
ate)) |
| 1312 wrap(referencedName, creationContext, isolate); |
1312 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); | 1313 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa
me, isolate); |
1313 } | 1314 } |
1314 setObjectGroup(object, wrapper, isolate); | 1315 setObjectGroup(object, wrapper, isolate); |
1315 } | 1316 } |
1316 | 1317 |
1317 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 1318 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
1318 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 1319 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
1319 {"testInterfaceConstructorAttribute", TestInterfaceImplementationV8Internal:
:TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8Inte
rnal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, const
_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /*
on instance */}, | 1320 {"testInterfaceConstructorAttribute", TestInterfaceImplementationV8Internal:
:TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8Inte
rnal::TestInterfaceImplementationReplaceableAttributeSetterCallback, 0, 0, const
_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /*
on instance */}, |
1320 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1321 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
1321 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1322 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 } | 1511 } |
1511 | 1512 |
1512 template<> | 1513 template<> |
1513 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1514 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
1514 { | 1515 { |
1515 return toV8(impl, creationContext, isolate); | 1516 return toV8(impl, creationContext, isolate); |
1516 } | 1517 } |
1517 | 1518 |
1518 } // namespace WebCore | 1519 } // namespace WebCore |
1519 #endif // ENABLE(CONDITION) | 1520 #endif // ENABLE(CONDITION) |
OLD | NEW |