| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #if ENABLE(Condition1) || ENABLE(Condition2) | 22 #if ENABLE(Condition1) || ENABLE(Condition2) |
| 23 #include "V8TestInterface.h" | 23 #include "V8TestInterface.h" |
| 24 | 24 |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "V8Node.h" | 26 #include "V8Node.h" |
| 27 #include "V8NodeList.h" | 27 #include "V8NodeList.h" |
| 28 #include "V8ReferencedType.h" |
| 28 #include "V8TestObject.h" | 29 #include "V8TestObject.h" |
| 29 #include "bindings/tests/idls/TestImplements.h" | 30 #include "bindings/tests/idls/TestImplements.h" |
| 30 #include "bindings/tests/idls/TestPartialInterface.h" | 31 #include "bindings/tests/idls/TestPartialInterface.h" |
| 31 #include "bindings/v8/ExceptionMessages.h" | 32 #include "bindings/v8/ExceptionMessages.h" |
| 32 #include "bindings/v8/ExceptionState.h" | 33 #include "bindings/v8/ExceptionState.h" |
| 33 #include "bindings/v8/ScriptController.h" | 34 #include "bindings/v8/ScriptController.h" |
| 34 #include "bindings/v8/V8Binding.h" | 35 #include "bindings/v8/V8Binding.h" |
| 35 #include "bindings/v8/V8DOMConfiguration.h" | 36 #include "bindings/v8/V8DOMConfiguration.h" |
| 36 #include "bindings/v8/V8DOMWrapper.h" | 37 #include "bindings/v8/V8DOMWrapper.h" |
| 37 #include "bindings/v8/V8ObjectConstructor.h" | 38 #include "bindings/v8/V8ObjectConstructor.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 57 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: | 58 // In ScriptWrappable::init, the use of a local function declaration has an issu
e on Windows: |
| 58 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function | 59 // the local declaration does not pick up the surrounding namespace. Therefore,
we provide this function |
| 59 // in the global namespace. | 60 // in the global namespace. |
| 60 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) | 61 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe
edback/details/664619/the-namespace-of-local-function-declarations-in-c) |
| 61 void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterface* object
) | 62 void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterface* object
) |
| 62 { | 63 { |
| 63 WebCore::initializeScriptWrappableForInterface(object); | 64 WebCore::initializeScriptWrappableForInterface(object); |
| 64 } | 65 } |
| 65 | 66 |
| 66 namespace WebCore { | 67 namespace WebCore { |
| 67 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { V8TestInterface::GetT
emplate, V8TestInterface::derefObject, V8TestInterface::toActiveDOMObject, 0, 0,
V8TestInterface::installPerContextEnabledPrototypeProperties, 0, WrapperTypeObj
ectPrototype }; | 68 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { V8TestInterface::GetT
emplate, V8TestInterface::derefObject, V8TestInterface::toActiveDOMObject, 0, V8
TestInterface::resolveWrapperReachability, V8TestInterface::installPerContextEna
bledPrototypeProperties, 0, WrapperTypeObjectPrototype }; |
| 68 | 69 |
| 69 namespace TestInterfaceV8Internal { | 70 namespace TestInterfaceV8Internal { |
| 70 | 71 |
| 71 template <typename T> void V8_USE(T) { } | 72 template <typename T> void V8_USE(T) { } |
| 72 | 73 |
| 73 static void implementsStaticReadOnlyAttrAttributeGetter(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) | 74 static void implementsStaticReadOnlyAttrAttributeGetter(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 74 { | 75 { |
| 75 v8SetReturnValueInt(info, TestImplements::implementsStaticReadOnlyAttr()); | 76 v8SetReturnValueInt(info, TestImplements::implementsStaticReadOnlyAttr()); |
| 76 } | 77 } |
| 77 | 78 |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 | 752 |
| 752 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Integer>& info) | 753 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Integer>& info) |
| 753 { | 754 { |
| 754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 755 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 755 TestInterfaceV8Internal::namedPropertyQuery(name, info); | 756 TestInterfaceV8Internal::namedPropertyQuery(name, info); |
| 756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 757 } | 758 } |
| 758 | 759 |
| 759 } // namespace TestInterfaceV8Internal | 760 } // namespace TestInterfaceV8Internal |
| 760 | 761 |
| 762 void V8TestInterface::resolveWrapperReachability(void* object, const v8::Persist
ent<v8::Object>& wrapper, v8::Isolate* isolate) |
| 763 { |
| 764 TestInterface* impl = fromInternalPointer(object); |
| 765 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
| 766 ReferencedType* referencedName = impl->referencedName(); |
| 767 if (referencedName) { |
| 768 if(!DOMDataStore::containsWrapper<V8ReferencedType>(referencedName, isol
ate)) |
| 769 wrap(referencedName, creationContext, isolate); |
| 770 DOMDataStore::setWrapperReference<V8ReferencedType>(wrapper, referencedN
ame, isolate); |
| 771 } |
| 772 setObjectGroup(object, wrapper, isolate); |
| 773 } |
| 774 |
| 761 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 775 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
| 762 {"implementsStr1", TestInterfaceV8Internal::implementsStr1AttributeGetterCal
lback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 776 {"implementsStr1", TestInterfaceV8Internal::implementsStr1AttributeGetterCal
lback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 763 {"implementsStr2", TestInterfaceV8Internal::implementsStr2AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr2AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 777 {"implementsStr2", TestInterfaceV8Internal::implementsStr2AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr2AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 764 {"implementsStr3", TestInterfaceV8Internal::implementsStr3AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr3AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 778 {"implementsStr3", TestInterfaceV8Internal::implementsStr3AttributeGetterCal
lback, TestInterfaceV8Internal::implementsStr3AttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 765 {"implementsNode", TestInterfaceV8Internal::implementsNodeAttributeGetterCal
lback, TestInterfaceV8Internal::implementsNodeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 779 {"implementsNode", TestInterfaceV8Internal::implementsNodeAttributeGetterCal
lback, TestInterfaceV8Internal::implementsNodeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 766 #if ENABLE(Condition11) || ENABLE(Condition12) | 780 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 767 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttributeGette
rCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 781 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttributeGette
rCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<
v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 768 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 782 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 769 #if ENABLE(Condition11) || ENABLE(Condition12) | 783 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 770 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr2AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 784 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttributeGette
rCallback, TestInterfaceV8Internal::supplementalStr2AttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 } | 962 } |
| 949 | 963 |
| 950 void V8TestInterface::derefObject(void* object) | 964 void V8TestInterface::derefObject(void* object) |
| 951 { | 965 { |
| 952 fromInternalPointer(object)->deref(); | 966 fromInternalPointer(object)->deref(); |
| 953 } | 967 } |
| 954 | 968 |
| 955 } // namespace WebCore | 969 } // namespace WebCore |
| 956 | 970 |
| 957 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 971 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |