| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 for (size_t i = 0; i < names.size(); ++i) | 591 for (size_t i = 0; i < names.size(); ++i) |
| 592 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); | 592 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); |
| 593 v8SetReturnValue(info, v8names); | 593 v8SetReturnValue(info, v8names); |
| 594 } | 594 } |
| 595 | 595 |
| 596 void V8TestInterface::namedPropertyQuery(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Integer>& info) | 596 void V8TestInterface::namedPropertyQuery(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Integer>& info) |
| 597 { | 597 { |
| 598 TestInterface* collection = toNative(info.Holder()); | 598 TestInterface* collection = toNative(info.Holder()); |
| 599 AtomicString propertyName = toWebCoreAtomicString(name); | 599 AtomicString propertyName = toWebCoreAtomicString(name); |
| 600 ExceptionCode ec = 0; | 600 ExceptionCode ec = 0; |
| 601 int returnValue = 0; | 601 bool result = collection->namedPropertyQuery(propertyName, ec); |
| 602 bool result = collection->namedPropertyQuery(propertyName, returnValue, ec); | |
| 603 if (ec) { | 602 if (ec) { |
| 604 setDOMException(ec, info.GetIsolate()); | 603 setDOMException(ec, info.GetIsolate()); |
| 605 return; | 604 return; |
| 606 } | 605 } |
| 607 if (!result) | 606 if (!result) |
| 608 return; | 607 return; |
| 609 v8SetReturnValueInt(info, 0); | 608 v8SetReturnValueInt(info, v8::None); |
| 610 } | 609 } |
| 611 | 610 |
| 612 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) | 611 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) |
| 613 { | 612 { |
| 614 desc->ReadOnlyPrototype(); | 613 desc->ReadOnlyPrototype(); |
| 615 | 614 |
| 616 v8::Local<v8::Signature> defaultSignature; | 615 v8::Local<v8::Signature> defaultSignature; |
| 617 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, | 616 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, |
| 618 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), | 617 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), |
| 619 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat
e, currentWorldType); | 618 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat
e, currentWorldType); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 687 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 689 // Attribute 'Node14' | 688 // Attribute 'Node14' |
| 690 {"Node14", TestInterfaceV8Internal::Node14AttrGetterCallback, TestInterf
aceV8Internal::Node14AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 689 {"Node14", TestInterfaceV8Internal::Node14AttrGetterCallback, TestInterf
aceV8Internal::Node14AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 691 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); | 690 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
| 692 } | 691 } |
| 693 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 692 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 694 | 693 |
| 695 #if ENABLE(Condition11) || ENABLE(Condition12) | 694 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 696 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { | 695 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { |
| 697 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 696 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 698 // Attribute 'Node15' (Type: 'attribute' ExtAttr: 'EnabledPerContext Ena
bledAtRuntime Conditional ImplementedBy') | 697 // Attribute 'Node15' |
| 699 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 698 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 700 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); | 699 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
| 701 } | 700 } |
| 702 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 701 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 703 } | 702 } |
| 704 | 703 |
| 705 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) | 704 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) |
| 706 { | 705 { |
| 707 return toNative(object); | 706 return toNative(object); |
| 708 } | 707 } |
| 709 | 708 |
| 710 | 709 |
| 711 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 710 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 712 { | 711 { |
| 713 ASSERT(impl.get()); | 712 ASSERT(impl.get()); |
| 714 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 713 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
| 715 | 714 |
| 716 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 715 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); |
| 717 if (UNLIKELY(wrapper.IsEmpty())) | 716 if (UNLIKELY(wrapper.IsEmpty())) |
| 718 return wrapper; | 717 return wrapper; |
| 719 | |
| 720 installPerContextProperties(wrapper, impl.get(), isolate); | 718 installPerContextProperties(wrapper, impl.get(), isolate); |
| 721 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); | 719 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); |
| 722 return wrapper; | 720 return wrapper; |
| 723 } | 721 } |
| 724 void V8TestInterface::derefObject(void* object) | 722 void V8TestInterface::derefObject(void* object) |
| 725 { | 723 { |
| 726 static_cast<TestInterface*>(object)->deref(); | 724 static_cast<TestInterface*>(object)->deref(); |
| 727 } | 725 } |
| 728 | 726 |
| 729 } // namespace WebCore | 727 } // namespace WebCore |
| 730 | 728 |
| 731 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 729 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |