| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 90 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 91 { | 91 { |
| 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 93 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt
ributeGetter(info); | 93 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt
ributeGetter(info); |
| 94 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 94 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 95 } | 95 } |
| 96 | 96 |
| 97 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 97 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
| 98 { | 98 { |
| 99 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceP
ythonAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
| 100 if (!isUndefinedOrNull(jsValue) && !V8TestInterfacePython::hasInstance(jsVal
ue, info.GetIsolate())) { |
| 101 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terfacePython'."); |
| 102 exceptionState.throwIfNeeded(); |
| 103 return; |
| 104 } |
| 99 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 105 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 100 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac
ePython::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfacePython::toNati
ve(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 106 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac
ePython::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfacePython::toNati
ve(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 101 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); | 107 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); |
| 102 } | 108 } |
| 103 | 109 |
| 104 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 110 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 105 { | 111 { |
| 106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 107 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt
ributeSetter(jsValue, info); | 113 TestInterfacePythonImplementationV8Internal::testInterfacePythonAttributeAtt
ributeSetter(jsValue, info); |
| 108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 278 |
| 273 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 279 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 274 { | 280 { |
| 275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 281 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 276 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eGetter(info); | 282 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eGetter(info); |
| 277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 278 } | 284 } |
| 279 | 285 |
| 280 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 286 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 281 { | 287 { |
| 288 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode
Attribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
| 289 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso
late())) { |
| 290 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
| 291 exceptionState.throwIfNeeded(); |
| 292 return; |
| 293 } |
| 282 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 294 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 283 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 295 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 284 TestImplements::setImplementsNodeAttribute(imp, WTF::getPtr(cppValue)); | 296 TestImplements::setImplementsNodeAttribute(imp, WTF::getPtr(cppValue)); |
| 285 } | 297 } |
| 286 | 298 |
| 287 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 299 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 288 { | 300 { |
| 289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 290 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eSetter(jsValue, info); | 302 TestInterfacePythonImplementationV8Internal::implementsNodeAttributeAttribut
eSetter(jsValue, info); |
| 291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 339 |
| 328 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 340 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 329 { | 341 { |
| 330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 331 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt
ributeAttributeGetter(info); | 343 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt
ributeAttributeGetter(info); |
| 332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 344 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 333 } | 345 } |
| 334 | 346 |
| 335 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 347 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 336 { | 348 { |
| 349 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt
imeEnabledNodeAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate(
)); |
| 350 if (!isUndefinedOrNull(jsValue) && !V8Node::hasInstance(jsValue, info.GetIso
late())) { |
| 351 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
| 352 exceptionState.throwIfNeeded(); |
| 353 return; |
| 354 } |
| 337 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 355 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 338 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 356 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 339 TestImplements::setImplementsRuntimeEnabledNodeAttribute(imp, WTF::getPtr(cp
pValue)); | 357 TestImplements::setImplementsRuntimeEnabledNodeAttribute(imp, WTF::getPtr(cp
pValue)); |
| 340 } | 358 } |
| 341 | 359 |
| 342 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) | 360 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) |
| 343 { | 361 { |
| 344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 345 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt
ributeAttributeSetter(jsValue, info); | 363 TestInterfacePythonImplementationV8Internal::implementsRuntimeEnabledNodeAtt
ributeAttributeSetter(jsValue, info); |
| 346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 TestPartialInterfacePythonImplementation::setPartial2StaticLongAttribute(cpp
Value); | 623 TestPartialInterfacePythonImplementation::setPartial2StaticLongAttribute(cpp
Value); |
| 606 } | 624 } |
| 607 | 625 |
| 608 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 626 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 609 { | 627 { |
| 610 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 628 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 611 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr
ibuteSetter(jsValue, info); | 629 TestInterfacePythonImplementationV8Internal::partial2StaticLongAttributeAttr
ibuteSetter(jsValue, info); |
| 612 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 630 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 613 } | 631 } |
| 614 | 632 |
| 633 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 634 { |
| 635 if (UNLIKELY(info.Length() < 1)) { |
| 636 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestInterfacePython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); |
| 637 return; |
| 638 } |
| 639 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 640 if (info.Length() > 0 && !info[0]->IsUndefined() && !V8TestInterfaceEmpty::h
asInstance(info[0], info.GetIsolate())) { |
| 641 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestInterfacePython", "parameter 1 is not of type 'TestInterfaceEm
pty'."), info.GetIsolate()); |
| 642 return; |
| 643 } |
| 644 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v
8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 645 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 646 } |
| 647 |
| 648 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 649 { |
| 650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 651 TestInterfacePythonImplementationV8Internal::voidMethodTestInterfaceEmptyArg
Method(info); |
| 652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 653 } |
| 654 |
| 615 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 655 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 616 { | 656 { |
| 617 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 657 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 618 imp->voidMethod(); | 658 imp->voidMethod(); |
| 619 } | 659 } |
| 620 | 660 |
| 621 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 661 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 622 { | 662 { |
| 623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 624 TestInterfacePythonImplementationV8Internal::voidMethodMethod(info); | 664 TestInterfacePythonImplementationV8Internal::voidMethodMethod(info); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 654 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 694 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 655 { | 695 { |
| 656 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC
omplexMethod", "TestInterfacePython", info.Holder(), info.GetIsolate()); | 696 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC
omplexMethod", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
| 657 if (UNLIKELY(info.Length() < 2)) { | 697 if (UNLIKELY(info.Length() < 2)) { |
| 658 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 698 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
| 659 exceptionState.throwIfNeeded(); | 699 exceptionState.throwIfNeeded(); |
| 660 return; | 700 return; |
| 661 } | 701 } |
| 662 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); | 702 TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(inf
o.Holder()); |
| 663 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); | 703 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
| 704 if (info.Length() > 1 && !info[1]->IsUndefined() && !V8TestInterfaceEmpty::h
asInstance(info[1], info.GetIsolate())) { |
| 705 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface
Empty'."); |
| 706 exceptionState.throwIfNeeded(); |
| 707 return; |
| 708 } |
| 664 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[1], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v
8::Handle<v8::Object>::Cast(info[1])) : 0); | 709 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[1], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v
8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 665 ExecutionContext* scriptContext = getExecutionContext(); | 710 ExecutionContext* scriptContext = getExecutionContext(); |
| 666 RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(
scriptContext, imp, strArg, testInterfaceEmptyArg, exceptionState); | 711 RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(
scriptContext, imp, strArg, testInterfaceEmptyArg, exceptionState); |
| 667 if (exceptionState.throwIfNeeded()) | 712 if (exceptionState.throwIfNeeded()) |
| 668 return; | 713 return; |
| 669 v8SetReturnValue(info, result.release()); | 714 v8SetReturnValue(info, result.release()); |
| 670 } | 715 } |
| 671 | 716 |
| 672 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 717 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 673 { | 718 { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 {"perWorldBindingsStringAttribute", TestInterfacePythonImplementationV8Inter
nal::perWorldBindingsStringAttributeAttributeGetterCallback, TestInterfacePython
ImplementationV8Internal::perWorldBindingsStringAttributeAttributeSetterCallback
, TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttributeAt
tributeGetterCallbackForMainWorld, TestInterfacePythonImplementationV8Internal::
perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 902 {"perWorldBindingsStringAttribute", TestInterfacePythonImplementationV8Inter
nal::perWorldBindingsStringAttributeAttributeGetterCallback, TestInterfacePython
ImplementationV8Internal::perWorldBindingsStringAttributeAttributeSetterCallback
, TestInterfacePythonImplementationV8Internal::perWorldBindingsStringAttributeAt
tributeGetterCallbackForMainWorld, TestInterfacePythonImplementationV8Internal::
perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, |
| 858 {"implementsReadonlyStringAttribute", TestInterfacePythonImplementationV8Int
ernal::implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 903 {"implementsReadonlyStringAttribute", TestInterfacePythonImplementationV8Int
ernal::implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
| 859 {"implementsStringAttribute", TestInterfacePythonImplementationV8Internal::i
mplementsStringAttributeAttributeGetterCallback, TestInterfacePythonImplementati
onV8Internal::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_
cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non
e), 0 /* on instance */}, | 904 {"implementsStringAttribute", TestInterfacePythonImplementationV8Internal::i
mplementsStringAttributeAttributeGetterCallback, TestInterfacePythonImplementati
onV8Internal::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_
cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non
e), 0 /* on instance */}, |
| 860 {"implementsNodeAttribute", TestInterfacePythonImplementationV8Internal::imp
lementsNodeAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8
Internal::implementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 905 {"implementsNodeAttribute", TestInterfacePythonImplementationV8Internal::imp
lementsNodeAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8
Internal::implementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v
8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 861 {"implementsEventHandlerAttribute", TestInterfacePythonImplementationV8Inter
nal::implementsEventHandlerAttributeAttributeGetterCallback, TestInterfacePython
ImplementationV8Internal::implementsEventHandlerAttributeAttributeSetterCallback
, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Property
Attribute>(v8::None), 0 /* on instance */}, | 906 {"implementsEventHandlerAttribute", TestInterfacePythonImplementationV8Inter
nal::implementsEventHandlerAttributeAttributeGetterCallback, TestInterfacePython
ImplementationV8Internal::implementsEventHandlerAttributeAttributeSetterCallback
, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Property
Attribute>(v8::None), 0 /* on instance */}, |
| 862 {"implements3StringAttribute", TestInterfacePythonImplementationV8Internal::
implements3StringAttributeAttributeGetterCallback, TestInterfacePythonImplementa
tionV8Internal::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), 0 /* on instance */}, | 907 {"implements3StringAttribute", TestInterfacePythonImplementationV8Internal::
implements3StringAttributeAttributeGetterCallback, TestInterfacePythonImplementa
tionV8Internal::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), 0 /* on instance */}, |
| 863 {"partial2LongAttribute", TestInterfacePythonImplementationV8Internal::parti
al2LongAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Inte
rnal::partial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 908 {"partial2LongAttribute", TestInterfacePythonImplementationV8Internal::parti
al2LongAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Inte
rnal::partial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
| 864 }; | 909 }; |
| 865 | 910 |
| 866 static const V8DOMConfiguration::MethodConfiguration V8TestInterfacePythonMethod
s[] = { | 911 static const V8DOMConfiguration::MethodConfiguration V8TestInterfacePythonMethod
s[] = { |
| 912 {"voidMethodTestInterfaceEmptyArg", TestInterfacePythonImplementationV8Inter
nal::voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 867 {"voidMethod", TestInterfacePythonImplementationV8Internal::voidMethodMethod
Callback, TestInterfacePythonImplementationV8Internal::voidMethodMethodCallbackF
orMainWorld, 0}, | 913 {"voidMethod", TestInterfacePythonImplementationV8Internal::voidMethodMethod
Callback, TestInterfacePythonImplementationV8Internal::voidMethodMethodCallbackF
orMainWorld, 0}, |
| 868 {"implementsVoidMethod", TestInterfacePythonImplementationV8Internal::implem
entsVoidMethodMethodCallback, 0, 0}, | 914 {"implementsVoidMethod", TestInterfacePythonImplementationV8Internal::implem
entsVoidMethodMethodCallback, 0, 0}, |
| 869 {"implementsComplexMethod", TestInterfacePythonImplementationV8Internal::imp
lementsComplexMethodMethodCallback, 0, 2}, | 915 {"implementsComplexMethod", TestInterfacePythonImplementationV8Internal::imp
lementsComplexMethodMethodCallback, 0, 2}, |
| 870 {"implementsCustomVoidMethod", TestInterfacePythonImplementationV8Internal::
implementsCustomVoidMethodMethodCallback, 0, 0}, | 916 {"implementsCustomVoidMethod", TestInterfacePythonImplementationV8Internal::
implementsCustomVoidMethodMethodCallback, 0, 0}, |
| 871 {"implements3VoidMethod", TestInterfacePythonImplementationV8Internal::imple
ments3VoidMethodMethodCallback, 0, 0}, | 917 {"implements3VoidMethod", TestInterfacePythonImplementationV8Internal::imple
ments3VoidMethodMethodCallback, 0, 0}, |
| 872 {"partial2VoidMethod", TestInterfacePythonImplementationV8Internal::partial2
VoidMethodMethodCallback, 0, 0}, | 918 {"partial2VoidMethod", TestInterfacePythonImplementationV8Internal::partial2
VoidMethodMethodCallback, 0, 0}, |
| 873 }; | 919 }; |
| 874 | 920 |
| 875 static void configureV8TestInterfacePythonTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) | 921 static void configureV8TestInterfacePythonTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) |
| 876 { | 922 { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 } | 1041 } |
| 996 | 1042 |
| 997 template<> | 1043 template<> |
| 998 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) | 1044 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 999 { | 1045 { |
| 1000 return toV8(impl, creationContext, isolate); | 1046 return toV8(impl, creationContext, isolate); |
| 1001 } | 1047 } |
| 1002 | 1048 |
| 1003 } // namespace WebCore | 1049 } // namespace WebCore |
| 1004 #endif // ENABLE(CONDITION) | 1050 #endif // ENABLE(CONDITION) |
| OLD | NEW |