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

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

Issue 185413023: Oilpan: move Touch related objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid MSVC local class member function restriction Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 5681 matching lines...) Expand 10 before | Expand all | Expand 10 after
5692 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs); 5692 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs);
5693 } 5693 }
5694 5694
5695 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 5695 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
5696 { 5696 {
5697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5698 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter faceEmptyArgMethod(info); 5698 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter faceEmptyArgMethod(info);
5699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5700 } 5700 }
5701 5701
5702 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5703 {
5704 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5705 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg;
5706 for (int i = 0; i < info.Length(); ++i) {
5707 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge tIsolate())) {
5708 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceWillBeGarbageCollectedArg", "TestObjectPython", "parameter 1 is no t of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate());
5709 return;
5710 }
5711 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i])));
5712 }
5713 imp->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestIn terfaceWillBeGarbageCollectedArg);
5714 }
5715
5716 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
5717 {
5718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5719 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageColl ectedArgMethod(info);
5720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5721 }
5722
5702 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 5723 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
5703 { 5724 {
5704 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); 5725 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObjectPython", info.Holder(), info.GetIsolate());
5705 if (UNLIKELY(info.Length() < 1)) { 5726 if (UNLIKELY(info.Length() < 1)) {
5706 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5727 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
5707 exceptionState.throwIfNeeded(); 5728 exceptionState.throwIfNeeded();
5708 return; 5729 return;
5709 } 5730 }
5710 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5731 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5711 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 5732 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
7239 imp->unforgeableVoidMethod(); 7260 imp->unforgeableVoidMethod();
7240 } 7261 }
7241 7262
7242 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 7263 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
7243 { 7264 {
7244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7245 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); 7266 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info);
7246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7247 } 7268 }
7248 7269
7270 static void voidMethodSequenceTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7271 {
7272 if (UNLIKELY(info.Length() < 1)) {
7273 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes tInterfaceWillBeGarbageCollectedArg", "TestObjectPython", ExceptionMessages::not EnoughArguments(1, info.Length())), info.GetIsolate());
7274 return;
7275 }
7276 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
7277 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, sequenceTestInterfaceWillBeGarbageCollectedArg, (toMemberNativeA rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected> (info[0], 1, info.GetIsolate())));
7278 imp->voidMethodSequenceTestInterfaceWillBeGarbageCollectedArg(sequenceTestIn terfaceWillBeGarbageCollectedArg);
7279 }
7280
7281 static void voidMethodSequenceTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7282 {
7283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7284 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceWillBeGarbageColl ectedArgMethod(info);
7285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7286 }
7287
7288 static void voidMethodArrayTestInterfaceWillBeGarbageCollectedArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7289 {
7290 if (UNLIKELY(info.Length() < 1)) {
7291 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn terfaceWillBeGarbageCollectedArg", "TestObjectPython", ExceptionMessages::notEno ughArguments(1, info.Length())), info.GetIsolate());
7292 return;
7293 }
7294 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
7295 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, arrayTestInterfaceWillBeGarbageCollectedArg, (toMemberNativeArra y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in fo[0], 1, info.GetIsolate())));
7296 imp->voidMethodArrayTestInterfaceWillBeGarbageCollectedArg(arrayTestInterfac eWillBeGarbageCollectedArg);
7297 }
7298
7299 static void voidMethodArrayTestInterfaceWillBeGarbageCollectedArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
7300 {
7301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7302 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceWillBeGarbageCollect edArgMethod(info);
7303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7304 }
7305
7249 } // namespace TestObjectPythonV8Internal 7306 } // namespace TestObjectPythonV8Internal
7250 7307
7251 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib utes[] = { 7308 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib utes[] = {
7252 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7309 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7253 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7310 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7254 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7311 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7255 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */}, 7312 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), 0 /* on instance */},
7256 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */}, 7313 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */},
7257 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7314 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7258 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), 0 /* on instance */}, 7315 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), 0 /* on instance */},
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
7484 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional LongArgMethodCallback, 0, 0}, 7541 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional LongArgMethodCallback, 0, 0},
7485 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL ongArgOptionalLongArgMethodCallback, 0, 1}, 7542 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL ongArgOptionalLongArgMethodCallback, 0, 1},
7486 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, 7543 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1},
7487 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, 7544 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1},
7488 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, 7545 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1},
7489 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp tionalDictionaryArgMethodCallback, 0, 0}, 7546 {"voidMethodOptionalDictionaryArg", TestObjectPythonV8Internal::voidMethodOp tionalDictionaryArgMethodCallback, 0, 0},
7490 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad icStringArgMethodCallback, 0, 1}, 7547 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad icStringArgMethodCallback, 0, 1},
7491 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet hodStringArgVariadicStringArgMethodCallback, 0, 2}, 7548 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet hodStringArgVariadicStringArgMethodCallback, 0, 2},
7492 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectPythonV8Internal::void MethodVariadicTestInterfaceEmptyArgMethodCallback, 0, 1}, 7549 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectPythonV8Internal::void MethodVariadicTestInterfaceEmptyArgMethodCallback, 0, 1},
7493 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectP ythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMet hodCallback, 0, 2}, 7550 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectP ythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMet hodCallback, 0, 2},
7551 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectPytho nV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallb ack, 0, 1},
7494 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal lback, 0, 1}, 7552 {"overloadedMethodA", TestObjectPythonV8Internal::overloadedMethodAMethodCal lback, 0, 1},
7495 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal lback, 0, 1}, 7553 {"overloadedMethodB", TestObjectPythonV8Internal::overloadedMethodBMethodCal lback, 0, 1},
7496 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal lback, 0, 1}, 7554 {"overloadedMethodC", TestObjectPythonV8Internal::overloadedMethodCMethodCal lback, 0, 1},
7497 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal lback, 0, 1}, 7555 {"overloadedMethodD", TestObjectPythonV8Internal::overloadedMethodDMethodCal lback, 0, 1},
7498 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal lback, 0, 1}, 7556 {"overloadedMethodE", TestObjectPythonV8Internal::overloadedMethodEMethodCal lback, 0, 1},
7499 {"overloadedMethodF", TestObjectPythonV8Internal::overloadedMethodFMethodCal lback, 0, 1}, 7557 {"overloadedMethodF", TestObjectPythonV8Internal::overloadedMethodFMethodCal lback, 0, 1},
7500 {"overloadedMethodG", TestObjectPythonV8Internal::overloadedMethodGMethodCal lback, 0, 0}, 7558 {"overloadedMethodG", TestObjectPythonV8Internal::overloadedMethodGMethodCal lback, 0, 0},
7501 {"overloadedMethodH", TestObjectPythonV8Internal::overloadedMethodHMethodCal lback, 0, 0}, 7559 {"overloadedMethodH", TestObjectPythonV8Internal::overloadedMethodHMethodCal lback, 0, 0},
7502 {"overloadedPerWorldBindingsMethod", TestObjectPythonV8Internal::overloadedP erWorldBindingsMethodMethodCallback, TestObjectPythonV8Internal::overloadedPerWo rldBindingsMethodMethodCallbackForMainWorld, 0}, 7560 {"overloadedPerWorldBindingsMethod", TestObjectPythonV8Internal::overloadedP erWorldBindingsMethodMethodCallback, TestObjectPythonV8Internal::overloadedPerWo rldBindingsMethodMethodCallbackForMainWorld, 0},
7503 {"addEventListener", TestObjectPythonV8Internal::addEventListenerMethodCallb ack, 0, 2}, 7561 {"addEventListener", TestObjectPythonV8Internal::addEventListenerMethodCallb ack, 0, 2},
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
7543 {"raisesExceptionVoidMethod", TestObjectPythonV8Internal::raisesExceptionVoi dMethodMethodCallback, 0, 0}, 7601 {"raisesExceptionVoidMethod", TestObjectPythonV8Internal::raisesExceptionVoi dMethodMethodCallback, 0, 0},
7544 {"raisesExceptionStringMethod", TestObjectPythonV8Internal::raisesExceptionS tringMethodMethodCallback, 0, 0}, 7602 {"raisesExceptionStringMethod", TestObjectPythonV8Internal::raisesExceptionS tringMethodMethodCallback, 0, 0},
7545 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectPythonV8Internal::rai sesExceptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, 7603 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectPythonV8Internal::rai sesExceptionVoidMethodOptionalLongArgMethodCallback, 0, 0},
7546 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectPythonV8Inte rnal::raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, 7604 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectPythonV8Inte rnal::raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1},
7547 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectPyth onV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCal lback, 0, 0}, 7605 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectPyth onV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCal lback, 0, 0},
7548 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectPythonV8Internal:: raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, 7606 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectPythonV8Internal:: raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0},
7549 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Inte rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 7607 {"strictTypeCheckingVoidMethodTestInterfaceEmptyArg", TestObjectPythonV8Inte rnal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
7550 {"strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg", TestObjectPyth onV8Internal::strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCal lback, 0, 1}, 7608 {"strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg", TestObjectPyth onV8Internal::strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCal lback, 0, 1},
7551 {"treatReturnedNullStringAsNullStringMethod", TestObjectPythonV8Internal::tr eatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0}, 7609 {"treatReturnedNullStringAsNullStringMethod", TestObjectPythonV8Internal::tr eatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0},
7552 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectPythonV8Interna l::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, 7610 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectPythonV8Interna l::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0},
7611 {"voidMethodSequenceTestInterfaceWillBeGarbageCollectedArg", TestObjectPytho nV8Internal::voidMethodSequenceTestInterfaceWillBeGarbageCollectedArgMethodCallb ack, 0, 1},
7612 {"voidMethodArrayTestInterfaceWillBeGarbageCollectedArg", TestObjectPythonV8 Internal::voidMethodArrayTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0 , 1},
7553 }; 7613 };
7554 7614
7555 static void configureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) 7615 static void configureV8TestObjectPythonTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
7556 { 7616 {
7557 functionTemplate->ReadOnlyPrototype(); 7617 functionTemplate->ReadOnlyPrototype();
7558 7618
7559 v8::Local<v8::Signature> defaultSignature; 7619 v8::Local<v8::Signature> defaultSignature;
7560 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython:: internalFieldCount, 7620 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObjectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython:: internalFieldCount,
7561 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes), 7621 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes),
7562 V8TestObjectPythonAccessors, WTF_ARRAY_LENGTH(V8TestObjectPythonAccessor s), 7622 V8TestObjectPythonAccessors, WTF_ARRAY_LENGTH(V8TestObjectPythonAccessor s),
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
7722 fromInternalPointer(object)->deref(); 7782 fromInternalPointer(object)->deref();
7723 } 7783 }
7724 7784
7725 template<> 7785 template<>
7726 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7786 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
7727 { 7787 {
7728 return toV8(impl, creationContext, isolate); 7788 return toV8(impl, creationContext, isolate);
7729 } 7789 }
7730 7790
7731 } // namespace WebCore 7791 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestCallbackInterface.cpp ('k') | Source/bindings/v8/V8Binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698