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 "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 | 853 |
854 } // namespace TestInterface5ImplementationV8Internal | 854 } // namespace TestInterface5ImplementationV8Internal |
855 | 855 |
856 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) | 856 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) |
857 { | 857 { |
858 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); | 858 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); |
859 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 859 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
860 V8WrapperInstantiationScope scope(creationContext, isolate); | 860 V8WrapperInstantiationScope scope(creationContext, isolate); |
861 TestInterface5Implementation* referencedName = impl->referencedName(); | 861 TestInterface5Implementation* referencedName = impl->referencedName(); |
862 if (referencedName) { | 862 if (referencedName) { |
863 RELEASE_ASSERT(DOMDataStore::containsWrapper(referencedName, isolate)); | 863 if (!DOMDataStore::containsWrapper(referencedName, isolate)) |
| 864 referencedName->wrap(creationContext, isolate); |
864 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 865 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
865 } | 866 } |
866 setObjectGroup(isolate, scriptWrappable, wrapper); | 867 setObjectGroup(isolate, scriptWrappable, wrapper); |
867 } | 868 } |
868 | 869 |
869 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { | 870 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { |
870 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter
faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te
stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 871 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter
faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te
stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
871 {"testInterfaceConstructorAttribute", TestInterface5ImplementationV8Internal
::TestInterface5ImplementationConstructorGetter, TestInterface5ImplementationV8I
nternal::TestInterface5ImplementationForceSetAttributeOnThisCallback, 0, 0, cons
t_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 872 {"testInterfaceConstructorAttribute", TestInterface5ImplementationV8Internal
::TestInterface5ImplementationConstructorGetter, TestInterface5ImplementationV8I
nternal::TestInterface5ImplementationForceSetAttributeOnThisCallback, 0, 0, cons
t_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
872 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA
ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | 873 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA
ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, |
873 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt
ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, | 874 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt
ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1013 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1013 } | 1014 } |
1014 | 1015 |
1015 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1016 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1016 { | 1017 { |
1017 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1018 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1018 } | 1019 } |
1019 | 1020 |
1020 } // namespace blink | 1021 } // namespace blink |
1021 #endif // ENABLE(CONDITION) | 1022 #endif // ENABLE(CONDITION) |
OLD | NEW |