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

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

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 6 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) 181 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
182 { 182 {
183 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 183 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
184 return v8Undefined(); 184 return v8Undefined();
185 if (info.Holder()->HasRealNamedCallbackProperty(name)) 185 if (info.Holder()->HasRealNamedCallbackProperty(name))
186 return v8Undefined(); 186 return v8Undefined();
187 TestEventTarget* collection = toNative(info.Holder()); 187 TestEventTarget* collection = toNative(info.Holder());
188 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); 188 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name);
189 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); 189 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value);
190 bool result = collection->anonymousNamedSetter(propertyName, propertyValue); 190 bool result = collection->anonymousNamedSetter(propertyName, propertyValue, value->IsNull(), value->IsUndefined());
kojih 2013/05/28 06:51:28 In HTMLSelectElement and HTMLOptionsCollection, in
haraken 2013/05/28 07:02:43 This is dirty... How do other browsers behave? I
191 if (!result) 191 if (!result)
192 return v8Undefined(); 192 return v8Undefined();
193 return value; 193 return value;
194 } 194 }
195 195
196 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v 8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType) 196 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventTargetTemplate(v 8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType)
197 { 197 {
198 desc->ReadOnlyPrototype(); 198 desc->ReadOnlyPrototype();
199 199
200 v8::Local<v8::Signature> defaultSignature; 200 v8::Local<v8::Signature> defaultSignature;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 installPerContextProperties(wrapper, impl.get(), isolate); 265 installPerContextProperties(wrapper, impl.get(), isolate);
266 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 266 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
267 return wrapper; 267 return wrapper;
268 } 268 }
269 void V8TestEventTarget::derefObject(void* object) 269 void V8TestEventTarget::derefObject(void* object)
270 { 270 {
271 static_cast<TestEventTarget*>(object)->deref(); 271 static_cast<TestEventTarget*>(object)->deref();
272 } 272 }
273 273
274 } // namespace WebCore 274 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698