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

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

Issue 14751005: Support for latest WebIDL for indexed property getters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: do not generate enumerator in case of WebKitCSSKeyframesRule Created 7 years, 7 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 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 {"removeEventListener", TestEventTargetV8Internal::removeEventListenerMethod Callback, 0, 2}, 192 {"removeEventListener", TestEventTargetV8Internal::removeEventListenerMethod Callback, 0, 2},
193 }; 193 };
194 194
195 v8::Handle<v8::Value> V8TestEventTarget::indexedPropertyGetter(uint32_t index, c onst v8::AccessorInfo& info) 195 v8::Handle<v8::Value> V8TestEventTarget::indexedPropertyGetter(uint32_t index, c onst v8::AccessorInfo& info)
196 { 196 {
197 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); 197 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder()));
198 TestEventTarget* collection = toNative(info.Holder()); 198 TestEventTarget* collection = toNative(info.Holder());
199 RefPtr<Node> element = collection->item(index); 199 RefPtr<Node> element = collection->item(index);
200 if (!element) 200 if (!element)
201 return v8Undefined(); 201 return v8Undefined();
202 return toV8(element.release(), info.Holder(), info.GetIsolate()); 202 return toV8Fast(element.release(), info, collection);
203 } 203 }
204 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin g> name, const v8::AccessorInfo& info) 204 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin g> name, const v8::AccessorInfo& info)
205 { 205 {
206 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 206 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
207 return v8Undefined(); 207 return v8Undefined();
208 if (info.Holder()->HasRealNamedCallbackProperty(name)) 208 if (info.Holder()->HasRealNamedCallbackProperty(name))
209 return v8Undefined(); 209 return v8Undefined();
210 210
211 v8::Local<v8::Object> object = info.Holder(); 211 v8::Local<v8::Object> object = info.Holder();
212 ASSERT(V8DOMWrapper::maybeDOMWrapper(object)); 212 ASSERT(V8DOMWrapper::maybeDOMWrapper(object));
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 installPerContextProperties(wrapper, impl.get(), isolate); 298 installPerContextProperties(wrapper, impl.get(), isolate);
299 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 299 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
300 return wrapper; 300 return wrapper;
301 } 301 }
302 void V8TestEventTarget::derefObject(void* object) 302 void V8TestEventTarget::derefObject(void* object)
303 { 303 {
304 static_cast<TestEventTarget*>(object)->deref(); 304 static_cast<TestEventTarget*>(object)->deref();
305 } 305 }
306 306
307 } // namespace WebCore 307 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698