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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 for (size_t i = 0; i < names.size(); ++i) | 248 for (size_t i = 0; i < names.size(); ++i) |
249 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); | 249 v8names->Set(v8Integer(i, info.GetIsolate()), v8String(names[i], info.Ge
tIsolate())); |
250 v8SetReturnValue(info, v8names); | 250 v8SetReturnValue(info, v8names); |
251 } | 251 } |
252 | 252 |
253 void V8TestEventTarget::namedPropertyQuery(v8::Local<v8::String> name, const v8:
:PropertyCallbackInfo<v8::Integer>& info) | 253 void V8TestEventTarget::namedPropertyQuery(v8::Local<v8::String> name, const v8:
:PropertyCallbackInfo<v8::Integer>& info) |
254 { | 254 { |
255 TestEventTarget* collection = toNative(info.Holder()); | 255 TestEventTarget* collection = toNative(info.Holder()); |
256 AtomicString propertyName = toWebCoreAtomicString(name); | 256 AtomicString propertyName = toWebCoreAtomicString(name); |
257 ExceptionCode ec = 0; | 257 ExceptionCode ec = 0; |
258 int returnValue = 0; | 258 bool result = collection->namedPropertyQuery(propertyName, ec); |
259 bool result = collection->namedPropertyQuery(propertyName, returnValue, ec); | |
260 if (ec) { | 259 if (ec) { |
261 setDOMException(ec, info.GetIsolate()); | 260 setDOMException(ec, info.GetIsolate()); |
262 return; | 261 return; |
263 } | 262 } |
264 if (!result) | 263 if (!result) |
265 return; | 264 return; |
266 v8SetReturnValueInt(info, 0); | 265 v8SetReturnValueInt(info, v8::None); |
267 } | 266 } |
268 | 267 |
269 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v8::H
andle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType current
WorldType) | 268 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v8::H
andle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType current
WorldType) |
270 { | 269 { |
271 desc->ReadOnlyPrototype(); | 270 desc->ReadOnlyPrototype(); |
272 | 271 |
273 v8::Local<v8::Signature> defaultSignature; | 272 v8::Local<v8::Signature> defaultSignature; |
274 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventTar
get", v8::Local<v8::FunctionTemplate>(), V8TestEventTarget::internalFieldCount, | 273 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventTar
get", v8::Local<v8::FunctionTemplate>(), V8TestEventTarget::internalFieldCount, |
275 0, 0, | 274 0, 0, |
276 V8TestEventTargetMethods, WTF_ARRAY_LENGTH(V8TestEventTargetMethods), is
olate, currentWorldType); | 275 V8TestEventTargetMethods, WTF_ARRAY_LENGTH(V8TestEventTargetMethods), is
olate, currentWorldType); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 326 |
328 | 327 |
329 v8::Handle<v8::Object> V8TestEventTarget::createWrapper(PassRefPtr<TestEventTarg
et> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 328 v8::Handle<v8::Object> V8TestEventTarget::createWrapper(PassRefPtr<TestEventTarg
et> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
330 { | 329 { |
331 ASSERT(impl.get()); | 330 ASSERT(impl.get()); |
332 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 331 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
333 | 332 |
334 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 333 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); |
335 if (UNLIKELY(wrapper.IsEmpty())) | 334 if (UNLIKELY(wrapper.IsEmpty())) |
336 return wrapper; | 335 return wrapper; |
337 | |
338 installPerContextProperties(wrapper, impl.get(), isolate); | 336 installPerContextProperties(wrapper, impl.get(), isolate); |
339 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 337 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
340 return wrapper; | 338 return wrapper; |
341 } | 339 } |
342 void V8TestEventTarget::derefObject(void* object) | 340 void V8TestEventTarget::derefObject(void* object) |
343 { | 341 { |
344 static_cast<TestEventTarget*>(object)->deref(); | 342 static_cast<TestEventTarget*>(object)->deref(); |
345 } | 343 } |
346 | 344 |
347 } // namespace WebCore | 345 } // namespace WebCore |
OLD | NEW |