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

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

Issue 124763002: Support IDL attributes limited to only known values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Flatten generated code block Created 6 years, 11 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/TestObject.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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 } 866 }
867 867
868 static void animatedReflectedAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 868 static void animatedReflectedAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
869 { 869 {
870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
871 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 871 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
872 TestObjV8Internal::animatedReflectedAttributeAttributeSetter(jsValue, info); 872 TestObjV8Internal::animatedReflectedAttributeAttributeSetter(jsValue, info);
873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
874 } 874 }
875 875
876 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
877 {
878 TestObj* imp = V8TestObject::toNative(info.Holder());
879 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyoneattrib uteAttr);
880 if (resultValue.isEmpty()) {
881 ;
882 } else if (equalIgnoringCase(resultValue, "unique")) {
883 resultValue = "unique";
884 } else {
885 resultValue = "";
886 }
887 v8SetReturnValueString(info, resultValue, info.GetIsolate());
888 }
889
890 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
891 {
892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
893 TestObjV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
895 }
896
897 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
898 {
899 TestObj* imp = V8TestObject::toNative(info.Holder());
900 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
901 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
902 imp->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
903 }
904
905 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
906 {
907 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
908 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
909 TestObjV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue, info);
910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
911 }
912
913 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
914 {
915 TestObj* imp = V8TestObject::toNative(info.Holder());
916 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyattribute Attr);
917 if (resultValue.isEmpty()) {
918 ;
919 } else if (equalIgnoringCase(resultValue, "Per")) {
920 resultValue = "Per";
921 } else if (equalIgnoringCase(resultValue, "Paal")) {
922 resultValue = "Paal";
923 } else if (equalIgnoringCase(resultValue, "Espen")) {
924 resultValue = "Espen";
925 } else {
926 resultValue = "";
927 }
928 v8SetReturnValueString(info, resultValue, info.GetIsolate());
929 }
930
931 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
932 {
933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
934 TestObjV8Internal::limitedToOnlyAttributeAttributeGetter(info);
935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
936 }
937
938 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
939 {
940 TestObj* imp = V8TestObject::toNative(info.Holder());
941 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
942 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
943 imp->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
944 }
945
946 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
947 {
948 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
949 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
950 TestObjV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, info);
951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
952 }
953
954 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
955 {
956 TestObj* imp = V8TestObject::toNative(info.Holder());
957 String resultValue = imp->fastGetAttribute(HTMLNames::OtherAttr);
958 if (resultValue.isEmpty()) {
959 ;
960 } else if (equalIgnoringCase(resultValue, "Value1")) {
961 resultValue = "Value1";
962 } else if (equalIgnoringCase(resultValue, "Value2")) {
963 resultValue = "Value2";
964 } else {
965 resultValue = "";
966 }
967 v8SetReturnValueString(info, resultValue, info.GetIsolate());
968 }
969
970 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
971 {
972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
973 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
975 }
976
977 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
978 {
979 TestObj* imp = V8TestObject::toNative(info.Holder());
980 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
981 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
982 imp->setAttribute(HTMLNames::OtherAttr, cppValue);
983 }
984
985 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
986 {
987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
988 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
989 TestObjV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, info) ;
990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
991 }
992
876 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 993 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
877 { 994 {
878 TestObj* imp = V8TestObject::toNative(info.Holder()); 995 TestObj* imp = V8TestObject::toNative(info.Holder());
879 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp); 996 v8SetReturnValueFast(info, imp->typedArrayAttr(), imp);
880 } 997 }
881 998
882 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 999 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
883 { 1000 {
884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
885 TestObjV8Internal::typedArrayAttrAttributeGetter(info); 1002 TestObjV8Internal::typedArrayAttrAttributeGetter(info);
(...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after
5131 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */}, 5248 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */},
5132 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttributeG etterCallback, TestObjV8Internal::reflectedIntegralAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */}, 5249 {"reflectedIntegralAttr", TestObjV8Internal::reflectedIntegralAttrAttributeG etterCallback, TestObjV8Internal::reflectedIntegralAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */},
5133 {"reflectedUnsignedIntegralAttr", TestObjV8Internal::reflectedUnsignedIntegr alAttrAttributeGetterCallback, TestObjV8Internal::reflectedUnsignedIntegralAttrA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5250 {"reflectedUnsignedIntegralAttr", TestObjV8Internal::reflectedUnsignedIntegr alAttrAttributeGetterCallback, TestObjV8Internal::reflectedUnsignedIntegralAttrA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5134 {"reflectedBooleanAttr", TestObjV8Internal::reflectedBooleanAttrAttributeGet terCallback, TestObjV8Internal::reflectedBooleanAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 5251 {"reflectedBooleanAttr", TestObjV8Internal::reflectedBooleanAttrAttributeGet terCallback, TestObjV8Internal::reflectedBooleanAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
5135 {"reflectedURLAttr", TestObjV8Internal::reflectedURLAttrAttributeGetterCallb ack, TestObjV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */}, 5252 {"reflectedURLAttr", TestObjV8Internal::reflectedURLAttrAttributeGetterCallb ack, TestObjV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */},
5136 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */}, 5253 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttributeGette rCallback, TestObjV8Internal::reflectedStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */},
5137 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt trAttributeGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5254 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt trAttributeGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5138 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr AttributeGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5255 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr AttributeGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5139 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttribut eGetterCallback, TestObjV8Internal::reflectedCustomURLAttrAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), 0 /* on instance */}, 5256 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttribut eGetterCallback, TestObjV8Internal::reflectedCustomURLAttrAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), 0 /* on instance */},
5140 {"animatedReflectedAttribute", TestObjV8Internal::animatedReflectedAttribute AttributeGetterCallback, TestObjV8Internal::animatedReflectedAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5257 {"animatedReflectedAttribute", TestObjV8Internal::animatedReflectedAttribute AttributeGetterCallback, TestObjV8Internal::animatedReflectedAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5258 {"limitedToOnlyOneAttribute", TestObjV8Internal::limitedToOnlyOneAttributeAt tributeGetterCallback, TestObjV8Internal::limitedToOnlyOneAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
5259 {"limitedToOnlyAttribute", TestObjV8Internal::limitedToOnlyAttributeAttribut eGetterCallback, TestObjV8Internal::limitedToOnlyAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), 0 /* on instance */},
5260 {"limitedToOnlyOtherAttribute", TestObjV8Internal::limitedToOnlyOtherAttribu teAttributeGetterCallback, TestObjV8Internal::limitedToOnlyOtherAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5141 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback, TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5261 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttributeGetterCallback, TestObjV8Internal::typedArrayAttrAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5142 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrib uteGetterCallback, TestObjV8Internal::attrWithGetterExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */}, 5262 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrib uteGetterCallback, TestObjV8Internal::attrWithGetterExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */},
5143 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrib uteGetterCallback, TestObjV8Internal::attrWithSetterExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */}, 5263 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrib uteGetterCallback, TestObjV8Internal::attrWithSetterExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */},
5144 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5264 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5145 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5265 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc eptionAttributeGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5146 {"customAttr", TestObjV8Internal::customAttrAttributeGetterCallback, TestObj V8Internal::customAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */}, 5266 {"customAttr", TestObjV8Internal::customAttrAttributeGetterCallback, TestObj V8Internal::customAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */},
5147 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 5267 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
5148 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5268 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5149 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o n instance */}, 5269 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o n instance */},
5150 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5270 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
5443 fromInternalPointer(object)->deref(); 5563 fromInternalPointer(object)->deref();
5444 } 5564 }
5445 5565
5446 template<> 5566 template<>
5447 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 5567 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
5448 { 5568 {
5449 return toV8(impl, creationContext, isolate); 5569 return toV8(impl, creationContext, isolate);
5450 } 5570 }
5451 5571
5452 } // namespace WebCore 5572 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698