| OLD | NEW |
| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 return; | 454 return; |
| 455 } | 455 } |
| 456 | 456 |
| 457 static void stringAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v
8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 457 static void stringAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v
8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 458 { | 458 { |
| 459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 460 TestObjV8Internal::stringAttrAttrSetter(name, value, info); | 460 TestObjV8Internal::stringAttrAttrSetter(name, value, info); |
| 461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 462 } | 462 } |
| 463 | 463 |
| 464 static void eventListenerAttrAttrGetter(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 464 static void eventHandlerAttrAttrGetter(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 465 { | 465 { |
| 466 TestObj* imp = V8TestObject::toNative(info.Holder()); | 466 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 467 EventListener* listener = imp->eventListenerAttr(isolatedWorldForIsolate(inf
o.GetIsolate())); | 467 EventListener* listener = imp->eventHandlerAttr(isolatedWorldForIsolate(info
.GetIsolate())); |
| 468 v8SetReturnValue(info, listener ? v8::Handle<v8::Value>(V8AbstractEventListe
ner::cast(listener)->getListenerObject(imp->scriptExecutionContext())) : v8::Han
dle<v8::Value>(v8::Null(info.GetIsolate()))); | 468 v8SetReturnValue(info, listener ? v8::Handle<v8::Value>(V8AbstractEventListe
ner::cast(listener)->getListenerObject(imp->scriptExecutionContext())) : v8::Han
dle<v8::Value>(v8::Null(info.GetIsolate()))); |
| 469 return; | 469 return; |
| 470 } | 470 } |
| 471 | 471 |
| 472 static void eventListenerAttrAttrGetterCallback(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 472 static void eventHandlerAttrAttrGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 473 { | 473 { |
| 474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 475 TestObjV8Internal::eventListenerAttrAttrGetter(name, info); | 475 TestObjV8Internal::eventHandlerAttrAttrGetter(name, info); |
| 476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 477 } | 477 } |
| 478 | 478 |
| 479 static void eventListenerAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) | 479 static void eventHandlerAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8:
:Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 480 { | 480 { |
| 481 TestObj* imp = V8TestObject::toNative(info.Holder()); | 481 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 482 transferHiddenDependency(info.Holder(), imp->eventListenerAttr(isolatedWorld
ForIsolate(info.GetIsolate())), value, V8TestObject::eventListenerCacheIndex, in
fo.GetIsolate()); | 482 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF
orIsolate(info.GetIsolate())), value, V8TestObject::eventListenerCacheIndex, inf
o.GetIsolate()); |
| 483 imp->setEventListenerAttr(V8EventListenerList::getEventListener(value, true,
ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 483 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(value, true,
ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
| 484 return; | 484 return; |
| 485 } | 485 } |
| 486 | 486 |
| 487 static void eventListenerAttrAttrSetterCallback(v8::Local<v8::String> name, v8::
Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 487 static void eventHandlerAttrAttrSetterCallback(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 488 { | 488 { |
| 489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 490 TestObjV8Internal::eventListenerAttrAttrSetter(name, value, info); | 490 TestObjV8Internal::eventHandlerAttrAttrSetter(name, value, info); |
| 491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 492 } | 492 } |
| 493 | 493 |
| 494 static void testObjAttrAttrGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 494 static void testObjAttrAttrGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
| 495 { | 495 { |
| 496 TestObj* imp = V8TestObject::toNative(info.Holder()); | 496 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 497 v8SetReturnValue(info, toV8Fast(imp->testObjAttr(), info, imp)); | 497 v8SetReturnValue(info, toV8Fast(imp->testObjAttr(), info, imp)); |
| 498 return; | 498 return; |
| 499 } | 499 } |
| 500 | 500 |
| (...skipping 4783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5284 // Attribute 'unsignedShortAttr' | 5284 // Attribute 'unsignedShortAttr' |
| 5285 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttrGetterCallback
, TestObjV8Internal::unsignedShortAttrAttrSetterCallback, 0, 0, 0 /* no data */,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, | 5285 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttrGetterCallback
, TestObjV8Internal::unsignedShortAttrAttrSetterCallback, 0, 0, 0 /* no data */,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, |
| 5286 // Attribute 'longAttr' | 5286 // Attribute 'longAttr' |
| 5287 {"longAttr", TestObjV8Internal::longAttrAttrGetterCallback, TestObjV8Interna
l::longAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 5287 {"longAttr", TestObjV8Internal::longAttrAttrGetterCallback, TestObjV8Interna
l::longAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
| 5288 // Attribute 'longLongAttr' | 5288 // Attribute 'longLongAttr' |
| 5289 {"longLongAttr", TestObjV8Internal::longLongAttrAttrGetterCallback, TestObjV
8Internal::longLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 5289 {"longLongAttr", TestObjV8Internal::longLongAttrAttrGetterCallback, TestObjV
8Internal::longLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 5290 // Attribute 'unsignedLongLongAttr' | 5290 // Attribute 'unsignedLongLongAttr' |
| 5291 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttrGetterCa
llback, TestObjV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 5291 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttrGetterCa
llback, TestObjV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
| 5292 // Attribute 'stringAttr' | 5292 // Attribute 'stringAttr' |
| 5293 {"stringAttr", TestObjV8Internal::stringAttrAttrGetterCallback, TestObjV8Int
ernal::stringAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 5293 {"stringAttr", TestObjV8Internal::stringAttrAttrGetterCallback, TestObjV8Int
ernal::stringAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 5294 // Attribute 'eventListenerAttr' | 5294 // Attribute 'eventHandlerAttr' |
| 5295 {"eventListenerAttr", TestObjV8Internal::eventListenerAttrAttrGetterCallback
, TestObjV8Internal::eventListenerAttrAttrSetterCallback, 0, 0, 0 /* no data */,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, | 5295 {"eventHandlerAttr", TestObjV8Internal::eventHandlerAttrAttrGetterCallback,
TestObjV8Internal::eventHandlerAttrAttrSetterCallback, 0, 0, 0 /* no data */, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 5296 // Attribute 'testObjAttr' | 5296 // Attribute 'testObjAttr' |
| 5297 {"testObjAttr", TestObjV8Internal::testObjAttrAttrGetterCallback, TestObjV8I
nternal::testObjAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 5297 {"testObjAttr", TestObjV8Internal::testObjAttrAttrGetterCallback, TestObjV8I
nternal::testObjAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
| 5298 // Attribute 'XMLObjAttr' | 5298 // Attribute 'XMLObjAttr' |
| 5299 {"XMLObjAttr", TestObjV8Internal::XMLObjAttrAttrGetterCallback, TestObjV8Int
ernal::XMLObjAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 5299 {"XMLObjAttr", TestObjV8Internal::XMLObjAttrAttrGetterCallback, TestObjV8Int
ernal::XMLObjAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 5300 // Attribute 'create' | 5300 // Attribute 'create' |
| 5301 {"create", TestObjV8Internal::createAttrGetterCallback, TestObjV8Internal::c
reateAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5301 {"create", TestObjV8Internal::createAttrGetterCallback, TestObjV8Internal::c
reateAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 5302 // Attribute 'reflectedStringAttr' | 5302 // Attribute 'reflectedStringAttr' |
| 5303 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttrGetterCall
back, TestObjV8Internal::reflectedStringAttrAttrSetterCallback, 0, 0, 0 /* no da
ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, | 5303 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttrGetterCall
back, TestObjV8Internal::reflectedStringAttrAttrSetterCallback, 0, 0, 0 /* no da
ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
| 5304 // Attribute 'reflectedIntegralAttr' | 5304 // Attribute 'reflectedIntegralAttr' |
| 5305 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttrGetter
Callback, TestObjV8Internal::reflectedIntegralAttrAttrSetterCallback, 0, 0, 0 /*
no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, | 5305 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttrGetter
Callback, TestObjV8Internal::reflectedIntegralAttrAttrSetterCallback, 0, 0, 0 /*
no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5764 installPerContextProperties(wrapper, impl.get(), isolate); | 5764 installPerContextProperties(wrapper, impl.get(), isolate); |
| 5765 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5765 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
| 5766 return wrapper; | 5766 return wrapper; |
| 5767 } | 5767 } |
| 5768 void V8TestObject::derefObject(void* object) | 5768 void V8TestObject::derefObject(void* object) |
| 5769 { | 5769 { |
| 5770 fromInternalPointer(object)->deref(); | 5770 fromInternalPointer(object)->deref(); |
| 5771 } | 5771 } |
| 5772 | 5772 |
| 5773 } // namespace WebCore | 5773 } // namespace WebCore |
| OLD | NEW |