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 "V8TestEventConstructor.h" | 22 #include "V8TestEventConstructor.h" |
23 | 23 |
24 #include "BindingState.h" | 24 #include "BindingState.h" |
25 #include "ContextFeatures.h" | 25 #include "ContextFeatures.h" |
26 #include "Dictionary.h" | 26 #include "Dictionary.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("??_7TestEventConstructor@WebCore@
@6B@")[])(); } | 37 extern "C" { extern void (*const __identifier("??_7TestEventConstructor@WebCore@
@6B@")[])(); } |
37 #else | 38 #else |
38 extern "C" { extern void* _ZTVN7WebCore20TestEventConstructorE[]; } | 39 extern "C" { extern void* _ZTVN7WebCore20TestEventConstructorE[]; } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl
ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl
dType currentWorldType) | 141 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl
ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl
dType currentWorldType) |
141 { | 142 { |
142 desc->ReadOnlyPrototype(); | 143 desc->ReadOnlyPrototype(); |
143 | 144 |
144 v8::Local<v8::Signature> defaultSignature; | 145 v8::Local<v8::Signature> defaultSignature; |
145 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter
nalFieldCount, | 146 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter
nalFieldCount, |
146 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr
s), | 147 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr
s), |
147 0, 0, isolate, currentWorldType); | 148 0, 0, isolate, currentWorldType); |
148 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 149 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
149 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); | 150 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); |
| 151 desc->SetLength(1); |
150 | 152 |
151 // Custom toString template | 153 // Custom toString template |
152 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 154 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
153 return desc; | 155 return desc; |
154 } | 156 } |
155 | 157 |
156 v8::Persistent<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Iso
late* isolate, WrapperWorldType currentWorldType) | 158 v8::Persistent<v8::FunctionTemplate> V8TestEventConstructor::GetTemplate(v8::Iso
late* isolate, WrapperWorldType currentWorldType) |
157 { | 159 { |
158 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 160 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
159 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); | 161 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 installPerContextProperties(wrapper, impl.get(), isolate); | 198 installPerContextProperties(wrapper, impl.get(), isolate); |
197 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 199 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
198 return wrapper; | 200 return wrapper; |
199 } | 201 } |
200 void V8TestEventConstructor::derefObject(void* object) | 202 void V8TestEventConstructor::derefObject(void* object) |
201 { | 203 { |
202 static_cast<TestEventConstructor*>(object)->deref(); | 204 static_cast<TestEventConstructor*>(object)->deref(); |
203 } | 205 } |
204 | 206 |
205 } // namespace WebCore | 207 } // namespace WebCore |
OLD | NEW |