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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 1322533002: bindings: Supports to change the method location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2356 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static _cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2357 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2357 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder},
2358 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}, 2358 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der},
2359 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2359 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2360 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, 0 , v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Check Holder}, 2360 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, 0 , v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Check Holder},
2361 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia l2LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2361 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia l2LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder},
2362 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2362 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder},
2363 }; 2363 };
2364 2364
2365 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 2365 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
2366 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT oAllScripts}, 2366 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype},
2367 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri pts}, 2367 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnPrototype},
2368 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, 2368 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall back, 0, 2, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type},
2369 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 2369 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype},
2370 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 2370 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
2371 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 2371 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype},
2372 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal: :legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo sedToAllScripts}, 2372 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal: :legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype},
2373 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 2373 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnPrototype},
2374 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, 2374 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts, V8D OMConfiguration::OnPrototype},
2375 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript s}, 2375 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnPrototype},
2376 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3 VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 2376 {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3 VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnPrototype},
2377 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts} , 2377 {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
2378 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc ripts}, 2378 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype},
2379 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 2379 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnPrototype},
2380 }; 2380 };
2381 2381
2382 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl ate> functionTemplate, v8::Isolate* isolate) 2382 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl ate> functionTemplate, v8::Isolate* isolate)
2383 { 2383 {
2384 functionTemplate->ReadOnlyPrototype(); 2384 functionTemplate->ReadOnlyPrototype();
2385 2385
2386 v8::Local<v8::Signature> defaultSignature; 2386 v8::Local<v8::Signature> defaultSignature;
2387 if (!RuntimeEnabledFeatures::featureNameEnabled()) 2387 if (!RuntimeEnabledFeatures::featureNameEnabled())
2388 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V 8TestInterface::internalFieldCount, 0, 0, 0, 0, 0, 0); 2388 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V 8TestInterface::internalFieldCount, 0, 0, 0, 0, 0, 0);
2389 else 2389 else
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 config.flags = v8::PropertyHandlerFlags::kAllCanRead; 2481 config.flags = v8::PropertyHandlerFlags::kAllCanRead;
2482 functionTemplate->InstanceTemplate()->SetHandler(config); 2482 functionTemplate->InstanceTemplate()->SetHandler(config);
2483 } 2483 }
2484 { 2484 {
2485 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings); 2485 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
2486 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead); 2486 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead);
2487 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); 2487 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
2488 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback, v8: :Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); 2488 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback, v8: :Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
2489 functionTemplate->InstanceTemplate()->SetHandler(config); 2489 functionTemplate->InstanceTemplate()->SetHandler(config);
2490 } 2490 }
2491 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator Configuration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal ::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 2491 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator Configuration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal ::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnPrototype };
2492 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 2492 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
2493 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom); 2493 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom);
2494 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = { 2494 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = {"alwaysExposedStaticMethod", TestInterfaceImplementationV8Inte rnal::alwaysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInterface};
2495 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts, 2495 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, alwaysExposedStaticMethodMetho dConfiguration);
2496 };
2497 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration);
2498 if (context && (context->isWorkerGlobalScope())) { 2496 if (context && (context->isWorkerGlobalScope())) {
2499 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = { 2497 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = {"workerExposedStaticMethod", TestInterfaceImplementationV8 Internal::workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnInterface};
2500 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal:: workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2498 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, workerExposedStaticMethodM ethodConfiguration);
2501 };
2502 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, workerExposedStaticMethodMethodConfiguration);
2503 } 2499 }
2504 if (context && (context->isDocument())) { 2500 if (context && (context->isDocument())) {
2505 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = { 2501 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterfaceImplementationV8 Internal::windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnInterface};
2506 "windowExposedStaticMethod", TestInterfaceImplementationV8Internal:: windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2502 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, windowExposedStaticMethodM ethodConfiguration);
2507 };
2508 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration);
2509 } 2503 }
2510 const V8DOMConfiguration::MethodConfiguration staticReturnDOMWrapperMethodMe thodConfiguration = { 2504 const V8DOMConfiguration::MethodConfiguration staticReturnDOMWrapperMethodMe thodConfiguration = {"staticReturnDOMWrapperMethod", TestInterfaceImplementation V8Internal::staticReturnDOMWrapperMethodMethodCallback, 0, 0, V8DOMConfiguration ::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
2511 "staticReturnDOMWrapperMethod", TestInterfaceImplementationV8Internal::s taticReturnDOMWrapperMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAl lScripts, 2505 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, staticReturnDOMWrapperMethodMe thodConfiguration);
2512 }; 2506 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = {"implementsStaticVoidMethod", TestInterfaceImplementationV8In ternal::implementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInterface};
2513 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticReturnDOMWrapperMethodMethodConfiguration); 2507 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, implementsStaticVoidMethodMeth odConfiguration);
2514 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = {
2515 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts,
2516 };
2517 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, implementsStaticVoidMethodMethodConfiguration);
2518 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2508 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2519 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = { 2509 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = {"implements2VoidMethod", TestInterfaceImplementationV8Internal ::implements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype};
2520 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2510 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, implements2VoidMethodMetho dConfiguration);
2521 };
2522 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, implements2VoidMethodMethodConfiguration);
2523 } 2511 }
2524 const V8DOMConfiguration::MethodConfiguration implements3StaticVoidMethodMet hodConfiguration = { 2512 const V8DOMConfiguration::MethodConfiguration implements3StaticVoidMethodMet hodConfiguration = {"implements3StaticVoidMethod", TestInterfaceImplementationV8 Internal::implements3StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInterface};
2525 "implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::im plements3StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2513 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, implements3StaticVoidMethodMet hodConfiguration);
2526 };
2527 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, implements3StaticVoidMethodMethodConfiguration);
2528 #if ENABLE(PARTIAL_CONDITION) 2514 #if ENABLE(PARTIAL_CONDITION)
2529 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2515 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2530 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodCon figuration = { 2516 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodCon figuration = {"partialVoidMethod", TestInterfaceImplementationV8Internal::partia lVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype};
2531 "partialVoidMethod", TestInterfaceImplementationV8Internal::partialV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2517 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, partialVoidMethodMethodCon figuration);
2532 };
2533 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodMethodConfiguration);
2534 } 2518 }
2535 #endif // ENABLE(PARTIAL_CONDITION) 2519 #endif // ENABLE(PARTIAL_CONDITION)
2536 #if ENABLE(PARTIAL_CONDITION) 2520 #if ENABLE(PARTIAL_CONDITION)
2537 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2521 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2538 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMet hodConfiguration = { 2522 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMet hodConfiguration = {"partialStaticVoidMethod", TestInterfaceImplementationV8Inte rnal::partialStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnInterface};
2539 "partialStaticVoidMethod", TestInterfaceImplementationV8Internal::pa rtialStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts, 2523 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, partialStaticVoidMethodMet hodConfiguration);
2540 };
2541 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, partialStaticVoidMethodMethodConfiguration);
2542 } 2524 }
2543 #endif // ENABLE(PARTIAL_CONDITION) 2525 #endif // ENABLE(PARTIAL_CONDITION)
2544 #if ENABLE(PARTIAL_CONDITION) 2526 #if ENABLE(PARTIAL_CONDITION)
2545 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2527 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2546 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMe thodConfiguration = { 2528 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMe thodConfiguration = {"partialVoidMethodLongArg", TestInterfaceImplementationV8In ternal::partialVoidMethodLongArgMethodCallback, 0, 1, V8DOMConfiguration::Expose dToAllScripts, V8DOMConfiguration::OnPrototype};
2547 "partialVoidMethodLongArg", TestInterfaceImplementationV8Internal::p artialVoidMethodLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts, 2529 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, partialVoidMethodLongArgMe thodConfiguration);
2548 };
2549 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodLongArgMethodConfiguration);
2550 } 2530 }
2551 #endif // ENABLE(PARTIAL_CONDITION) 2531 #endif // ENABLE(PARTIAL_CONDITION)
2552 #if ENABLE(PARTIAL_CONDITION) 2532 #if ENABLE(PARTIAL_CONDITION)
2553 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2533 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2554 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCo ntextRaisesExceptionVoidMethodMethodConfiguration = { 2534 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCo ntextRaisesExceptionVoidMethodMethodConfiguration = {"partialCallWithExecutionCo ntextRaisesExceptionVoidMethod", TestInterfaceImplementationV8Internal::partialC allWithExecutionContextRaisesExceptionVoidMethodMethodCallback, 0, 0, V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
2555 "partialCallWithExecutionContextRaisesExceptionVoidMethod", TestInte rfaceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2535 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, partialCallWithExecutionCo ntextRaisesExceptionVoidMethodMethodConfiguration);
2556 };
2557 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialCallWithExecutionContextRaisesExceptionVoidMethodMethod Configuration);
2558 } 2536 }
2559 #endif // ENABLE(PARTIAL_CONDITION) 2537 #endif // ENABLE(PARTIAL_CONDITION)
2560 #if ENABLE(PARTIAL_CONDITION) 2538 #if ENABLE(PARTIAL_CONDITION)
2561 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2539 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2562 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCa llbackTypeArgMethodConfiguration = { 2540 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCa llbackTypeArgMethodConfiguration = {"partialVoidMethodPartialCallbackTypeArg", T estInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:: OnPrototype};
2563 "partialVoidMethodPartialCallbackTypeArg", TestInterfaceImplementati onV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts, 2541 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, partialVoidMethodPartialCa llbackTypeArgMethodConfiguration);
2564 };
2565 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodPartialCallbackTypeArgMethodConfiguration);
2566 } 2542 }
2567 #endif // ENABLE(PARTIAL_CONDITION) 2543 #endif // ENABLE(PARTIAL_CONDITION)
2568 #if ENABLE(PARTIAL_CONDITION) 2544 #if ENABLE(PARTIAL_CONDITION)
2569 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2545 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2570 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = { 2546 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = {"shortMethodWithShortArgument ImplementedInPrivateScript", TestInterfaceImplementationV8Internal::shortMethodW ithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
2571 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 2547 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTe mplate, functionTemplate, defaultSignature, v8::None, shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration);
2572 };
2573 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodCo nfiguration);
2574 } 2548 }
2575 #endif // ENABLE(PARTIAL_CONDITION) 2549 #endif // ENABLE(PARTIAL_CONDITION)
2576 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOverloa dMethodConfiguration = { 2550 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOverloa dMethodConfiguration = {"staticVoidMethodPartialOverload", TestInterfaceImplemen tationV8Internal::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
2577 "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts, 2551 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, staticVoidMethodPartialOverloa dMethodConfiguration);
2578 }; 2552 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartialOver loadMethodConfiguration = {"staticPromiseMethodPartialOverload", TestInterfaceIm plementationV8Internal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
2579 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodPartialOverloadMethodConfiguration); 2553 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, staticPromiseMethodPartialOver loadMethodConfiguration);
2580 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartialOver loadMethodConfiguration = { 2554 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMethod Configuration = {"partial2StaticVoidMethod", TestInterfaceImplementationV8Intern al::partial2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInterface};
2581 "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Inter nal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts, 2555 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, v8::None, partial2StaticVoidMethodMethod Configuration);
2582 }; 2556 const V8DOMConfiguration::MethodConfiguration toJSONMethodConfiguration = {" toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0, 0, V8DO MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
2583 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration); 2557 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D ontDelete | v8::DontEnum), toJSONMethodConfiguration);
2584 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMethod Configuration = { 2558 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = {"toString", TestInterfaceImplementationV8Internal::toStringMethodCallback, 0, 0 , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
2585 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts , 2559 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D ontDelete | v8::DontEnum), toStringMethodConfiguration);
2586 };
2587 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, partial2StaticVoidMethodMethodConfiguration);
2588 const V8DOMConfiguration::MethodConfiguration toJSONMethodConfiguration = {
2589 "toJSON", TestInterfaceImplementationV8Internal::toJSONMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts,
2590 };
2591 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toJSONMet hodConfiguration);
2592 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = {
2593 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2594 };
2595 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM ethodConfiguration);
2596 2560
2597 // Custom toString template 2561 // Custom toString template
2598 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 2562 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
2599 } 2563 }
2600 2564
2601 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e) 2565 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e)
2602 { 2566 {
2603 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte rface::installV8TestInterfaceTemplate); 2567 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte rface::installV8TestInterfaceTemplate);
2604 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction ); 2568 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction );
2605 } 2569 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2759 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2796 { 2760 {
2797 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2761 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2798 } 2762 }
2799 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2763 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2800 { 2764 {
2801 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2765 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2802 } 2766 }
2803 } // namespace blink 2767 } // namespace blink
2804 #endif // ENABLE(CONDITION) 2768 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestException.cpp ('k') | Source/bindings/tests/results/core/V8TestInterface2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698