OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 157 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
158 TestEventTarget* collection = toNative(info.Holder()); | 158 TestEventTarget* collection = toNative(info.Holder()); |
159 RefPtr<Node> element = collection->item(index); | 159 RefPtr<Node> element = collection->item(index); |
160 if (!element) | 160 if (!element) |
161 return v8Undefined(); | 161 return v8Undefined(); |
162 return toV8Fast(element.release(), info, collection); | 162 return toV8Fast(element.release(), info, collection); |
163 } | 163 } |
164 | 164 |
165 v8::Handle<v8::Boolean> V8TestEventTarget::indexedPropertyDeleter(unsigned index
, const v8::AccessorInfo& info) | 165 v8::Handle<v8::Boolean> V8TestEventTarget::indexedPropertyDeleter(unsigned index
, const v8::AccessorInfo& info) |
166 { | 166 { |
167 | |
168 TestEventTarget* collection = toNative(info.Holder()); | 167 TestEventTarget* collection = toNative(info.Holder()); |
169 ExceptionCode ec = 0; | 168 ExceptionCode ec = 0; |
170 bool result = collection->anonymousIndexedDeleter(index, ec); | 169 bool result = collection->anonymousIndexedDeleter(index, ec); |
171 if (ec) { | 170 if (ec) { |
172 setDOMException(ec, info.GetIsolate()); | 171 setDOMException(ec, info.GetIsolate()); |
173 return v8::Handle<v8::Boolean>(); | 172 return v8::Handle<v8::Boolean>(); |
174 } | 173 } |
175 return v8Boolean(result); | 174 return v8Boolean(result); |
176 } | 175 } |
177 | 176 |
(...skipping 15 matching lines...) Expand all Loading... |
193 | 192 |
194 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) | 193 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) |
195 { | 194 { |
196 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 195 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
197 return v8Undefined(); | 196 return v8Undefined(); |
198 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 197 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
199 return v8Undefined(); | 198 return v8Undefined(); |
200 TestEventTarget* collection = toNative(info.Holder()); | 199 TestEventTarget* collection = toNative(info.Holder()); |
201 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); | 200 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); |
202 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); | 201 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); |
203 bool result = collection->anonymousNamedSetter(propertyName, propertyValue); | 202 bool result; |
| 203 if (value->IsUndefined()) |
| 204 result = collection->anonymousNamedSetterUndefined(propertyName); |
| 205 else |
| 206 result = collection->anonymousNamedSetter(propertyName, propertyValue); |
204 if (!result) | 207 if (!result) |
205 return v8Undefined(); | 208 return v8Undefined(); |
206 return value; | 209 return value; |
207 } | 210 } |
208 | 211 |
209 v8::Handle<v8::Boolean> V8TestEventTarget::namedPropertyDeleter(v8::Local<v8::St
ring> name, const v8::AccessorInfo& info) | 212 v8::Handle<v8::Boolean> V8TestEventTarget::namedPropertyDeleter(v8::Local<v8::St
ring> name, const v8::AccessorInfo& info) |
210 { | 213 { |
211 | |
212 TestEventTarget* collection = toNative(info.Holder()); | 214 TestEventTarget* collection = toNative(info.Holder()); |
213 AtomicString propertyName = toWebCoreAtomicString(name); | 215 AtomicString propertyName = toWebCoreAtomicString(name); |
214 bool result = collection->anonymousNamedDeleter(propertyName); | 216 bool result = collection->anonymousNamedDeleter(propertyName); |
215 return v8Boolean(result); | 217 return v8Boolean(result); |
216 } | 218 } |
217 | 219 |
218 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v
8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType
currentWorldType) | 220 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v
8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType
currentWorldType) |
219 { | 221 { |
220 desc->ReadOnlyPrototype(); | 222 desc->ReadOnlyPrototype(); |
221 | 223 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 installPerContextProperties(wrapper, impl.get(), isolate); | 289 installPerContextProperties(wrapper, impl.get(), isolate); |
288 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 290 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
289 return wrapper; | 291 return wrapper; |
290 } | 292 } |
291 void V8TestEventTarget::derefObject(void* object) | 293 void V8TestEventTarget::derefObject(void* object) |
292 { | 294 { |
293 static_cast<TestEventTarget*>(object)->deref(); | 295 static_cast<TestEventTarget*>(object)->deref(); |
294 } | 296 } |
295 | 297 |
296 } // namespace WebCore | 298 } // namespace WebCore |
OLD | NEW |