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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 714 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
715 { | 715 { |
716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
717 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); | 717 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); |
718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
719 } | 719 } |
720 | 720 |
721 } // namespace TestInterface5ImplementationV8Internal | 721 } // namespace TestInterface5ImplementationV8Internal |
722 | 722 |
723 void V8TestInterface5::visitDOMWrapper(ScriptWrappableBase* scriptWrappableBase,
const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) | 723 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappableBase
* scriptWrappableBase, const v8::Persistent<v8::Object>& wrapper) |
724 { | 724 { |
725 TestInterface5Implementation* impl = scriptWrappableBase->toImpl<TestInterfa
ce5Implementation>(); | 725 TestInterface5Implementation* impl = scriptWrappableBase->toImpl<TestInterfa
ce5Implementation>(); |
726 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 726 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
727 V8WrapperInstantiationScope scope(creationContext, isolate); | 727 V8WrapperInstantiationScope scope(creationContext, isolate); |
728 TestInterface5Implementation* referencedName = impl->referencedName(); | 728 TestInterface5Implementation* referencedName = impl->referencedName(); |
729 if (referencedName) { | 729 if (referencedName) { |
730 if (!DOMDataStore::containsWrapper<V8TestInterface5>(referencedName, iso
late)) | 730 if (!DOMDataStore::containsWrapper<V8TestInterface5>(referencedName, iso
late)) |
731 referencedName->wrap(creationContext, isolate); | 731 referencedName->wrap(creationContext, isolate); |
732 DOMDataStore::setWrapperReference<V8TestInterface5>(wrapper, referencedN
ame, isolate); | 732 DOMDataStore::setWrapperReference<V8TestInterface5>(wrapper, referencedN
ame, isolate); |
733 } | 733 } |
734 setObjectGroup(scriptWrappableBase, wrapper, isolate); | 734 setObjectGroup(isolate, scriptWrappableBase, wrapper); |
735 } | 735 } |
736 | 736 |
737 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { | 737 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut
es[] = { |
738 {"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}, | 738 {"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}, |
739 {"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}, | 739 {"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}, |
740 {"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}, | 740 {"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}, |
741 {"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}, | 741 {"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}, |
742 {"unrestrictedDoubleAttribute", TestInterface5ImplementationV8Internal::unre
strictedDoubleAttributeAttributeGetterCallback, TestInterface5ImplementationV8In
ternal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast
<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 742 {"unrestrictedDoubleAttribute", TestInterface5ImplementationV8Internal::unre
strictedDoubleAttributeAttributeGetterCallback, TestInterface5ImplementationV8In
ternal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast
<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
743 {"unrestrictedFloatAttribute", TestInterface5ImplementationV8Internal::unres
trictedFloatAttributeAttributeGetterCallback, TestInterface5ImplementationV8Inte
rnal::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 743 {"unrestrictedFloatAttribute", TestInterface5ImplementationV8Internal::unres
trictedFloatAttributeAttributeGetterCallback, TestInterface5ImplementationV8Inte
rnal::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
744 {"alwaysExposedAttribute", TestInterface5ImplementationV8Internal::alwaysExp
osedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::al
waysExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 744 {"alwaysExposedAttribute", TestInterface5ImplementationV8Internal::alwaysExp
osedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::al
waysExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 } | 869 } |
870 | 870 |
871 template<> | 871 template<> |
872 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) | 872 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) |
873 { | 873 { |
874 return toV8(impl, creationContext, isolate); | 874 return toV8(impl, creationContext, isolate); |
875 } | 875 } |
876 | 876 |
877 } // namespace blink | 877 } // namespace blink |
878 #endif // ENABLE(CONDITION) | 878 #endif // ENABLE(CONDITION) |
OLD | NEW |