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

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

Issue 140663012: IDL compiler: Window-specific code + Window-only features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfacePython.cpp ('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 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 v8SetReturnValueInt(info, imp->perWorldBindingsReadonlyLongAttribute()); 2203 v8SetReturnValueInt(info, imp->perWorldBindingsReadonlyLongAttribute());
2204 } 2204 }
2205 2205
2206 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2206 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2207 { 2207 {
2208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2209 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe tterForMainWorld(info); 2209 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe tterForMainWorld(info);
2210 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2210 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2211 } 2211 }
2212 2212
2213 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info)
2214 {
2215 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2216 RefPtr<TestInterfaceEmpty> result = imp->perWorldBindingsReadonlyTestInterfa ceEmptyAttribute();
2217 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>( info.GetReturnValue(), result.get()))
2218 return;
2219 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate());
2220 if (!wrapper.IsEmpty()) {
2221 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon lyTestInterfaceEmptyAttribute", wrapper);
2222 v8SetReturnValue(info, wrapper);
2223 }
2224 }
2225
2226 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2227 {
2228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2229 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib uteAttributeGetter(info);
2230 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2231 }
2232
2233 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2234 {
2235 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2236 RefPtr<TestInterfaceEmpty> result = imp->perWorldBindingsReadonlyTestInterfa ceEmptyAttribute();
2237 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte rfaceEmpty>(info.GetReturnValue(), result.get()))
2238 return;
2239 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate());
2240 if (!wrapper.IsEmpty()) {
2241 setHiddenValue(info.GetIsolate(), info.Holder(), "perWorldBindingsReadon lyTestInterfaceEmptyAttribute", wrapper);
2242 v8SetReturnValue(info, wrapper);
2243 }
2244 }
2245
2246 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info)
2247 {
2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2249 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib uteAttributeGetterForMainWorld(info);
2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2251 }
2252
2213 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2253 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2214 { 2254 {
2215 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2255 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2216 v8SetReturnValueInt(info, imp->activityLoggingAccessPerWorldBindingsLongAttr ibute()); 2256 v8SetReturnValueInt(info, imp->activityLoggingAccessPerWorldBindingsLongAttr ibute());
2217 } 2257 }
2218 2258
2219 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2259 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2220 { 2260 {
2221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2222 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2262 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3395 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute()); 3435 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute());
3396 } 3436 }
3397 3437
3398 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3438 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3399 { 3439 {
3400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3401 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter( info); 3441 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter( info);
3402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3403 } 3443 }
3404 3444
3445 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
3446 {
3447 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3448 v8SetReturnValueFast(info, imp->locationReplaceable(), imp);
3449 }
3450
3451 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
3452 {
3453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3454 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info);
3455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3456 }
3457
3458 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info)
3459 {
3460 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder());
3461 TestNode* imp = proxyImp->locationReplaceable();
3462 if (!imp)
3463 return;
3464 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3465 imp->setHref(cppValue);
3466 }
3467
3468 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3469 {
3470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3471 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info );
3472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3473 }
3474
3405 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3475 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3406 { 3476 {
3407 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3477 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3408 v8SetReturnValueInt(info, imp->runtimeEnabledLongAttribute()); 3478 v8SetReturnValueInt(info, imp->runtimeEnabledLongAttribute());
3409 } 3479 }
3410 3480
3411 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 3481 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3412 { 3482 {
3413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3414 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info) ; 3484 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info) ;
3415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3416 } 3486 }
3417 3487
3418 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 3488 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
3419 { 3489 {
3420 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); 3490 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
3421 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3491 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3422 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3492 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
3423 imp->setRuntimeEnabledLongAttribute(cppValue); 3493 imp->setRuntimeEnabledLongAttribute(cppValue);
3424 } 3494 }
3425 3495
3426 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3496 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3427 { 3497 {
3428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3429 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal ue, info); 3499 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal ue, info);
3430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3431 } 3501 }
3432 3502
3503 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
3504 {
3505 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3506 v8SetReturnValueInt(info, imp->perContextEnabledRuntimeEnabledLongAttribute( ));
3507 }
3508
3509 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3510 {
3511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3512 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteGetter(info);
3513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3514 }
3515
3516 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3517 {
3518 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsol ate());
3519 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3520 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
3521 imp->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
3522 }
3523
3524 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info)
3525 {
3526 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3527 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteSetter(jsValue, info);
3528 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3529 }
3530
3433 #if ENABLE(CONDITION) 3531 #if ENABLE(CONDITION)
3434 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 3532 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
3435 { 3533 {
3436 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3534 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3437 v8SetReturnValueInt(info, imp->conditionalRuntimeEnabledLongAttribute()); 3535 v8SetReturnValueInt(info, imp->conditionalRuntimeEnabledLongAttribute());
3438 } 3536 }
3439 #endif // ENABLE(CONDITION) 3537 #endif // ENABLE(CONDITION)
3440 3538
3441 #if ENABLE(CONDITION) 3539 #if ENABLE(CONDITION)
3442 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3540 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
(...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after
7197 {"deprecatedLongAttribute", TestObjectPythonV8Internal::deprecatedLongAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::deprecatedLongAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7295 {"deprecatedLongAttribute", TestObjectPythonV8Internal::deprecatedLongAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::deprecatedLongAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7198 {"enforceRangeLongAttribute", TestObjectPythonV8Internal::enforceRangeLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::enforceRangeLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7296 {"enforceRangeLongAttribute", TestObjectPythonV8Internal::enforceRangeLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::enforceRangeLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7199 {"implementedAsLongAttribute", TestObjectPythonV8Internal::implementedAsLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::implementedAsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7297 {"implementedAsLongAttribute", TestObjectPythonV8Internal::implementedAsLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::implementedAsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7200 {"customImplementedAsLongAttribute", TestObjectPythonV8Internal::customImple mentedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::custom ImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 7298 {"customImplementedAsLongAttribute", TestObjectPythonV8Internal::customImple mentedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::custom ImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
7201 {"customGetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mGetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customGetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */}, 7299 {"customGetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mGetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customGetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
7202 {"customSetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mSetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customSetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */}, 7300 {"customSetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mSetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customSetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
7203 {"measureAsLongAttribute", TestObjectPythonV8Internal::measureAsLongAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::measureAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7301 {"measureAsLongAttribute", TestObjectPythonV8Internal::measureAsLongAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::measureAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7204 {"notEnumerableLongAttribute", TestObjectPythonV8Internal::notEnumerableLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::notEnumerableLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */}, 7302 {"notEnumerableLongAttribute", TestObjectPythonV8Internal::notEnumerableLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::notEnumerableLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */},
7205 {"perWorldBindingsLongAttribute", TestObjectPythonV8Internal::perWorldBindin gsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perWorldBind ingsLongAttributeAttributeSetterCallback, TestObjectPythonV8Internal::perWorldBi ndingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Intern al::perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), 0 /* on instance */}, 7303 {"perWorldBindingsLongAttribute", TestObjectPythonV8Internal::perWorldBindin gsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perWorldBind ingsLongAttributeAttributeSetterCallback, TestObjectPythonV8Internal::perWorldBi ndingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Intern al::perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), 0 /* on instance */},
7206 {"perWorldBindingsReadonlyLongAttribute", TestObjectPythonV8Internal::perWor ldBindingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectPythonV8Int ernal::perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 7304 {"perWorldBindingsReadonlyLongAttribute", TestObjectPythonV8Internal::perWor ldBindingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectPythonV8Int ernal::perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
7305 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectPythonV8In ternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallba ck, 0, TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAtt ributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>( v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */} ,
7207 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingAccessPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7306 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingAccessPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7208 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingA ccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7307 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingA ccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7209 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingGetterPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7308 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingGetterPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7210 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingG etterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7309 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingG etterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7211 {"location", TestObjectPythonV8Internal::locationAttributeGetterCallback, Te stObjectPythonV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7310 {"location", TestObjectPythonV8Internal::locationAttributeGetterCallback, Te stObjectPythonV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7212 {"locationWithException", TestObjectPythonV8Internal::locationWithExceptionA ttributeGetterCallback, TestObjectPythonV8Internal::locationWithExceptionAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7311 {"locationWithException", TestObjectPythonV8Internal::locationWithExceptionA ttributeGetterCallback, TestObjectPythonV8Internal::locationWithExceptionAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7213 {"locationWithCallWith", TestObjectPythonV8Internal::locationWithCallWithAtt ributeGetterCallback, TestObjectPythonV8Internal::locationWithCallWithAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7312 {"locationWithCallWith", TestObjectPythonV8Internal::locationWithCallWithAtt ributeGetterCallback, TestObjectPythonV8Internal::locationWithCallWithAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7214 {"locationWithPerWorldBindings", TestObjectPythonV8Internal::locationWithPer WorldBindingsAttributeGetterCallback, TestObjectPythonV8Internal::locationWithPe rWorldBindingsAttributeSetterCallback, TestObjectPythonV8Internal::locationWithP erWorldBindingsAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal:: locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7313 {"locationWithPerWorldBindings", TestObjectPythonV8Internal::locationWithPer WorldBindingsAttributeGetterCallback, TestObjectPythonV8Internal::locationWithPe rWorldBindingsAttributeSetterCallback, TestObjectPythonV8Internal::locationWithP erWorldBindingsAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal:: locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7215 {"raisesExceptionLongAttribute", TestObjectPythonV8Internal::raisesException LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::raisesExceptio nLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7314 {"raisesExceptionLongAttribute", TestObjectPythonV8Internal::raisesException LongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::raisesExceptio nLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7216 {"raisesExceptionGetterLongAttribute", TestObjectPythonV8Internal::raisesExc eptionGetterLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::ra isesExceptionGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */}, 7315 {"raisesExceptionGetterLongAttribute", TestObjectPythonV8Internal::raisesExc eptionGetterLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::ra isesExceptionGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
(...skipping 13 matching lines...) Expand all
7230 {"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 */}, 7329 {"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 */},
7231 {"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 */}, 7330 {"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 */},
7232 {"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 */}, 7331 {"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 */},
7233 {"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 */}, 7332 {"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 */},
7234 {"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 */}, 7333 {"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 */},
7235 {"limitedWithMissingDefaultAttribute", TestObjectPythonV8Internal::limitedWi thMissingDefaultAttributeAttributeGetterCallback, TestObjectPythonV8Internal::li mitedWithMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */}, 7334 {"limitedWithMissingDefaultAttribute", TestObjectPythonV8Internal::limitedWi thMissingDefaultAttributeAttributeGetterCallback, TestObjectPythonV8Internal::li mitedWithMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
7236 {"limitedWithInvalidMissingDefaultAttribute", TestObjectPythonV8Internal::li mitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectPython V8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 7335 {"limitedWithInvalidMissingDefaultAttribute", TestObjectPythonV8Internal::li mitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectPython V8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
7237 {"corsSettingAttribute", TestObjectPythonV8Internal::corsSettingAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7336 {"corsSettingAttribute", TestObjectPythonV8Internal::corsSettingAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7238 {"limitedWithEmptyMissingInvalidAttribute", TestObjectPythonV8Internal::limi tedWithEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 7337 {"limitedWithEmptyMissingInvalidAttribute", TestObjectPythonV8Internal::limi tedWithEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
7239 {"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 */}, 7338 {"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 */},
7339 {"locationReplaceable", TestObjectPythonV8Internal::locationReplaceableAttri buteGetterCallback, TestObjectPythonV8Internal::locationReplaceableAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
7240 {"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 */} , 7340 {"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 */} ,
7241 {"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 */}, 7341 {"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 */},
7242 {"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 */}, 7342 {"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 */},
7243 {"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 */}, 7343 {"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 */},
7244 {"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 */}, 7344 {"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 */},
7245 {"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 */}, 7345 {"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 */},
7246 {"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 */}, 7346 {"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 */},
7247 {"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 */}, 7347 {"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 */},
7248 {"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 */}, 7348 {"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 */},
7249 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS _OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta nce */}, 7349 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS _OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta nce */},
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
7532 } 7632 }
7533 7633
7534 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) 7634 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate)
7535 { 7635 {
7536 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype()); 7636 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype());
7537 if (ContextFeatures::featureNameEnabled(impl->document())) { 7637 if (ContextFeatures::featureNameEnabled(impl->document())) {
7538 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 7638 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
7539 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */}; 7639 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */};
7540 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 7640 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
7541 } 7641 }
7642 if (ContextFeatures::featureNameEnabled(impl->document())) {
7643 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
7644 {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectPythonV8Inter nal::perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSette rCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8: :PropertyAttribute>(v8::None), 0 /* on instance */};
7645 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
7646 }
7542 } 7647 }
7543 7648
7544 void V8TestObjectPython::installPerContextEnabledMethods(v8::Handle<v8::Object> prototypeTemplate, v8::Isolate* isolate) 7649 void V8TestObjectPython::installPerContextEnabledMethods(v8::Handle<v8::Object> prototypeTemplate, v8::Isolate* isolate)
7545 { 7650 {
7546 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate, worldType(isolate))); 7651 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate, worldType(isolate)));
7547 7652
7548 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext()); 7653 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo ntext());
7549 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) 7654 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context)))
7550 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::perContext EnabledVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunctio n()); 7655 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::perContext EnabledVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunctio n());
7551 } 7656 }
(...skipping 23 matching lines...) Expand all
7575 fromInternalPointer(object)->deref(); 7680 fromInternalPointer(object)->deref();
7576 } 7681 }
7577 7682
7578 template<> 7683 template<>
7579 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7684 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
7580 { 7685 {
7581 return toV8(impl, creationContext, isolate); 7686 return toV8(impl, creationContext, isolate);
7582 } 7687 }
7583 7688
7584 } // namespace WebCore 7689 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfacePython.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698