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

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

Issue 145773004: IDL compiler: [ReflectOnly] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 } 3067 }
3068 3068
3069 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3069 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3070 { 3070 {
3071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3072 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3072 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3073 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); 3073 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info);
3074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3075 } 3075 }
3076 3076
3077 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
3078 {
3079 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3080 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyoneattrib uteAttr);
3081 if (resultValue.isEmpty()) {
3082 ;
3083 } else if (equalIgnoringCase(resultValue, "unique")) {
3084 resultValue = "unique";
3085 } else {
3086 resultValue = "";
3087 }
3088 v8SetReturnValueString(info, resultValue, info.GetIsolate());
3089 }
3090
3091 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
3092 {
3093 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3094 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3095 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3096 }
3097
3098 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
3099 {
3100 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3101 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3102 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3103 imp->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3104 }
3105
3106 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3107 {
3108 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3109 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3110 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue , info);
3111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3112 }
3113
3114 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
3115 {
3116 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3117 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyattribute Attr);
3118 if (resultValue.isEmpty()) {
3119 ;
3120 } else if (equalIgnoringCase(resultValue, "Per")) {
3121 resultValue = "Per";
3122 } else if (equalIgnoringCase(resultValue, "Paal")) {
3123 resultValue = "Paal";
3124 } else if (equalIgnoringCase(resultValue, "Espen")) {
3125 resultValue = "Espen";
3126 } else {
3127 resultValue = "";
3128 }
3129 v8SetReturnValueString(info, resultValue, info.GetIsolate());
3130 }
3131
3132 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3133 {
3134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3135 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3137 }
3138
3139 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3140 {
3141 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3142 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3143 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3144 imp->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3145 }
3146
3147 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3148 {
3149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3150 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3151 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i nfo);
3152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3153 }
3154
3155 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3156 {
3157 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3158 String resultValue = imp->fastGetAttribute(HTMLNames::OtherAttr);
3159 if (resultValue.isEmpty()) {
3160 ;
3161 } else if (equalIgnoringCase(resultValue, "Value1")) {
3162 resultValue = "Value1";
3163 } else if (equalIgnoringCase(resultValue, "Value2")) {
3164 resultValue = "Value2";
3165 } else {
3166 resultValue = "";
3167 }
3168 v8SetReturnValueString(info, resultValue, info.GetIsolate());
3169 }
3170
3171 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3172 {
3173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3174 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info) ;
3175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3176 }
3177
3178 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
3179 {
3180 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3181 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3182 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3183 imp->setAttribute(HTMLNames::OtherAttr, cppValue);
3184 }
3185
3186 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3187 {
3188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3189 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3190 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal ue, info);
3191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3192 }
3193
3077 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 3194 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
3078 { 3195 {
3079 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3196 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3080 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute()); 3197 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute());
3081 } 3198 }
3082 3199
3083 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3200 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3084 { 3201 {
3085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3086 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter( info); 3203 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter( info);
(...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after
6846 {"reflectBooleanAttribute", TestObjectPythonV8Internal::reflectBooleanAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::reflectBooleanAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6963 {"reflectBooleanAttribute", TestObjectPythonV8Internal::reflectBooleanAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::reflectBooleanAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6847 {"reflectLongAttribute", TestObjectPythonV8Internal::reflectLongAttributeAtt ributeGetterCallback, TestObjectPythonV8Internal::reflectLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6964 {"reflectLongAttribute", TestObjectPythonV8Internal::reflectLongAttributeAtt ributeGetterCallback, TestObjectPythonV8Internal::reflectLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6848 {"reflectUnsignedShortAttribute", TestObjectPythonV8Internal::reflectUnsigne dShortAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsig nedShortAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl >(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance * /}, 6965 {"reflectUnsignedShortAttribute", TestObjectPythonV8Internal::reflectUnsigne dShortAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsig nedShortAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl >(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance * /},
6849 {"reflectUnsignedLongAttribute", TestObjectPythonV8Internal::reflectUnsigned LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsigne dLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6966 {"reflectUnsignedLongAttribute", TestObjectPythonV8Internal::reflectUnsigned LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::reflectUnsigne dLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6850 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, TestObjectPyth onV8Internal::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 6967 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, TestObjectPyth onV8Internal::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
6851 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, TestObject PythonV8Internal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */}, 6968 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, TestObject PythonV8Internal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */},
6852 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, TestObje ctPythonV8Internal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on in stance */}, 6969 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, TestObje ctPythonV8Internal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on in stance */},
6853 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba ck, TestObjectPythonV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */}, 6970 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba ck, TestObjectPythonV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */},
6854 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa llback, TestObjectPythonV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */}, 6971 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa llback, TestObjectPythonV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */},
6855 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter Callback, TestObjectPythonV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 6972 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter Callback, TestObjectPythonV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
6973 {"limitedToOnlyOneAttribute", TestObjectPythonV8Internal::limitedToOnlyOneAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOneAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6974 {"limitedToOnlyAttribute", TestObjectPythonV8Internal::limitedToOnlyAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6975 {"limitedToOnlyOtherAttribute", TestObjectPythonV8Internal::limitedToOnlyOth erAttributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOth erAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6856 {"replaceableReadonlyLongAttribute", TestObjectPythonV8Internal::replaceable ReadonlyLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::TestOb jectPythonReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan ce */}, 6976 {"replaceableReadonlyLongAttribute", TestObjectPythonV8Internal::replaceable ReadonlyLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::TestOb jectPythonReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan ce */},
6857 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>( v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */} , 6977 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>( v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */} ,
6858 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal ::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 6978 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal ::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
6859 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 6979 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
6860 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8 Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */}, 6980 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8 Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */},
6861 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 6981 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
6862 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal: :treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 6982 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal: :treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
6863 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6983 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6864 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 6984 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
6865 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 6985 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
7190 fromInternalPointer(object)->deref(); 7310 fromInternalPointer(object)->deref();
7191 } 7311 }
7192 7312
7193 template<> 7313 template<>
7194 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7314 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
7195 { 7315 {
7196 return toV8(impl, creationContext, isolate); 7316 return toV8(impl, creationContext, isolate);
7197 } 7317 }
7198 7318
7199 } // namespace WebCore 7319 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698