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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Pers
istent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 96 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Pers
istent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
97 { | 97 { |
98 desc->ReadOnlyPrototype(); | 98 desc->ReadOnlyPrototype(); |
99 | 99 |
100 v8::Local<v8::Signature> defaultSignature; | 100 v8::Local<v8::Signature> defaultSignature; |
101 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNode", V
8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCount, | 101 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNode", V
8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCount, |
102 0, 0, | 102 0, 0, |
103 0, 0, isolate, currentWorldType); | 103 0, 0, isolate, currentWorldType); |
104 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 104 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
105 desc->SetCallHandler(V8TestNode::constructorCallback); | 105 desc->SetCallHandler(V8TestNode::constructorCallback); |
| 106 desc->SetLength(0); |
106 | 107 |
107 | 108 |
108 // Custom toString template | 109 // Custom toString template |
109 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 110 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
110 return desc; | 111 return desc; |
111 } | 112 } |
112 | 113 |
113 v8::Persistent<v8::FunctionTemplate> V8TestNode::GetTemplate(v8::Isolate* isolat
e, WrapperWorldType currentWorldType) | 114 v8::Persistent<v8::FunctionTemplate> V8TestNode::GetTemplate(v8::Isolate* isolat
e, WrapperWorldType currentWorldType) |
114 { | 115 { |
115 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 116 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 installPerContextProperties(wrapper, impl.get(), isolate); | 160 installPerContextProperties(wrapper, impl.get(), isolate); |
160 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 161 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
161 return wrapper; | 162 return wrapper; |
162 } | 163 } |
163 void V8TestNode::derefObject(void* object) | 164 void V8TestNode::derefObject(void* object) |
164 { | 165 { |
165 static_cast<TestNode*>(object)->deref(); | 166 static_cast<TestNode*>(object)->deref(); |
166 } | 167 } |
167 | 168 |
168 } // namespace WebCore | 169 } // namespace WebCore |
OLD | NEW |