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

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

Issue 32323012: IDL compiler: move EventHandler null check out of generated bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 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 | Annotate | Revision Log
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 446 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
447 { 447 {
448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
449 TestObjV8Internal::eventHandlerAttrAttributeGetter(name, info); 449 TestObjV8Internal::eventHandlerAttrAttributeGetter(name, info);
450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
451 } 451 }
452 452
453 static void eventHandlerAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 453 static void eventHandlerAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
454 { 454 {
455 TestObj* imp = V8TestObject::toNative(info.Holder()); 455 TestObj* imp = V8TestObject::toNative(info.Holder());
456 if (!jsValue->IsNull() && !jsValue->IsFunction())
457 jsValue = v8::Null(info.GetIsolate());
458 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF orIsolate(info.GetIsolate())), jsValue, V8TestObject::eventListenerCacheIndex, i nfo.GetIsolate()); 456 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF orIsolate(info.GetIsolate())), jsValue, V8TestObject::eventListenerCacheIndex, i nfo.GetIsolate());
459 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, true , ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); 457 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, true , ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate()));
460 } 458 }
461 459
462 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 460 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
463 { 461 {
464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
465 TestObjV8Internal::eventHandlerAttrAttributeSetter(name, jsValue, info); 463 TestObjV8Internal::eventHandlerAttrAttributeSetter(name, jsValue, info);
466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
467 } 465 }
(...skipping 5066 matching lines...) Expand 10 before | Expand all | Expand 10 after
5534 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5532 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5535 return wrapper; 5533 return wrapper;
5536 } 5534 }
5537 5535
5538 void V8TestObject::derefObject(void* object) 5536 void V8TestObject::derefObject(void* object)
5539 { 5537 {
5540 fromInternalPointer(object)->deref(); 5538 fromInternalPointer(object)->deref();
5541 } 5539 }
5542 5540
5543 } // namespace WebCore 5541 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698