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

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

Issue 209663005: Add back [ImplementedInBaseClass] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 TestImplements2Implementation::setImplements2StringAttribute(*impl, cppValue ); 457 TestImplements2Implementation::setImplements2StringAttribute(*impl, cppValue );
458 } 458 }
459 459
460 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 460 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
461 { 461 {
462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
463 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteSetter(jsValue, info); 463 TestInterfacePythonImplementationV8Internal::implements2StringAttributeAttri buteSetter(jsValue, info);
464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
465 } 465 }
466 466
467 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
468 {
469 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
470 v8SetReturnValueString(info, impl->implements3StringAttribute(), info.GetIso late());
471 }
472
473 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
474 {
475 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
476 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteGetter(info);
477 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
478 }
479
480 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info)
481 {
482 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
483 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
484 impl->setImplements3StringAttribute(cppValue);
485 }
486
487 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
488 {
489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
490 TestInterfacePythonImplementationV8Internal::implements3StringAttributeAttri buteSetter(jsValue, info);
491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
492 }
493
494 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
495 {
496 v8SetReturnValueString(info, TestInterfacePythonImplementation::implements3S taticStringAttribute(), info.GetIsolate());
497 }
498
499 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
500 {
501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
502 TestInterfacePythonImplementationV8Internal::implements3StaticStringAttribut eAttributeGetter(info);
503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
504 }
505
506 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
507 {
508 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
509 TestInterfacePythonImplementation::setImplements3StaticStringAttribute(cppVa lue);
510 }
511
512 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo)
513 {
514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
515 TestInterfacePythonImplementationV8Internal::implements3StaticStringAttribut eAttributeSetter(jsValue, info);
516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
517 }
518
467 #if ENABLE(PARTIAL_CONDITION) 519 #if ENABLE(PARTIAL_CONDITION)
468 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 520 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
469 { 521 {
470 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 522 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
471 ASSERT(impl); 523 ASSERT(impl);
472 v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(* impl)); 524 v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(* impl));
473 } 525 }
474 #endif // ENABLE(PARTIAL_CONDITION) 526 #endif // ENABLE(PARTIAL_CONDITION)
475 527
476 #if ENABLE(PARTIAL_CONDITION) 528 #if ENABLE(PARTIAL_CONDITION)
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 TestImplements2Implementation::implements2VoidMethod(*impl); 863 TestImplements2Implementation::implements2VoidMethod(*impl);
812 } 864 }
813 865
814 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 866 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
815 { 867 {
816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
817 TestInterfacePythonImplementationV8Internal::implements2VoidMethodMethod(inf o); 869 TestInterfacePythonImplementationV8Internal::implements2VoidMethodMethod(inf o);
818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
819 } 871 }
820 872
873 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
874 {
875 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
876 impl->implements3VoidMethod();
877 }
878
879 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
880 {
881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
882 TestInterfacePythonImplementationV8Internal::implements3VoidMethodMethod(inf o);
883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
884 }
885
886 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
887 {
888 TestInterfacePythonImplementation::implements3StaticVoidMethod();
889 }
890
891 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
892 {
893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
894 TestInterfacePythonImplementationV8Internal::implements3StaticVoidMethodMeth od(info);
895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
896 }
897
821 #if ENABLE(PARTIAL_CONDITION) 898 #if ENABLE(PARTIAL_CONDITION)
822 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 899 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
823 { 900 {
824 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 901 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
825 ASSERT(impl); 902 ASSERT(impl);
826 TestPartialInterfacePython::partialVoidMethod(*impl); 903 TestPartialInterfacePython::partialVoidMethod(*impl);
827 } 904 }
828 #endif // ENABLE(PARTIAL_CONDITION) 905 #endif // ENABLE(PARTIAL_CONDITION)
829 906
830 #if ENABLE(PARTIAL_CONDITION) 907 #if ENABLE(PARTIAL_CONDITION)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 } 1042 }
966 1043
967 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfacePythonAtt ributes[] = { 1044 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfacePythonAtt ributes[] = {
968 {"testInterfacePythonAttribute", TestInterfacePythonImplementationV8Internal ::testInterfacePythonAttributeAttributeGetterCallback, TestInterfacePythonImplem entationV8Internal::testInterfacePythonAttributeAttributeSetterCallback, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, 1045 {"testInterfacePythonAttribute", TestInterfacePythonImplementationV8Internal ::testInterfacePythonAttributeAttributeGetterCallback, TestInterfacePythonImplem entationV8Internal::testInterfacePythonAttributeAttributeSetterCallback, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */},
969 {"testImplementedAsConstructorAttribute", TestInterfacePythonImplementationV 8Internal::TestInterfacePythonImplementationConstructorGetter, TestInterfacePyth onImplementationV8Internal::TestInterfacePythonImplementationReplaceableAttribut eSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrappe rTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::DontEnum), 0 /* on instance */}, 1046 {"testImplementedAsConstructorAttribute", TestInterfacePythonImplementationV 8Internal::TestInterfacePythonImplementationConstructorGetter, TestInterfacePyth onImplementationV8Internal::TestInterfacePythonImplementationReplaceableAttribut eSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestImplementedAs::wrappe rTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::DontEnum), 0 /* on instance */},
970 {"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 */}, 1047 {"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 */},
971 {"implementsReadonlyStringAttribute", TestInterfacePythonImplementationV8Int ernal::implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */}, 1048 {"implementsReadonlyStringAttribute", TestInterfacePythonImplementationV8Int ernal::implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */},
972 {"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 */}, 1049 {"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 */},
973 {"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 */}, 1050 {"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 */},
974 {"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 */}, 1051 {"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 */},
1052 {"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 */},
975 {"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 */}, 1053 {"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 */},
976 }; 1054 };
977 1055
978 static const V8DOMConfiguration::MethodConfiguration V8TestInterfacePythonMethod s[] = { 1056 static const V8DOMConfiguration::MethodConfiguration V8TestInterfacePythonMethod s[] = {
979 {"voidMethodTestInterfaceEmptyArg", TestInterfacePythonImplementationV8Inter nal::voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 1057 {"voidMethodTestInterfaceEmptyArg", TestInterfacePythonImplementationV8Inter nal::voidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
980 {"voidMethod", TestInterfacePythonImplementationV8Internal::voidMethodMethod Callback, TestInterfacePythonImplementationV8Internal::voidMethodMethodCallbackF orMainWorld, 0}, 1058 {"voidMethod", TestInterfacePythonImplementationV8Internal::voidMethodMethod Callback, TestInterfacePythonImplementationV8Internal::voidMethodMethodCallbackF orMainWorld, 0},
981 {"implementsVoidMethod", TestInterfacePythonImplementationV8Internal::implem entsVoidMethodMethodCallback, 0, 0}, 1059 {"implementsVoidMethod", TestInterfacePythonImplementationV8Internal::implem entsVoidMethodMethodCallback, 0, 0},
982 {"implementsComplexMethod", TestInterfacePythonImplementationV8Internal::imp lementsComplexMethodMethodCallback, 0, 2}, 1060 {"implementsComplexMethod", TestInterfacePythonImplementationV8Internal::imp lementsComplexMethodMethodCallback, 0, 2},
983 {"implementsCustomVoidMethod", TestInterfacePythonImplementationV8Internal:: implementsCustomVoidMethodMethodCallback, 0, 0}, 1061 {"implementsCustomVoidMethod", TestInterfacePythonImplementationV8Internal:: implementsCustomVoidMethodMethodCallback, 0, 0},
1062 {"implements3VoidMethod", TestInterfacePythonImplementationV8Internal::imple ments3VoidMethodMethodCallback, 0, 0},
984 {"partial2VoidMethod", TestInterfacePythonImplementationV8Internal::partial2 VoidMethodMethodCallback, 0, 0}, 1063 {"partial2VoidMethod", TestInterfacePythonImplementationV8Internal::partial2 VoidMethodMethodCallback, 0, 0},
985 }; 1064 };
986 1065
987 static void configureV8TestInterfacePythonTemplate(v8::Handle<v8::FunctionTempla te> functionTemplate, v8::Isolate* isolate) 1066 static void configureV8TestInterfacePythonTemplate(v8::Handle<v8::FunctionTempla te> functionTemplate, v8::Isolate* isolate)
988 { 1067 {
989 functionTemplate->ReadOnlyPrototype(); 1068 functionTemplate->ReadOnlyPrototype();
990 1069
991 v8::Local<v8::Signature> defaultSignature; 1070 v8::Local<v8::Signature> defaultSignature;
992 if (!RuntimeEnabledFeatures::featureNameEnabled()) 1071 if (!RuntimeEnabledFeatures::featureNameEnabled())
993 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfacePython:: internalFieldCount, 0, 0, 0, 0, 0, 0, isolate); 1072 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfacePython:: internalFieldCount, 0, 0, 0, 0, 0, 0, isolate);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 } 1122 }
1044 COMPILE_ASSERT(0 == TestInterfacePythonImplementation::UNSIGNED_LONG, TheVal ueOfTestInterfacePythonImplementation_UNSIGNED_LONGDoesntMatchWithImplementation ); 1123 COMPILE_ASSERT(0 == TestInterfacePythonImplementation::UNSIGNED_LONG, TheVal ueOfTestInterfacePythonImplementation_UNSIGNED_LONGDoesntMatchWithImplementation );
1045 COMPILE_ASSERT(1 == TestImplements::IMPLEMENTS_CONSTANT_1, TheValueOfTestInt erfacePythonImplementation_IMPLEMENTS_CONSTANT_1DoesntMatchWithImplementation); 1124 COMPILE_ASSERT(1 == TestImplements::IMPLEMENTS_CONSTANT_1, TheValueOfTestInt erfacePythonImplementation_IMPLEMENTS_CONSTANT_1DoesntMatchWithImplementation);
1046 COMPILE_ASSERT(2 == TestImplements::IMPLEMENTS_REFLECT_CONSTANT, TheValueOfT estInterfacePythonImplementation_IMPLEMENTS_REFLECT_CONSTANTDoesntMatchWithImple mentation); 1125 COMPILE_ASSERT(2 == TestImplements::IMPLEMENTS_REFLECT_CONSTANT, TheValueOfT estInterfacePythonImplementation_IMPLEMENTS_REFLECT_CONSTANTDoesntMatchWithImple mentation);
1047 COMPILE_ASSERT(0 == TestPartialInterfacePython::PARTIAL_UNSIGNED_SHORT, TheV alueOfTestInterfacePythonImplementation_PARTIAL_UNSIGNED_SHORTDoesntMatchWithImp lementation); 1126 COMPILE_ASSERT(0 == TestPartialInterfacePython::PARTIAL_UNSIGNED_SHORT, TheV alueOfTestInterfacePythonImplementation_PARTIAL_UNSIGNED_SHORTDoesntMatchWithImp lementation);
1048 COMPILE_ASSERT(0 == TestPartialInterfacePythonImplementation::PARTIAL2_UNSIG NED_SHORT, TheValueOfTestInterfacePythonImplementation_PARTIAL2_UNSIGNED_SHORTDo esntMatchWithImplementation); 1127 COMPILE_ASSERT(0 == TestPartialInterfacePythonImplementation::PARTIAL2_UNSIG NED_SHORT, TheValueOfTestInterfacePythonImplementation_PARTIAL2_UNSIGNED_SHORTDo esntMatchWithImplementation);
1049 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa cePython::legacyCallCustom); 1128 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa cePython::legacyCallCustom);
1050 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal: :implementsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signatur e>(), 0)); 1129 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal: :implementsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signatur e>(), 0));
1051 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) 1130 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled())
1052 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal: :implements2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1131 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal: :implements2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0));
1132 functionTemplate->Set(v8AtomicString(isolate, "implements3StaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal ::implements3StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signat ure>(), 0));
1053 #if ENABLE(PARTIAL_CONDITION) 1133 #if ENABLE(PARTIAL_CONDITION)
1054 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1134 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1055 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8: :FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::par tialVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1135 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8: :FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::par tialVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0));
1056 #endif // ENABLE(PARTIAL_CONDITION) 1136 #endif // ENABLE(PARTIAL_CONDITION)
1057 #if ENABLE(PARTIAL_CONDITION) 1137 #if ENABLE(PARTIAL_CONDITION)
1058 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1138 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1059 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal ::partialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0)); 1139 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal ::partialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0));
1060 #endif // ENABLE(PARTIAL_CONDITION) 1140 #endif // ENABLE(PARTIAL_CONDITION)
1061 #if ENABLE(PARTIAL_CONDITION) 1141 #if ENABLE(PARTIAL_CONDITION)
1062 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1142 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1063 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Intern al::partialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)) ; 1143 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Intern al::partialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)) ;
1064 #endif // ENABLE(PARTIAL_CONDITION) 1144 #endif // ENABLE(PARTIAL_CONDITION)
1065 #if ENABLE(PARTIAL_CONDITION) 1145 #if ENABLE(PARTIAL_CONDITION)
1066 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1146 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1067 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter facePythonImplementationV8Internal::partialCallWithExecutionContextRaisesExcepti onVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1147 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter facePythonImplementationV8Internal::partialCallWithExecutionContextRaisesExcepti onVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0));
1068 #endif // ENABLE(PARTIAL_CONDITION) 1148 #endif // ENABLE(PARTIAL_CONDITION)
1069 #if ENABLE(PARTIAL_CONDITION) 1149 #if ENABLE(PARTIAL_CONDITION)
1070 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1150 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1071 prototypeTemplate->Set(v8AtomicString(isolate, "methodThatTakesCallback" ), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Interna l::methodThatTakesCallbackMethodCallback, v8Undefined(), defaultSignature, 1)); 1151 prototypeTemplate->Set(v8AtomicString(isolate, "methodThatTakesCallback" ), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Interna l::methodThatTakesCallbackMethodCallback, v8Undefined(), defaultSignature, 1));
1072 #endif // ENABLE(PARTIAL_CONDITION) 1152 #endif // ENABLE(PARTIAL_CONDITION)
1073 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::p artial2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0)); 1153 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::p artial2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0));
1074 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfacePythonImplementationV8Internal::staticStringAttribute AttributeGetterCallback, TestInterfacePythonImplementationV8Internal::staticStri ngAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v 8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cas t<v8::AccessControl>(v8::DEFAULT)); 1154 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfacePythonImplementationV8Internal::staticStringAttribute AttributeGetterCallback, TestInterfacePythonImplementationV8Internal::staticStri ngAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v 8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cas t<v8::AccessControl>(v8::DEFAULT));
1075 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfacePythonImplementationV8Internal::imple mentsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(is olate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accessor Signature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1155 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfacePythonImplementationV8Internal::imple mentsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(is olate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accessor Signature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1076 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfacePythonImplementationV8Internal::implementsS taticStringAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8 Internal::implementsStaticStringAttributeAttributeSetterCallback, v8::External:: New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Ac cessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1156 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfacePythonImplementationV8Internal::implementsS taticStringAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8 Internal::implementsStaticStringAttributeAttributeSetterCallback, v8::External:: New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Ac cessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1077 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfacePythonImplementationV8Internal::implements 2StaticStringAttributeAttributeGetterCallback, TestInterfacePythonImplementation V8Internal::implements2StaticStringAttributeAttributeSetterCallback, v8::Externa l::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8: :AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1157 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfacePythonImplementationV8Internal::implements 2StaticStringAttributeAttributeGetterCallback, TestInterfacePythonImplementation V8Internal::implements2StaticStringAttributeAttributeSetterCallback, v8::Externa l::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8: :AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1158 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfacePythonImplementationV8Internal::implements 3StaticStringAttributeAttributeGetterCallback, TestInterfacePythonImplementation V8Internal::implements3StaticStringAttributeAttributeSetterCallback, v8::Externa l::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8: :AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1078 #if ENABLE(PARTIAL_CONDITION) 1159 #if ENABLE(PARTIAL_CONDITION)
1079 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfacePythonImplementationV8Internal::partialStaticLon gAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Internal:: partialStaticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0) , static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature >(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1160 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfacePythonImplementationV8Internal::partialStaticLon gAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Internal:: partialStaticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0) , static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature >(), static_cast<v8::AccessControl>(v8::DEFAULT));
1080 #endif // ENABLE(PARTIAL_CONDITION) 1161 #endif // ENABLE(PARTIAL_CONDITION)
1081 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfacePythonImplementationV8Internal::partial2StaticL ongAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Internal ::partial2StaticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 1162 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfacePythonImplementationV8Internal::partial2StaticL ongAttributeAttributeGetterCallback, TestInterfacePythonImplementationV8Internal ::partial2StaticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT));
1082 1163
1083 // Custom toString template 1164 // Custom toString template
1084 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :current()->toStringTemplate()); 1165 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :current()->toStringTemplate());
1085 } 1166 }
1086 1167
1087 v8::Handle<v8::FunctionTemplate> V8TestInterfacePython::domTemplate(v8::Isolate* isolate) 1168 v8::Handle<v8::FunctionTemplate> V8TestInterfacePython::domTemplate(v8::Isolate* isolate)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 } 1215 }
1135 1216
1136 template<> 1217 template<>
1137 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate) 1218 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate)
1138 { 1219 {
1139 return toV8(impl, creationContext, isolate); 1220 return toV8(impl, creationContext, isolate);
1140 } 1221 }
1141 1222
1142 } // namespace WebCore 1223 } // namespace WebCore
1143 #endif // ENABLE(CONDITION) 1224 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698