Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: Source/bindings/tests/results/V8TestEventTarget.cpp

Issue 14044026: Ready for latest WebIDL for named property getters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: fixed spaces Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return toV8(element.release(), info.Holder(), info.GetIsolate()); 201 return toV8(element.release(), info.Holder(), info.GetIsolate());
202 } 202 }
203 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin g> name, const v8::AccessorInfo& info) 203 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin g> name, const v8::AccessorInfo& info)
204 { 204 {
205 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 205 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
206 return v8Undefined(); 206 return v8Undefined();
207 if (info.Holder()->HasRealNamedCallbackProperty(name)) 207 if (info.Holder()->HasRealNamedCallbackProperty(name))
208 return v8Undefined(); 208 return v8Undefined();
209 209
210 v8::Local<v8::Object> object = info.Holder(); 210 v8::Local<v8::Object> object = info.Holder();
211 v8::Handle<v8::Object> creationContext = info.Holder();
212 v8::Isolate* isolate = info.GetIsolate();
213
214 ASSERT(V8DOMWrapper::maybeDOMWrapper(object)); 211 ASSERT(V8DOMWrapper::maybeDOMWrapper(object));
215 ASSERT(toWrapperTypeInfo(object) != &V8Node::info); 212 ASSERT(toWrapperTypeInfo(object) != &V8Node::info);
216 TestEventTarget* collection = toNative(object); 213 TestEventTarget* collection = toNative(object);
217 214
218 AtomicString propertyName = toWebCoreAtomicStringWithNullCheck(name); 215 AtomicString propertyName = toWebCoreAtomicStringWithNullCheck(name);
219 RefPtr<Node> element = collection->namedItem(propertyName); 216 RefPtr<Node> element = collection->namedItem(propertyName);
220 217
221 if (!element) 218 if (!element)
222 return v8Undefined(); 219 return v8Undefined();
223 220
224 return toV8(element.release(), creationContext, isolate); 221 return toV8Fast(element.release(), info, collection);
225 } 222 }
226 223
227 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v 8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType) 224 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v 8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType)
228 { 225 {
229 desc->ReadOnlyPrototype(); 226 desc->ReadOnlyPrototype();
230 227
231 v8::Local<v8::Signature> defaultSignature; 228 v8::Local<v8::Signature> defaultSignature;
232 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventTar get", v8::Persistent<v8::FunctionTemplate>(), V8TestEventTarget::internalFieldCo unt, 229 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestEventTar get", v8::Persistent<v8::FunctionTemplate>(), V8TestEventTarget::internalFieldCo unt,
233 0, 0, 230 0, 0,
234 V8TestEventTargetMethods, WTF_ARRAY_LENGTH(V8TestEventTargetMethods), is olate, currentWorldType); 231 V8TestEventTargetMethods, WTF_ARRAY_LENGTH(V8TestEventTargetMethods), is olate, currentWorldType);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 installPerContextProperties(wrapper, impl.get(), isolate); 297 installPerContextProperties(wrapper, impl.get(), isolate);
301 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 298 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
302 return wrapper; 299 return wrapper;
303 } 300 }
304 void V8TestEventTarget::derefObject(void* object) 301 void V8TestEventTarget::derefObject(void* object)
305 { 302 {
306 static_cast<TestEventTarget*>(object)->deref(); 303 static_cast<TestEventTarget*>(object)->deref();
307 } 304 }
308 305
309 } // namespace WebCore 306 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestEventTarget.idl ('k') | Source/core/dom/DOMNamedFlowCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698