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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2717183002: Slim V8DOMConfiguration::MethodConfiguration by refactoring per-world bindings. (Closed)
Patch Set: haraken Created 3 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.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 // 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
10 10
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) { 384 void V8TestInterfacePartial::partial4VoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) {
385 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info); 385 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
386 } 386 }
387 387
388 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) { 388 void V8TestInterfacePartial::partial4StaticVoidMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
389 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 389 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
390 } 390 }
391 391
392 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 392 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
393 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcc ess}, 393 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DO MConfiguration::AllWorlds},
394 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, 394 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check Holder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
395 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, 395 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} ,
396 }; 396 };
397 397
398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 398 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) {
399 // Initialize the interface object's template. 399 // Initialize the interface object's template.
400 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 400 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
401 401
402 if (!RuntimeEnabledFeatures::featureNameEnabled()) { 402 if (!RuntimeEnabledFeatures::featureNameEnabled()) {
403 return; 403 return;
404 } 404 }
405 405
(...skipping 15 matching lines...) Expand all
421 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) { 421 void V8TestInterfacePartial::installOriginTrialPartialFeature(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local<v8:: Object> prototype, v8::Local<v8::Function> interface) {
422 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world); 422 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world);
423 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 423 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
424 ALLOW_UNUSED_LOCAL(signature); 424 ALLOW_UNUSED_LOCAL(signature);
425 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 425 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC onfiguration = {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAtt ributeAttributeGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder};
426 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration); 426 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4LongAttributeConfiguration);
427 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial 4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 427 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr ibuteConfiguration = {"partial4StaticLongAttribute", V8TestInterfacePartial::par tial4StaticLongAttributeAttributeGetterCallback, V8TestInterfacePartial::partial 4StaticLongAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder};
428 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration); 428 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter face, signature, accessorpartial4StaticLongAttributeConfiguration);
429 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort}; 429 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort};
430 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration); 430 V8DOMConfiguration::installConstant(isolate, interface, prototype, constantPar tial4UnsignedShortConfiguration);
431 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration = {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4Stati cVoidMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface , V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 431 const V8DOMConfiguration::MethodConfiguration methodPartial4StaticvoidmethodCo nfiguration[] = {
432 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4StaticvoidmethodConfiguration); 432 {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4StaticVoidMetho dMethodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguratio n::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWor lds}
433 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation = {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodC allback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}; 433 };
434 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, interfa ce, signature, methodPartial4VoidmethodConfiguration); 434 for (const auto& methodConfig : methodPartial4StaticvoidmethodConfiguration)
435 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter face, signature, methodConfig);
436 const V8DOMConfiguration::MethodConfiguration methodPartial4VoidmethodConfigur ation[] = {
437 {"partial4VoidMethod", V8TestInterfacePartial::partial4VoidMethodMethodCallb ack, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
438 };
439 for (const auto& methodConfig : methodPartial4VoidmethodConfiguration)
440 V8DOMConfiguration::installMethod(isolate, world, instance, prototype, inter face, signature, methodConfig);
435 } 441 }
436 442
437 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) { 443 void V8TestInterfacePartial::installOriginTrialPartialFeature(ScriptState* scrip tState, v8::Local<v8::Object> instance) {
438 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ()); 444 V8PerContextData* perContextData = V8PerContextData::from(scriptState->context ());
439 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo); 445 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestInte rface::wrapperTypeInfo);
440 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo); 446 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Test Interface::wrapperTypeInfo);
441 ALLOW_UNUSED_LOCAL(interface); 447 ALLOW_UNUSED_LOCAL(interface);
442 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface); 448 installOriginTrialPartialFeature(scriptState->isolate(), scriptState->world(), instance, prototype, interface);
443 } 449 }
444 450
(...skipping 24 matching lines...) Expand all
469 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 475 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
470 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 476 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
471 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 477 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
472 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 478 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
473 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 479 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
474 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 480 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
475 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 481 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
476 } 482 }
477 483
478 } // namespace blink 484 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698