| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
| 3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. 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 #include "V8TestCustomNamedGetter.h" | 22 #include "V8TestCustomNamedGetter.h" |
| 23 | 23 |
| 24 #include "BindingState.h" | 24 #include "BindingState.h" |
| 25 #include "ContextFeatures.h" | 25 #include "ContextFeatures.h" |
| 26 #include "ExceptionCode.h" | 26 #include "ExceptionCode.h" |
| 27 #include "Frame.h" | 27 #include "Frame.h" |
| 28 #include "RuntimeEnabledFeatures.h" | 28 #include "RuntimeEnabledFeatures.h" |
| 29 #include "ScriptController.h" |
| 29 #include "V8Binding.h" | 30 #include "V8Binding.h" |
| 30 #include "V8DOMWrapper.h" | 31 #include "V8DOMWrapper.h" |
| 31 #include <wtf/UnusedParam.h> | 32 #include <wtf/UnusedParam.h> |
| 32 | 33 |
| 33 #if ENABLE(BINDING_INTEGRITY) | 34 #if ENABLE(BINDING_INTEGRITY) |
| 34 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 35 #pragma warning(disable: 4483) | 36 #pragma warning(disable: 4483) |
| 36 extern "C" { extern void (*const __identifier("??_7TestCustomNamedGetter@WebCore
@@6B@")[])(); } | 37 extern "C" { extern void (*const __identifier("??_7TestCustomNamedGetter@WebCore
@@6B@")[])(); } |
| 37 #else | 38 #else |
| 38 extern "C" { extern void* _ZTVN7WebCore21TestCustomNamedGetterE[]; } | 39 extern "C" { extern void* _ZTVN7WebCore21TestCustomNamedGetterE[]; } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 82 } |
| 82 | 83 |
| 83 static v8::Handle<v8::Value> anotherFunctionMethodCallback(const v8::Arguments&
args) | 84 static v8::Handle<v8::Value> anotherFunctionMethodCallback(const v8::Arguments&
args) |
| 84 { | 85 { |
| 85 return TestCustomNamedGetterV8Internal::anotherFunctionMethod(args); | 86 return TestCustomNamedGetterV8Internal::anotherFunctionMethod(args); |
| 86 } | 87 } |
| 87 | 88 |
| 88 } // namespace TestCustomNamedGetterV8Internal | 89 } // namespace TestCustomNamedGetterV8Internal |
| 89 | 90 |
| 90 static const V8DOMConfiguration::BatchedMethod V8TestCustomNamedGetterMethods[]
= { | 91 static const V8DOMConfiguration::BatchedMethod V8TestCustomNamedGetterMethods[]
= { |
| 91 {"anotherFunction", TestCustomNamedGetterV8Internal::anotherFunctionMethodCa
llback, 0}, | 92 {"anotherFunction", TestCustomNamedGetterV8Internal::anotherFunctionMethodCa
llback, 0, 1}, |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestCustomNamedGetterTemp
late(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWor
ldType currentWorldType) | 95 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestCustomNamedGetterTemp
late(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWor
ldType currentWorldType) |
| 95 { | 96 { |
| 96 desc->ReadOnlyPrototype(); | 97 desc->ReadOnlyPrototype(); |
| 97 | 98 |
| 98 v8::Local<v8::Signature> defaultSignature; | 99 v8::Local<v8::Signature> defaultSignature; |
| 99 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestCustomNa
medGetter", v8::Persistent<v8::FunctionTemplate>(), V8TestCustomNamedGetter::int
ernalFieldCount, | 100 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestCustomNa
medGetter", v8::Persistent<v8::FunctionTemplate>(), V8TestCustomNamedGetter::int
ernalFieldCount, |
| 100 0, 0, | 101 0, 0, |
| 101 V8TestCustomNamedGetterMethods, WTF_ARRAY_LENGTH(V8TestCustomNamedGetter
Methods), isolate, currentWorldType); | 102 V8TestCustomNamedGetterMethods, WTF_ARRAY_LENGTH(V8TestCustomNamedGetter
Methods), isolate, currentWorldType); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 installPerContextProperties(wrapper, impl.get(), isolate); | 155 installPerContextProperties(wrapper, impl.get(), isolate); |
| 155 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 156 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
| 156 return wrapper; | 157 return wrapper; |
| 157 } | 158 } |
| 158 void V8TestCustomNamedGetter::derefObject(void* object) | 159 void V8TestCustomNamedGetter::derefObject(void* object) |
| 159 { | 160 { |
| 160 static_cast<TestCustomNamedGetter*>(object)->deref(); | 161 static_cast<TestCustomNamedGetter*>(object)->deref(); |
| 161 } | 162 } |
| 162 | 163 |
| 163 } // namespace WebCore | 164 } // namespace WebCore |
| OLD | NEW |