| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 344 } |
| 345 | 345 |
| 346 static void stringOrDoubleAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 346 static void stringOrDoubleAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 347 { | 347 { |
| 348 v8::Local<v8::Value> v8Value = info[0]; | 348 v8::Local<v8::Value> v8Value = info[0]; |
| 349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 350 TestInterfaceImplementationV8Internal::stringOrDoubleAttributeAttributeSette
r(v8Value, info); | 350 TestInterfaceImplementationV8Internal::stringOrDoubleAttributeAttributeSette
r(v8Value, info); |
| 351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 352 } | 352 } |
| 353 | 353 |
| 354 static void staticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) | 354 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 355 { | 355 { |
| 356 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); | 356 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); |
| 357 } | 357 } |
| 358 | 358 |
| 359 static void staticStringAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 359 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 360 { | 360 { |
| 361 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 361 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 362 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); | 362 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); |
| 363 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 363 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 364 } | 364 } |
| 365 | 365 |
| 366 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 366 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 367 { | 367 { |
| 368 V8StringResource<> cppValue = v8Value; | 368 V8StringResource<> cppValue = v8Value; |
| 369 if (!cppValue.prepare()) | 369 if (!cppValue.prepare()) |
| 370 return; | 370 return; |
| 371 TestInterfaceImplementation::setStaticStringAttribute(cppValue); | 371 TestInterfaceImplementation::setStaticStringAttribute(cppValue); |
| 372 } | 372 } |
| 373 | 373 |
| 374 static void staticStringAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 374 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 375 { | 375 { |
| 376 v8::Local<v8::Value> v8Value = info[0]; | |
| 377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 378 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter(
v8Value, info); | 377 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter(
v8Value, info); |
| 379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 380 } | 379 } |
| 381 | 380 |
| 382 static void staticReturnDOMWrapperAttributeAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 381 static void staticReturnDOMWrapperAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
| 383 { | 382 { |
| 384 v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperAt
tribute(), info.GetIsolate()->GetCurrentContext()->Global()); | 383 v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperAt
tribute(), info.GetIsolate()->GetCurrentContext()->Global()); |
| 385 } | 384 } |
| 386 | 385 |
| 387 static void staticReturnDOMWrapperAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 386 static void staticReturnDOMWrapperAttributeAttributeGetterCallback(v8::Local<v8:
:Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 388 { | 387 { |
| 389 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 390 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttrib
uteGetter(info); | 389 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttrib
uteGetter(info); |
| 391 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 392 } | 391 } |
| 393 | 392 |
| 394 static void staticReturnDOMWrapperAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 393 static void staticReturnDOMWrapperAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 395 { | 394 { |
| 396 v8::Local<v8::Object> holder = info.Holder(); | 395 v8::Local<v8::Object> holder = info.Holder(); |
| 397 ExceptionState exceptionState(ExceptionState::SetterContext, "staticReturnDO
MWrapperAttribute", "TestInterface", holder, info.GetIsolate()); | 396 ExceptionState exceptionState(ExceptionState::SetterContext, "staticReturnDO
MWrapperAttribute", "TestInterface", holder, info.GetIsolate()); |
| 398 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 397 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
| 399 if (!cppValue) { | 398 if (!cppValue) { |
| 400 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 399 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
| 401 exceptionState.throwIfNeeded(); | 400 exceptionState.throwIfNeeded(); |
| 402 return; | 401 return; |
| 403 } | 402 } |
| 404 TestInterfaceImplementation::setStaticReturnDOMWrapperAttribute(WTF::getPtr(
cppValue)); | 403 TestInterfaceImplementation::setStaticReturnDOMWrapperAttribute(WTF::getPtr(
cppValue)); |
| 405 } | 404 } |
| 406 | 405 |
| 407 static void staticReturnDOMWrapperAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 406 static void staticReturnDOMWrapperAttributeAttributeSetterCallback(v8::Local<v8:
:Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
| 408 { | 407 { |
| 409 v8::Local<v8::Value> v8Value = info[0]; | |
| 410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 411 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttrib
uteSetter(v8Value, info); | 409 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttrib
uteSetter(v8Value, info); |
| 412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 413 } | 411 } |
| 414 | 412 |
| 415 static void legacyInterfaceTypeCheckingAttributeAttributeGetter(const v8::Functi
onCallbackInfo<v8::Value>& info) | 413 static void legacyInterfaceTypeCheckingAttributeAttributeGetter(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 416 { | 414 { |
| 417 v8::Local<v8::Object> holder = info.Holder(); | 415 v8::Local<v8::Object> holder = info.Holder(); |
| 418 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 416 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 419 v8SetReturnValueFast(info, WTF::getPtr(impl->legacyInterfaceTypeCheckingAttr
ibute()), impl); | 417 v8SetReturnValueFast(info, WTF::getPtr(impl->legacyInterfaceTypeCheckingAttr
ibute()), impl); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 } | 570 } |
| 573 | 571 |
| 574 static void lenientThisAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 572 static void lenientThisAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 575 { | 573 { |
| 576 v8::Local<v8::Value> v8Value = info[0]; | 574 v8::Local<v8::Value> v8Value = info[0]; |
| 577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 578 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeSetter(v
8Value, info); | 576 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeSetter(v
8Value, info); |
| 579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 580 } | 578 } |
| 581 | 579 |
| 582 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 580 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 583 { | 581 { |
| 584 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO
nlyLongAttribute()); | 582 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO
nlyLongAttribute()); |
| 585 } | 583 } |
| 586 | 584 |
| 587 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 585 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 588 { | 586 { |
| 589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 587 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 590 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute
AttributeGetter(info); | 588 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute
AttributeGetter(info); |
| 591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 589 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 592 } | 590 } |
| 593 | 591 |
| 594 static void implementsStaticStringAttributeAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 592 static void implementsStaticStringAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
| 595 { | 593 { |
| 596 v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticSt
ringAttribute(), info.GetIsolate()); | 594 v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticSt
ringAttribute(), info.GetIsolate()); |
| 597 } | 595 } |
| 598 | 596 |
| 599 static void implementsStaticStringAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 597 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8:
:Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 600 { | 598 { |
| 601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 602 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteGetter(info); | 600 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteGetter(info); |
| 603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 604 } | 602 } |
| 605 | 603 |
| 606 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 604 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 607 { | 605 { |
| 608 V8StringResource<> cppValue = v8Value; | 606 V8StringResource<> cppValue = v8Value; |
| 609 if (!cppValue.prepare()) | 607 if (!cppValue.prepare()) |
| 610 return; | 608 return; |
| 611 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue); | 609 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue); |
| 612 } | 610 } |
| 613 | 611 |
| 614 static void implementsStaticStringAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 612 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
:Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
| 615 { | 613 { |
| 616 v8::Local<v8::Value> v8Value = info[0]; | |
| 617 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 614 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 618 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteSetter(v8Value, info); | 615 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteSetter(v8Value, info); |
| 619 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 616 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 620 } | 617 } |
| 621 | 618 |
| 622 static void implementsReadonlyStringAttributeAttributeGetter(const v8::FunctionC
allbackInfo<v8::Value>& info) | 619 static void implementsReadonlyStringAttributeAttributeGetter(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 623 { | 620 { |
| 624 v8::Local<v8::Object> holder = info.Holder(); | 621 v8::Local<v8::Object> holder = info.Holder(); |
| 625 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 622 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 626 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info
.GetIsolate()); | 623 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info
.GetIsolate()); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 } | 758 } |
| 762 | 759 |
| 763 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 760 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 764 { | 761 { |
| 765 v8::Local<v8::Value> v8Value = info[0]; | 762 v8::Local<v8::Value> v8Value = info[0]; |
| 766 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 763 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 767 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeSetter(v8Value, info); | 764 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeSetter(v8Value, info); |
| 768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 765 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 769 } | 766 } |
| 770 | 767 |
| 771 static void implements2StaticStringAttributeAttributeGetter(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 768 static void implements2StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 772 { | 769 { |
| 773 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu
te(), info.GetIsolate()); | 770 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu
te(), info.GetIsolate()); |
| 774 } | 771 } |
| 775 | 772 |
| 776 static void implements2StaticStringAttributeAttributeGetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 773 static void implements2StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 777 { | 774 { |
| 778 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 775 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 779 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteGetter(info); | 776 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteGetter(info); |
| 780 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 781 } | 778 } |
| 782 | 779 |
| 783 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 780 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 784 { | 781 { |
| 785 V8StringResource<> cppValue = v8Value; | 782 V8StringResource<> cppValue = v8Value; |
| 786 if (!cppValue.prepare()) | 783 if (!cppValue.prepare()) |
| 787 return; | 784 return; |
| 788 TestImplements2::setImplements2StaticStringAttribute(cppValue); | 785 TestImplements2::setImplements2StaticStringAttribute(cppValue); |
| 789 } | 786 } |
| 790 | 787 |
| 791 static void implements2StaticStringAttributeAttributeSetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 788 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
| 792 { | 789 { |
| 793 v8::Local<v8::Value> v8Value = info[0]; | |
| 794 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 795 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteSetter(v8Value, info); | 791 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteSetter(v8Value, info); |
| 796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 792 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 797 } | 793 } |
| 798 | 794 |
| 799 static void implements2StringAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) | 795 static void implements2StringAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) |
| 800 { | 796 { |
| 801 v8::Local<v8::Object> holder = info.Holder(); | 797 v8::Local<v8::Object> holder = info.Holder(); |
| 802 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 798 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 803 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im
pl), info.GetIsolate()); | 799 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im
pl), info.GetIsolate()); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 } | 849 } |
| 854 | 850 |
| 855 static void implements3StringAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 851 static void implements3StringAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 856 { | 852 { |
| 857 v8::Local<v8::Value> v8Value = info[0]; | 853 v8::Local<v8::Value> v8Value = info[0]; |
| 858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 854 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 859 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe
tter(v8Value, info); | 855 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe
tter(v8Value, info); |
| 860 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 856 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 861 } | 857 } |
| 862 | 858 |
| 863 static void implements3StaticStringAttributeAttributeGetter(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 859 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 864 { | 860 { |
| 865 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati
cStringAttribute(), info.GetIsolate()); | 861 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati
cStringAttribute(), info.GetIsolate()); |
| 866 } | 862 } |
| 867 | 863 |
| 868 static void implements3StaticStringAttributeAttributeGetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 864 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 869 { | 865 { |
| 870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 871 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteGetter(info); | 867 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteGetter(info); |
| 872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 873 } | 869 } |
| 874 | 870 |
| 875 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 871 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 876 { | 872 { |
| 877 V8StringResource<> cppValue = v8Value; | 873 V8StringResource<> cppValue = v8Value; |
| 878 if (!cppValue.prepare()) | 874 if (!cppValue.prepare()) |
| 879 return; | 875 return; |
| 880 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue)
; | 876 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue)
; |
| 881 } | 877 } |
| 882 | 878 |
| 883 static void implements3StaticStringAttributeAttributeSetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 879 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
| 884 { | 880 { |
| 885 v8::Local<v8::Value> v8Value = info[0]; | |
| 886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 887 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteSetter(v8Value, info); | 882 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteSetter(v8Value, info); |
| 888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 889 } | 884 } |
| 890 | 885 |
| 891 #if ENABLE(PARTIAL_CONDITION) | 886 #if ENABLE(PARTIAL_CONDITION) |
| 892 static void partialLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) | 887 static void partialLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 893 { | 888 { |
| 894 v8::Local<v8::Object> holder = info.Holder(); | 889 v8::Local<v8::Object> holder = info.Holder(); |
| 895 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 890 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 923 static void partialLongAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 918 static void partialLongAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 924 { | 919 { |
| 925 v8::Local<v8::Value> v8Value = info[0]; | 920 v8::Local<v8::Value> v8Value = info[0]; |
| 926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 927 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v
8Value, info); | 922 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v
8Value, info); |
| 928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 929 } | 924 } |
| 930 #endif // ENABLE(PARTIAL_CONDITION) | 925 #endif // ENABLE(PARTIAL_CONDITION) |
| 931 | 926 |
| 932 #if ENABLE(PARTIAL_CONDITION) | 927 #if ENABLE(PARTIAL_CONDITION) |
| 933 static void partialStaticLongAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) | 928 static void partialStaticLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 934 { | 929 { |
| 935 v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute()
); | 930 v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute()
); |
| 936 } | 931 } |
| 937 #endif // ENABLE(PARTIAL_CONDITION) | 932 #endif // ENABLE(PARTIAL_CONDITION) |
| 938 | 933 |
| 939 #if ENABLE(PARTIAL_CONDITION) | 934 #if ENABLE(PARTIAL_CONDITION) |
| 940 static void partialStaticLongAttributeAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 935 static void partialStaticLongAttributeAttributeGetterCallback(v8::Local<v8::Name
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 941 { | 936 { |
| 942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 943 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); | 938 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); |
| 944 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 939 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 945 } | 940 } |
| 946 #endif // ENABLE(PARTIAL_CONDITION) | 941 #endif // ENABLE(PARTIAL_CONDITION) |
| 947 | 942 |
| 948 #if ENABLE(PARTIAL_CONDITION) | 943 #if ENABLE(PARTIAL_CONDITION) |
| 949 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::FunctionCallbackInfo<v8::Value>& info) | 944 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 950 { | 945 { |
| 951 v8::Local<v8::Object> holder = info.Holder(); | 946 v8::Local<v8::Object> holder = info.Holder(); |
| 952 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); | 947 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); |
| 953 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 948 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 954 if (exceptionState.throwIfNeeded()) | 949 if (exceptionState.throwIfNeeded()) |
| 955 return; | 950 return; |
| 956 TestPartialInterface::setPartialStaticLongAttribute(cppValue); | 951 TestPartialInterface::setPartialStaticLongAttribute(cppValue); |
| 957 } | 952 } |
| 958 #endif // ENABLE(PARTIAL_CONDITION) | 953 #endif // ENABLE(PARTIAL_CONDITION) |
| 959 | 954 |
| 960 #if ENABLE(PARTIAL_CONDITION) | 955 #if ENABLE(PARTIAL_CONDITION) |
| 961 static void partialStaticLongAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 956 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Name
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 962 { | 957 { |
| 963 v8::Local<v8::Value> v8Value = info[0]; | |
| 964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 965 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe
tter(v8Value, info); | 959 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe
tter(v8Value, info); |
| 966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 967 } | 961 } |
| 968 #endif // ENABLE(PARTIAL_CONDITION) | 962 #endif // ENABLE(PARTIAL_CONDITION) |
| 969 | 963 |
| 970 #if ENABLE(PARTIAL_CONDITION) | 964 #if ENABLE(PARTIAL_CONDITION) |
| 971 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) | 965 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 972 { | 966 { |
| 973 v8::Local<v8::Object> holder = info.Holder(); | 967 v8::Local<v8::Object> holder = info.Holder(); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 } | 1122 } |
| 1129 | 1123 |
| 1130 static void partial2LongAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 1124 static void partial2LongAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 1131 { | 1125 { |
| 1132 v8::Local<v8::Value> v8Value = info[0]; | 1126 v8::Local<v8::Value> v8Value = info[0]; |
| 1133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1134 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); | 1128 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); |
| 1135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1129 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1136 } | 1130 } |
| 1137 | 1131 |
| 1138 static void partial2StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 1132 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 1139 { | 1133 { |
| 1140 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); | 1134 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); |
| 1141 } | 1135 } |
| 1142 | 1136 |
| 1143 static void partial2StaticLongAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 1137 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1144 { | 1138 { |
| 1145 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1146 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); | 1140 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); |
| 1147 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1148 } | 1142 } |
| 1149 | 1143 |
| 1150 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) | 1144 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 1151 { | 1145 { |
| 1152 v8::Local<v8::Object> holder = info.Holder(); | 1146 v8::Local<v8::Object> holder = info.Holder(); |
| 1153 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); | 1147 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); |
| 1154 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 1148 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 1155 if (exceptionState.throwIfNeeded()) | 1149 if (exceptionState.throwIfNeeded()) |
| 1156 return; | 1150 return; |
| 1157 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; | 1151 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; |
| 1158 } | 1152 } |
| 1159 | 1153 |
| 1160 static void partial2StaticLongAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 1154 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1161 { | 1155 { |
| 1162 v8::Local<v8::Value> v8Value = info[0]; | |
| 1163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1164 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); | 1157 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); |
| 1165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1166 } | 1159 } |
| 1167 | 1160 |
| 1168 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 1161 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 1169 { | 1162 { |
| 1170 if (UNLIKELY(info.Length() < 1)) { | 1163 if (UNLIKELY(info.Length() < 1)) { |
| 1171 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Len
gth()), info.GetIsolate()); | 1164 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Len
gth()), info.GetIsolate()); |
| 1172 return; | 1165 return; |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 2231 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
| 2239 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte
rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC
allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo),
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance, V8DOMConfiguration::CheckHolder}, | 2232 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte
rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC
allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo),
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance, V8DOMConfiguration::CheckHolder}, |
| 2240 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV
8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0,
const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMCo
nfiguration::CheckHolder}, | 2233 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV
8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0,
const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMCo
nfiguration::CheckHolder}, |
| 2241 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation
V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0,
const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM
Configuration::CheckHolder}, | 2234 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation
V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0,
const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM
Configuration::CheckHolder}, |
| 2242 }; | 2235 }; |
| 2243 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 2236 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 2244 #pragma clang diagnostic pop | 2237 #pragma clang diagnostic pop |
| 2245 #endif | 2238 #endif |
| 2246 | 2239 |
| 2247 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[
] = { | 2240 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[
] = { |
| 2248 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2241 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio
n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che
ckHolder}, |
| 2249 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, | 2242 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 2250 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 2243 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 2251 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres
trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2244 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres
trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8
DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon
figuration::CheckHolder}, |
| 2252 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest
rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2245 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest
rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfig
uration::CheckHolder}, |
| 2253 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib
uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, | 2246 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 2254 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD
oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st
ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2247 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD
oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st
ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}, |
| 2255 {"staticStringAttribute", TestInterfaceImplementationV8Internal::staticStrin
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::static
StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnInterface, V8DOMConfiguration::CheckHolder}, | 2248 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern
al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm
plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb
ack, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 2256 {"staticReturnDOMWrapperAttribute", TestInterfaceImplementationV8Internal::s
taticReturnDOMWrapperAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::staticReturnDOMWrapperAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2249 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo
sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa
ysExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio
n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che
ckHolder}, |
| 2257 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern
al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm
plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb
ack, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}, | 2250 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT
hisAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:
:DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::DoNotChec
kHolder}, |
| 2258 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo
sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa
ysExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2251 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO
MConfiguration::CheckHolder}, |
| 2259 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT
hisAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::DoNotCheckHolder}, | 2252 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMCon
figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigura
tion::CheckHolder}, |
| 2260 {"implementsStaticReadOnlyLongAttribute", TestInterfaceImplementationV8Inter
nal::implementsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2253 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}, |
| 2261 {"implementsStaticStringAttribute", TestInterfaceImplementationV8Internal::i
mplementsStaticStringAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsStaticStringAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2254 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, |
| 2262 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAU
LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2255 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfig
uration::CheckHolder}, |
| 2263 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static
_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2256 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::
ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckH
older}, |
| 2264 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | |
| 2265 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, | |
| 2266 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | |
| 2267 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa
tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, 0
, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Check
Holder}, | |
| 2268 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder}, | |
| 2269 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti
al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | |
| 2270 }; | 2257 }; |
| 2271 | 2258 |
| 2272 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 2259 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ |
| 2273 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, | 2260 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, |
| 2274 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, | 2261 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, |
| 2275 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 2262 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
| 2276 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 2263 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 2277 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, | 2264 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2278 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2265 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2279 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo
sedToAllScripts}, | 2266 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo
sedToAllScripts}, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2296 else | 2283 else |
| 2297 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V
8TestInterface::internalFieldCount, | 2284 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V
8TestInterface::internalFieldCount, |
| 2298 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), | 2285 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), |
| 2299 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, | 2286 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, |
| 2300 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); | 2287 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
| 2301 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 2288 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 2302 ALLOW_UNUSED_LOCAL(instanceTemplate); | 2289 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 2303 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 2290 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 2304 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 2291 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 2305 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { | 2292 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { |
| 2306 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2293 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2307 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I
nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter
faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett
erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}; | 2294 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I
nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter
faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 2308 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2295 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2309 } | 2296 } |
| 2310 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 2297 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
| 2311 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2298 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2312 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im
plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2299 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im
plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCo
nfiguration::CheckHolder}; |
| 2313 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2300 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2314 } | 2301 } |
| 2315 #if ENABLE(PARTIAL_CONDITION) | 2302 #if ENABLE(PARTIAL_CONDITION) |
| 2316 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2303 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2317 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2304 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2318 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL
ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part
ialLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2305 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL
ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part
ialLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check
Holder}; |
| 2319 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2306 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2320 } | 2307 } |
| 2321 #endif // ENABLE(PARTIAL_CONDITION) | 2308 #endif // ENABLE(PARTIAL_CONDITION) |
| 2322 #if ENABLE(PARTIAL_CONDITION) | 2309 #if ENABLE(PARTIAL_CONDITION) |
| 2323 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2310 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2324 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2311 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2325 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa
tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb
ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA
ttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2312 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa
tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb
ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 2326 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2313 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2327 } | 2314 } |
| 2328 #endif // ENABLE(PARTIAL_CONDITION) | 2315 #endif // ENABLE(PARTIAL_CONDITION) |
| 2329 #if ENABLE(PARTIAL_CONDITION) | 2316 #if ENABLE(PARTIAL_CONDITION) |
| 2330 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2317 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2331 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2318 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2332 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna
l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen
tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}; | 2319 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna
l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen
tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; |
| 2333 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2320 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2334 } | 2321 } |
| 2335 #endif // ENABLE(PARTIAL_CONDITION) | 2322 #endif // ENABLE(PARTIAL_CONDITION) |
| 2336 #if ENABLE(PARTIAL_CONDITION) | 2323 #if ENABLE(PARTIAL_CONDITION) |
| 2337 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2324 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2338 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2325 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 2339 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; | 2326 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
| 2340 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2327 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2341 } | 2328 } |
| 2342 #endif // ENABLE(PARTIAL_CONDITION) | 2329 #endif // ENABLE(PARTIAL_CONDITION) |
| 2343 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { | 2330 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { |
| 2344 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, | 2331 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, |
| 2345 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 2332 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, |
| 2346 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2333 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
| 2347 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2334 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
| 2348 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 2335 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
| 2349 }; | 2336 }; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2462 }; | 2449 }; |
| 2463 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, partial2StaticVoidMethodMethodConfiguration); | 2450 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, partial2StaticVoidMethodMethodConfiguration); |
| 2464 const V8DOMConfiguration::MethodConfiguration toJSONMethodConfiguration = { | 2451 const V8DOMConfiguration::MethodConfiguration toJSONMethodConfiguration = { |
| 2465 "toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts, | 2452 "toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts, |
| 2466 }; | 2453 }; |
| 2467 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toJSONMet
hodConfiguration); | 2454 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toJSONMet
hodConfiguration); |
| 2468 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ | 2455 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ |
| 2469 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 2456 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
| 2470 }; | 2457 }; |
| 2471 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM
ethodConfiguration); | 2458 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM
ethodConfiguration); |
| 2459 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
ttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::AccessC
ontrol>(v8::DEFAULT)); |
| 2460 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticRetur
nDOMWrapperAttribute"), TestInterfaceImplementationV8Internal::staticReturnDOMWr
apperAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st
aticReturnDOMWrapperAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu
re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2461 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu
re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2462 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS
tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu
re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2463 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign
ature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2464 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign
ature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2465 #if ENABLE(PARTIAL_CONDITION) |
| 2466 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat
icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri
buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati
cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas
t<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_c
ast<v8::AccessControl>(v8::DEFAULT)); |
| 2467 #endif // ENABLE(PARTIAL_CONDITION) |
| 2468 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), stati
c_cast<v8::AccessControl>(v8::DEFAULT)); |
| 2472 | 2469 |
| 2473 // Custom toString template | 2470 // Custom toString template |
| 2474 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 2471 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 2475 } | 2472 } |
| 2476 | 2473 |
| 2477 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat
e) | 2474 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat
e) |
| 2478 { | 2475 { |
| 2479 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte
rface::installV8TestInterfaceTemplate); | 2476 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte
rface::installV8TestInterfaceTemplate); |
| 2480 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction
); | 2477 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction
); |
| 2481 } | 2478 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2493 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) | 2490 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) |
| 2494 { | 2491 { |
| 2495 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 2492 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 2496 } | 2493 } |
| 2497 | 2494 |
| 2498 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) | 2495 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
| 2499 { | 2496 { |
| 2500 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2497 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2501 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 2498 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 2502 if (context && (context->isWorkerGlobalScope())) { | 2499 if (context && (context->isWorkerGlobalScope())) { |
| 2503 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"workerExposedAttribute", TestInterfaceImplementationV8Internal::workerE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
orkerExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2500 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"workerExposedAttribute", TestInterfaceImplementationV8Internal::workerE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
orkerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}; |
| 2504 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); | 2501 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
| 2505 } | 2502 } |
| 2506 if (context && (context->isDocument())) { | 2503 if (context && (context->isDocument())) { |
| 2507 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
indowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2504 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
indowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}; |
| 2508 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); | 2505 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
| 2509 } | 2506 } |
| 2510 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2507 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
| 2511 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2508 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2512 ASSERT(context); | 2509 ASSERT(context); |
| 2513 if (context && (context->isWorkerGlobalScope())) { | 2510 if (context && (context->isWorkerGlobalScope())) { |
| 2514 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); | 2511 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); |
| 2515 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); | 2512 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); |
| 2516 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); | 2513 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); |
| 2517 } | 2514 } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2671 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2668 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2672 { | 2669 { |
| 2673 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2670 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2674 } | 2671 } |
| 2675 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2672 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2676 { | 2673 { |
| 2677 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2674 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2678 } | 2675 } |
| 2679 } // namespace blink | 2676 } // namespace blink |
| 2680 #endif // ENABLE(CONDITION) | 2677 #endif // ENABLE(CONDITION) |
| OLD | NEW |