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

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

Issue 203193015: Bindings: inherit enums and callbacks from partial interface files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/bindings/tests/idls/TestPartialInterfacePython.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 36
37 #include "RuntimeEnabledFeatures.h" 37 #include "RuntimeEnabledFeatures.h"
38 #include "V8Node.h" 38 #include "V8Node.h"
39 #include "V8TestImplementedAs.h" 39 #include "V8TestImplementedAs.h"
40 #include "V8TestInterfaceEmpty.h" 40 #include "V8TestInterfaceEmpty.h"
41 #include "bindings/tests/idls/TestImplements.h" 41 #include "bindings/tests/idls/TestImplements.h"
42 #include "bindings/tests/idls/TestImplements2Implementation.h" 42 #include "bindings/tests/idls/TestImplements2Implementation.h"
43 #include "bindings/tests/idls/TestPartialInterfacePython.h" 43 #include "bindings/tests/idls/TestPartialInterfacePython.h"
44 #include "bindings/tests/idls/TestPartialInterfacePythonImplementation.h" 44 #include "bindings/tests/idls/TestPartialInterfacePythonImplementation.h"
45 #include "bindings/v8/ExceptionState.h" 45 #include "bindings/v8/ExceptionState.h"
46 #include "bindings/v8/ScriptValue.h"
46 #include "bindings/v8/V8AbstractEventListener.h" 47 #include "bindings/v8/V8AbstractEventListener.h"
47 #include "bindings/v8/V8DOMConfiguration.h" 48 #include "bindings/v8/V8DOMConfiguration.h"
48 #include "bindings/v8/V8EventListenerList.h" 49 #include "bindings/v8/V8EventListenerList.h"
49 #include "bindings/v8/V8HiddenValue.h" 50 #include "bindings/v8/V8HiddenValue.h"
50 #include "bindings/v8/V8ObjectConstructor.h" 51 #include "bindings/v8/V8ObjectConstructor.h"
51 #include "core/dom/ContextFeatures.h" 52 #include "core/dom/ContextFeatures.h"
52 #include "core/dom/Document.h" 53 #include "core/dom/Document.h"
53 #include "platform/TraceEvent.h" 54 #include "platform/TraceEvent.h"
54 #include "wtf/GetPtr.h" 55 #include "wtf/GetPtr.h"
55 #include "wtf/RefPtr.h" 56 #include "wtf/RefPtr.h"
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 569
569 #if ENABLE(PARTIAL_CONDITION) 570 #if ENABLE(PARTIAL_CONDITION)
570 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 571 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info)
571 { 572 {
572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 573 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
573 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeSetter(jsValue, info); 574 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext LongAttributeAttributeSetter(jsValue, info);
574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 575 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
575 } 576 }
576 #endif // ENABLE(PARTIAL_CONDITION) 577 #endif // ENABLE(PARTIAL_CONDITION)
577 578
579 #if ENABLE(PARTIAL_CONDITION)
580 static void enumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
581 {
582 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
583 ASSERT(impl);
584 v8SetReturnValueString(info, TestPartialInterfacePython::enumAttribute(*impl ), info.GetIsolate());
585 }
586 #endif // ENABLE(PARTIAL_CONDITION)
587
588 #if ENABLE(PARTIAL_CONDITION)
589 static void enumAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
590 {
591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
592 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeGetter(in fo);
593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
594 }
595 #endif // ENABLE(PARTIAL_CONDITION)
596
597 #if ENABLE(PARTIAL_CONDITION)
598 static void enumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info)
599 {
600 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
601 ASSERT(impl);
602 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
603 String string = cppValue;
604 if (!(string == "foo" || string == "bar"))
605 return;
606 TestPartialInterfacePython::setEnumAttribute(*impl, cppValue);
607 }
608 #endif // ENABLE(PARTIAL_CONDITION)
609
610 #if ENABLE(PARTIAL_CONDITION)
611 static void enumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
612 {
613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
614 TestInterfacePythonImplementationV8Internal::enumAttributeAttributeSetter(js Value, info);
615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
616 }
617 #endif // ENABLE(PARTIAL_CONDITION)
618
578 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 619 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
579 { 620 {
580 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 621 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
581 ASSERT(impl); 622 ASSERT(impl);
582 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 LongAttribute(*impl)); 623 v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2 LongAttribute(*impl));
583 } 624 }
584 625
585 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 626 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
586 { 627 {
587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 628 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 892
852 #if ENABLE(PARTIAL_CONDITION) 893 #if ENABLE(PARTIAL_CONDITION)
853 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 894 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
854 { 895 {
855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
856 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext RaisesExceptionVoidMethodMethod(info); 897 TestInterfacePythonImplementationV8Internal::partialCallWithExecutionContext RaisesExceptionVoidMethodMethod(info);
857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
858 } 899 }
859 #endif // ENABLE(PARTIAL_CONDITION) 900 #endif // ENABLE(PARTIAL_CONDITION)
860 901
902 #if ENABLE(PARTIAL_CONDITION)
903 static void methodThatTakesCallbackMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
904 {
905 if (UNLIKELY(info.Length() < 1)) {
906 throwTypeError(ExceptionMessages::failedToExecute("methodThatTakesCallba ck", "TestInterfacePython", ExceptionMessages::notEnoughArguments(1, info.Length ())), info.GetIsolate());
907 return;
908 }
909 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
910 V8TRYCATCH_VOID(ScriptValue, callback, ScriptValue(info[0], info.GetIsolate( )));
911 ASSERT(impl);
912 TestPartialInterfacePython::methodThatTakesCallback(*impl, callback);
913 }
914 #endif // ENABLE(PARTIAL_CONDITION)
915
916 #if ENABLE(PARTIAL_CONDITION)
917 static void methodThatTakesCallbackMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
918 {
919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
920 TestInterfacePythonImplementationV8Internal::methodThatTakesCallbackMethod(i nfo);
921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
922 }
923 #endif // ENABLE(PARTIAL_CONDITION)
924
861 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 925 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
862 { 926 {
863 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder()); 927 TestInterfacePythonImplementation* impl = V8TestInterfacePython::toNative(in fo.Holder());
864 ASSERT(impl); 928 ASSERT(impl);
865 TestPartialInterfacePythonImplementation::partial2VoidMethod(*impl); 929 TestPartialInterfacePythonImplementation::partial2VoidMethod(*impl);
866 } 930 }
867 931
868 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 932 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
869 { 933 {
870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 1016 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
953 } 1017 }
954 #endif // ENABLE(PARTIAL_CONDITION) 1018 #endif // ENABLE(PARTIAL_CONDITION)
955 #if ENABLE(PARTIAL_CONDITION) 1019 #if ENABLE(PARTIAL_CONDITION)
956 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 1020 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
957 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 1021 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
958 {"partialCallWithExecutionContextLongAttribute", TestInterfacePythonImpl ementationV8Internal::partialCallWithExecutionContextLongAttributeAttributeGette rCallback, TestInterfacePythonImplementationV8Internal::partialCallWithExecution ContextLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */}; 1022 {"partialCallWithExecutionContextLongAttribute", TestInterfacePythonImpl ementationV8Internal::partialCallWithExecutionContextLongAttributeAttributeGette rCallback, TestInterfacePythonImplementationV8Internal::partialCallWithExecution ContextLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */};
959 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 1023 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
960 } 1024 }
961 #endif // ENABLE(PARTIAL_CONDITION) 1025 #endif // ENABLE(PARTIAL_CONDITION)
1026 #if ENABLE(PARTIAL_CONDITION)
1027 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
1028 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
1029 {"enumAttribute", TestInterfacePythonImplementationV8Internal::enumAttri buteAttributeGetterCallback, TestInterfacePythonImplementationV8Internal::enumAt tributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFA ULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
1030 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
1031 }
1032 #endif // ENABLE(PARTIAL_CONDITION)
962 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfacePython Constants[] = { 1033 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfacePython Constants[] = {
963 {"UNSIGNED_LONG", 0}, 1034 {"UNSIGNED_LONG", 0},
964 {"IMPLEMENTS_CONSTANT_1", 1}, 1035 {"IMPLEMENTS_CONSTANT_1", 1},
965 {"IMPLEMENTS_CONSTANT_2", 2}, 1036 {"IMPLEMENTS_CONSTANT_2", 2},
966 {"PARTIAL2_UNSIGNED_SHORT", 0}, 1037 {"PARTIAL2_UNSIGNED_SHORT", 0},
967 }; 1038 };
968 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8 TestInterfacePythonConstants, WTF_ARRAY_LENGTH(V8TestInterfacePythonConstants), isolate); 1039 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8 TestInterfacePythonConstants, WTF_ARRAY_LENGTH(V8TestInterfacePythonConstants), isolate);
969 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 1040 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
970 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)}; 1041 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)};
971 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate , &constantConfiguration, 1, isolate); 1042 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate , &constantConfiguration, 1, isolate);
(...skipping 16 matching lines...) Expand all
988 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal ::partialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0)); 1059 functionTemplate->Set(v8AtomicString(isolate, "partialStaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal ::partialStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0));
989 #endif // ENABLE(PARTIAL_CONDITION) 1060 #endif // ENABLE(PARTIAL_CONDITION)
990 #if ENABLE(PARTIAL_CONDITION) 1061 #if ENABLE(PARTIAL_CONDITION)
991 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1062 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
992 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Intern al::partialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)) ; 1063 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodLongArg "), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Intern al::partialVoidMethodLongArgMethodCallback, v8Undefined(), defaultSignature, 1)) ;
993 #endif // ENABLE(PARTIAL_CONDITION) 1064 #endif // ENABLE(PARTIAL_CONDITION)
994 #if ENABLE(PARTIAL_CONDITION) 1065 #if ENABLE(PARTIAL_CONDITION)
995 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) 1066 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
996 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter facePythonImplementationV8Internal::partialCallWithExecutionContextRaisesExcepti onVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); 1067 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter facePythonImplementationV8Internal::partialCallWithExecutionContextRaisesExcepti onVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0));
997 #endif // ENABLE(PARTIAL_CONDITION) 1068 #endif // ENABLE(PARTIAL_CONDITION)
1069 #if ENABLE(PARTIAL_CONDITION)
1070 if (RuntimeEnabledFeatures::partialFeatureNameEnabled())
1071 prototypeTemplate->Set(v8AtomicString(isolate, "methodThatTakesCallback" ), v8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Interna l::methodThatTakesCallbackMethodCallback, v8Undefined(), defaultSignature, 1));
1072 #endif // ENABLE(PARTIAL_CONDITION)
998 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::p artial2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0)); 1073 functionTemplate->Set(v8AtomicString(isolate, "partial2StaticVoidMethod"), v 8::FunctionTemplate::New(isolate, TestInterfacePythonImplementationV8Internal::p artial2StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>() , 0));
999 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)); 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));
1000 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)); 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));
1001 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)); 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));
1002 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)); 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));
1003 #if ENABLE(PARTIAL_CONDITION) 1078 #if ENABLE(PARTIAL_CONDITION)
1004 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)); 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));
1005 #endif // ENABLE(PARTIAL_CONDITION) 1080 #endif // ENABLE(PARTIAL_CONDITION)
1006 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)); 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));
1007 1082
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 } 1134 }
1060 1135
1061 template<> 1136 template<>
1062 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate) 1137 v8::Handle<v8::Value> toV8NoInline(TestInterfacePythonImplementation* impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate)
1063 { 1138 {
1064 return toV8(impl, creationContext, isolate); 1139 return toV8(impl, creationContext, isolate);
1065 } 1140 }
1066 1141
1067 } // namespace WebCore 1142 } // namespace WebCore
1068 #endif // ENABLE(CONDITION) 1143 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestPartialInterfacePython.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698