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 129 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) | 140 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl
ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl
dType currentWorldType) |
141 { | 141 { |
142 desc->ReadOnlyPrototype(); | 142 desc->ReadOnlyPrototype(); |
143 | 143 |
144 v8::Local<v8::Signature> defaultSignature; | 144 v8::Local<v8::Signature> defaultSignature; |
145 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter
nalFieldCount, | 145 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestEventConstructor::inter
nalFieldCount, |
146 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr
s), | 146 V8TestEventConstructorAttrs, WTF_ARRAY_LENGTH(V8TestEventConstructorAttr
s), |
147 0, 0, isolate, currentWorldType); | 147 0, 0, isolate, currentWorldType); |
148 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 148 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
149 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); | 149 desc->SetCallHandler(V8TestEventConstructor::constructorCallback); |
| 150 desc->SetLength(1); |
150 | 151 |
151 | 152 |
152 // Custom toString template | 153 // Custom toString template |
153 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 154 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
154 return desc; | 155 return desc; |
155 } | 156 } |
156 | 157 |
157 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) |
158 { | 159 { |
159 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 160 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 installPerContextProperties(wrapper, impl.get(), isolate); | 198 installPerContextProperties(wrapper, impl.get(), isolate); |
198 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); |
199 return wrapper; | 200 return wrapper; |
200 } | 201 } |
201 void V8TestEventConstructor::derefObject(void* object) | 202 void V8TestEventConstructor::derefObject(void* object) |
202 { | 203 { |
203 static_cast<TestEventConstructor*>(object)->deref(); | 204 static_cast<TestEventConstructor*>(object)->deref(); |
204 } | 205 } |
205 | 206 |
206 } // namespace WebCore | 207 } // namespace WebCore |
OLD | NEW |