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

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

Issue 141523002: Add null-correctness checking to [StrictTypeChecking] methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Last test 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 | 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 imp->setNullableLongAttribute(cppValue); 1364 imp->setNullableLongAttribute(cppValue);
1365 } 1365 }
1366 1366
1367 static void nullableLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1367 static void nullableLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1368 { 1368 {
1369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1370 TestObjectPythonV8Internal::nullableLongAttributeAttributeSetter(jsValue, in fo); 1370 TestObjectPythonV8Internal::nullableLongAttributeAttributeSetter(jsValue, in fo);
1371 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1371 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1372 } 1372 }
1373 1373
1374 static void nullableTestInterfaceAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
1375 {
1376 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1377 bool isNull = false;
1378 RefPtr<TestInterface> jsValue = imp->nullableTestInterfaceAttribute(isNull);
1379 if (isNull) {
1380 v8SetReturnValueNull(info);
1381 return;
1382 }
1383 v8SetReturnValueFast(info, jsValue.release(), imp);
1384 }
1385
1386 static void nullableTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1387 {
1388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1389 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeGetter(in fo);
1390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1391 }
1392
1393 static void nullableTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info)
1394 {
1395 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1396 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0);
1397 imp->setNullableTestInterfaceAttribute(WTF::getPtr(cppValue));
1398 }
1399
1400 static void nullableTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o)
1401 {
1402 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1403 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeSetter(js Value, info);
1404 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1405 }
1406
1374 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1407 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1375 { 1408 {
1376 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1409 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1377 v8SetReturnValueString(info, imp->testEnumAttribute(), info.GetIsolate()); 1410 v8SetReturnValueString(info, imp->testEnumAttribute(), info.GetIsolate());
1378 } 1411 }
1379 1412
1380 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1413 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1381 { 1414 {
1382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1383 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); 1416 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info);
(...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after
6458 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6459 } 6492 }
6460 6493
6461 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6494 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6462 { 6495 {
6463 if (UNLIKELY(info.Length() < 1)) { 6496 if (UNLIKELY(info.Length() < 1)) {
6464 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate()); 6497 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate());
6465 return; 6498 return;
6466 } 6499 }
6467 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6500 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6468 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { 6501 if (info.Length() > 0 && !info[0]->IsUndefined() && !V8TestInterfaceEmpty::h asInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) {
6469 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); 6502 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate());
6470 return; 6503 return;
6471 } 6504 }
6472 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 6505 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
6473 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg ); 6506 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg );
6474 } 6507 }
6475 6508
6476 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 6509 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
6477 { 6510 {
6478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6479 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info); 6512 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info);
6480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6481 } 6514 }
6482 6515
6516 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
6517 {
6518 if (UNLIKELY(info.Length() < 1)) {
6519 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::no tEnoughArguments(1, info.Length())), info.GetIsolate());
6520 return;
6521 }
6522 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6523 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) {
6524 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not o f type 'TestInterfaceEmpty'."), info.GetIsolate());
6525 return;
6526 }
6527 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
6528 imp->strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg(testInterface EmptyArg);
6529 }
6530
6531 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
6532 {
6533 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6534 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodNullableTestInterfac eEmptyArgMethod(info);
6535 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6536 }
6537
6483 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 6538 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
6484 { 6539 {
6485 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6540 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6486 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM ethod(), info.GetIsolate()); 6541 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM ethod(), info.GetIsolate());
6487 } 6542 }
6488 6543
6489 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6544 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6490 { 6545 {
6491 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6492 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod( info); 6547 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod( info);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
6565 {"self", TestObjectPythonV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, 6620 {"self", TestObjectPythonV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */},
6566 {"readonlyEventTargetAttribute", TestObjectPythonV8Internal::readonlyEventTa rgetAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 6621 {"readonlyEventTargetAttribute", TestObjectPythonV8Internal::readonlyEventTa rgetAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
6567 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6622 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6568 {"htmlCollectionAttribute", TestObjectPythonV8Internal::htmlCollectionAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6623 {"htmlCollectionAttribute", TestObjectPythonV8Internal::htmlCollectionAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6569 {"htmlElementAttribute", TestObjectPythonV8Internal::htmlElementAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6624 {"htmlElementAttribute", TestObjectPythonV8Internal::htmlElementAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6570 {"stringArrayAttribute", TestObjectPythonV8Internal::stringArrayAttributeAtt ributeGetterCallback, TestObjectPythonV8Internal::stringArrayAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6625 {"stringArrayAttribute", TestObjectPythonV8Internal::stringArrayAttributeAtt ributeGetterCallback, TestObjectPythonV8Internal::stringArrayAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6571 {"testInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::testInterfa ceEmptyArrayAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testIn terfaceEmptyArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 6626 {"testInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::testInterfa ceEmptyArrayAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testIn terfaceEmptyArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
6572 {"floatArrayAttribute", TestObjectPythonV8Internal::floatArrayAttributeAttri buteGetterCallback, TestObjectPythonV8Internal::floatArrayAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */}, 6627 {"floatArrayAttribute", TestObjectPythonV8Internal::floatArrayAttributeAttri buteGetterCallback, TestObjectPythonV8Internal::floatArrayAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
6573 {"nullableStringAttribute", TestObjectPythonV8Internal::nullableStringAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::nullableStringAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6628 {"nullableStringAttribute", TestObjectPythonV8Internal::nullableStringAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::nullableStringAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6574 {"nullableLongAttribute", TestObjectPythonV8Internal::nullableLongAttributeA ttributeGetterCallback, TestObjectPythonV8Internal::nullableLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6629 {"nullableLongAttribute", TestObjectPythonV8Internal::nullableLongAttributeA ttributeGetterCallback, TestObjectPythonV8Internal::nullableLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6630 {"nullableTestInterfaceAttribute", TestObjectPythonV8Internal::nullableTestI nterfaceAttributeAttributeGetterCallback, TestObjectPythonV8Internal::nullableTe stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc e */},
6575 {"testEnumAttribute", TestObjectPythonV8Internal::testEnumAttributeAttribute GetterCallback, TestObjectPythonV8Internal::testEnumAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */}, 6631 {"testEnumAttribute", TestObjectPythonV8Internal::testEnumAttributeAttribute GetterCallback, TestObjectPythonV8Internal::testEnumAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), 0 /* on instance */},
6576 {"testObjectAConstructorAttribute", TestObjectPythonV8Internal::TestObjectPy thonConstructorGetter, TestObjectPythonV8Internal::TestObjectPythonReplaceableAt tributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestObjectA::wrappe rTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::DontEnum), 0 /* on instance */}, 6632 {"testObjectAConstructorAttribute", TestObjectPythonV8Internal::TestObjectPy thonConstructorGetter, TestObjectPythonV8Internal::TestObjectPythonReplaceableAt tributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestObjectA::wrappe rTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::DontEnum), 0 /* on instance */},
6577 {"eventHandlerAttribute", TestObjectPythonV8Internal::eventHandlerAttributeA ttributeGetterCallback, TestObjectPythonV8Internal::eventHandlerAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6633 {"eventHandlerAttribute", TestObjectPythonV8Internal::eventHandlerAttributeA ttributeGetterCallback, TestObjectPythonV8Internal::eventHandlerAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6578 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6634 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
6579 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6635 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
6580 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6636 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectPythonV8Interna l::activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb jectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
6581 {"cachedAttributeAnyAttribute", TestObjectPythonV8Internal::cachedAttributeA nyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::cachedAttributeA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 6637 {"cachedAttributeAnyAttribute", TestObjectPythonV8Internal::cachedAttributeA nyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::cachedAttributeA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
6582 {"callWithExecutionContextAnyAttribute", TestObjectPythonV8Internal::callWit hExecutionContextAnyAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::callWithExecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 6638 {"callWithExecutionContextAnyAttribute", TestObjectPythonV8Internal::callWit hExecutionContextAnyAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::callWithExecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
6583 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal ::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */}, 6639 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal ::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */},
6584 #if ENABLE(CONDITION) 6640 #if ENABLE(CONDITION)
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
6793 {"perWorldBindingsVoidMethod", TestObjectPythonV8Internal::perWorldBindingsV oidMethodMethodCallback, TestObjectPythonV8Internal::perWorldBindingsVoidMethodM ethodCallbackForMainWorld, 0}, 6849 {"perWorldBindingsVoidMethod", TestObjectPythonV8Internal::perWorldBindingsV oidMethodMethodCallback, TestObjectPythonV8Internal::perWorldBindingsVoidMethodM ethodCallbackForMainWorld, 0},
6794 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectPythonV8 Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, T estObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethod MethodCallbackForMainWorld, 0}, 6850 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectPythonV8 Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, T estObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethod MethodCallbackForMainWorld, 0},
6795 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectPyt honV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodC allback, TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBin dingsVoidMethodMethodCallbackForMainWorld, 0}, 6851 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectPyt honV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodC allback, TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBin dingsVoidMethodMethodCallbackForMainWorld, 0},
6796 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Intern al::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectPyt honV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForM ainWorld, 1}, 6852 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Intern al::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectPyt honV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForM ainWorld, 1},
6797 {"raisesExceptionVoidMethod", TestObjectPythonV8Internal::raisesExceptionVoi dMethodMethodCallback, 0, 0}, 6853 {"raisesExceptionVoidMethod", TestObjectPythonV8Internal::raisesExceptionVoi dMethodMethodCallback, 0, 0},
6798 {"raisesExceptionStringMethod", TestObjectPythonV8Internal::raisesExceptionS tringMethodMethodCallback, 0, 0}, 6854 {"raisesExceptionStringMethod", TestObjectPythonV8Internal::raisesExceptionS tringMethodMethodCallback, 0, 0},
6799 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectPythonV8Internal::rai sesExceptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, 6855 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectPythonV8Internal::rai sesExceptionVoidMethodOptionalLongArgMethodCallback, 0, 0},
6800 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectPythonV8Inte rnal::raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, 6856 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectPythonV8Inte rnal::raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1},
6801 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectPyth onV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCal lback, 0, 0}, 6857 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectPyth onV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCal lback, 0, 0},
6802 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Inte rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 6858 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Inte rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
6859 {"strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg", TestObjectPyth onV8Internal::strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCal lback, 0, 1},
6803 {"treatReturnedNullStringAsNullStringMethod", TestObjectPythonV8Internal::tr eatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0}, 6860 {"treatReturnedNullStringAsNullStringMethod", TestObjectPythonV8Internal::tr eatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0},
6804 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectPythonV8Interna l::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, 6861 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectPythonV8Interna l::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0},
6805 }; 6862 };
6806 6863
6807 static void configureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) 6864 static void configureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
6808 { 6865 {
6809 functionTemplate->ReadOnlyPrototype(); 6866 functionTemplate->ReadOnlyPrototype();
6810 6867
6811 v8::Local<v8::Signature> defaultSignature; 6868 v8::Local<v8::Signature> defaultSignature;
6812 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython:: internalFieldCount, 6869 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython:: internalFieldCount,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
6967 fromInternalPointer(object)->deref(); 7024 fromInternalPointer(object)->deref();
6968 } 7025 }
6969 7026
6970 template<> 7027 template<>
6971 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7028 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
6972 { 7029 {
6973 return toV8(impl, creationContext, isolate); 7030 return toV8(impl, creationContext, isolate);
6974 } 7031 }
6975 7032
6976 } // namespace WebCore 7033 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObjectPython.idl ('k') | Source/bindings/tests/results/V8TestSVG.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698