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

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

Issue 32323012: IDL compiler: move EventHandler null check out of generated bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info) 1344 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info)
1345 { 1345 {
1346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1347 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info) ; 1347 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info) ;
1348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1349 } 1349 }
1350 1350
1351 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1351 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1352 { 1352 {
1353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1354 if (!jsValue->IsNull() && !jsValue->IsFunction())
1355 jsValue = v8::Null(info.GetIsolate());
1356 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa cheIndex, info.GetIsolate()); 1354 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa cheIndex, info.GetIsolate());
1357 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); 1355 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate()));
1358 } 1356 }
1359 1357
1360 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1358 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1361 { 1359 {
1362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1363 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal ue, info); 1361 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal ue, info);
1364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1365 } 1363 }
(...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after
3183 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent); 3181 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent);
3184 return wrapper; 3182 return wrapper;
3185 } 3183 }
3186 3184
3187 void V8TestObjectPython::derefObject(void* object) 3185 void V8TestObjectPython::derefObject(void* object)
3188 { 3186 {
3189 fromInternalPointer(object)->deref(); 3187 fromInternalPointer(object)->deref();
3190 } 3188 }
3191 3189
3192 } // namespace WebCore 3190 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698