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, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestOverloadedConstructor
sTemplate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, Wrapp
erWorldType currentWorldType) | 150 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestOverloadedConstructor
sTemplate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, Wrapp
erWorldType currentWorldType) |
151 { | 151 { |
152 desc->ReadOnlyPrototype(); | 152 desc->ReadOnlyPrototype(); |
153 | 153 |
154 v8::Local<v8::Signature> defaultSignature; | 154 v8::Local<v8::Signature> defaultSignature; |
155 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestOverload
edConstructors", v8::Persistent<v8::FunctionTemplate>(), V8TestOverloadedConstru
ctors::internalFieldCount, | 155 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestOverload
edConstructors", v8::Persistent<v8::FunctionTemplate>(), V8TestOverloadedConstru
ctors::internalFieldCount, |
156 0, 0, | 156 0, 0, |
157 0, 0, isolate, currentWorldType); | 157 0, 0, isolate, currentWorldType); |
158 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 158 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
159 desc->SetCallHandler(V8TestOverloadedConstructors::constructorCallback); | 159 desc->SetCallHandler(V8TestOverloadedConstructors::constructorCallback); |
| 160 desc->SetLength(1); |
160 | 161 |
161 | 162 |
162 // Custom toString template | 163 // Custom toString template |
163 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 164 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
164 return desc; | 165 return desc; |
165 } | 166 } |
166 | 167 |
167 v8::Persistent<v8::FunctionTemplate> V8TestOverloadedConstructors::GetTemplate(v
8::Isolate* isolate, WrapperWorldType currentWorldType) | 168 v8::Persistent<v8::FunctionTemplate> V8TestOverloadedConstructors::GetTemplate(v
8::Isolate* isolate, WrapperWorldType currentWorldType) |
168 { | 169 { |
169 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 170 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 installPerContextProperties(wrapper, impl.get(), isolate); | 208 installPerContextProperties(wrapper, impl.get(), isolate); |
208 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 209 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
209 return wrapper; | 210 return wrapper; |
210 } | 211 } |
211 void V8TestOverloadedConstructors::derefObject(void* object) | 212 void V8TestOverloadedConstructors::derefObject(void* object) |
212 { | 213 { |
213 static_cast<TestOverloadedConstructors*>(object)->deref(); | 214 static_cast<TestOverloadedConstructors*>(object)->deref(); |
214 } | 215 } |
215 | 216 |
216 } // namespace WebCore | 217 } // namespace WebCore |
OLD | NEW |