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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for yuki's comments Created 3 years, 6 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 // 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo); 422 TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(i nfo);
423 } 423 }
424 424
425 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 425 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
426 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V 8DOMConfiguration::kAllWorlds}, 426 {"partialVoidTestEnumModulesArgMethod", V8TestInterfacePartial::partialVoidT estEnumModulesArgMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnProto type, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V 8DOMConfiguration::kAllWorlds},
427 {"partial2VoidTestEnumModulesRecordMethod", V8TestInterfacePartial::partial2 VoidTestEnumModulesRecordMethodMethodCallback, 1, v8::None, V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckA ccess, V8DOMConfiguration::kAllWorlds}, 427 {"partial2VoidTestEnumModulesRecordMethod", V8TestInterfacePartial::partial2 VoidTestEnumModulesRecordMethodMethodCallback, 1, v8::None, V8DOMConfiguration:: kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckA ccess, V8DOMConfiguration::kAllWorlds},
428 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} , 428 {"unscopableVoidMethod", V8TestInterfacePartial::unscopableVoidMethodMethodC allback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kChe ckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWorlds} ,
429 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration:: kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor lds}, 429 {"unionWithTypedefMethod", V8TestInterfacePartial::unionWithTypedefMethodMet hodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration:: kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAllWor lds},
430 }; 430 };
431 431
432 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate , const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat e) { 432 void V8TestInterfacePartial::installV8TestInterfaceTemplate(
433 v8::Isolate* isolate,
434 const DOMWrapperWorld& world,
435 v8::Local<v8::FunctionTemplate> interfaceTemplate) {
433 // Initialize the interface object's template. 436 // Initialize the interface object's template.
434 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate); 437 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl ate);
435 438
436 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 439 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
437 ALLOW_UNUSED_LOCAL(signature); 440 ALLOW_UNUSED_LOCAL(signature);
438 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 441 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
439 ALLOW_UNUSED_LOCAL(instanceTemplate); 442 ALLOW_UNUSED_LOCAL(instanceTemplate);
440 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 443 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
441 ALLOW_UNUSED_LOCAL(prototypeTemplate); 444 ALLOW_UNUSED_LOCAL(prototypeTemplate);
442 445
443 // Register DOM constants, attributes and operations. 446 // Register IDL constants, attributes and operations.
444 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = { 447 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = {
445 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::kConstantTypeUnsigne dShort}, 448 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::kConstantTypeUnsigne dShort},
446 }; 449 };
447 V8DOMConfiguration::InstallConstants(isolate, interfaceTemplate, prototypeTemp late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); 450 V8DOMConfiguration::InstallConstants(isolate, interfaceTemplate, prototypeTemp late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants));
448 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods)); 451 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods));
449 } 452 }
450 453
451 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) { 454 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) {
452 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world); 455 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy peInfo.domTemplate(isolate, world);
453 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 456 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 unscopables = v8::Object::New(isolate); 504 unscopables = v8::Object::New(isolate);
502 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust(); 505 unscopables->CreateDataProperty(context, V8AtomicString(isolate, "unscopableVo idMethod"), v8::True(isolate)).FromJust();
503 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust(); 506 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F romJust();
504 } 507 }
505 508
506 void V8TestInterfacePartial::initialize() { 509 void V8TestInterfacePartial::initialize() {
507 // Should be invoked from ModulesInitializer. 510 // Should be invoked from ModulesInitializer.
508 V8TestInterface::updateWrapperTypeInfo( 511 V8TestInterface::updateWrapperTypeInfo(
509 &V8TestInterfacePartial::installV8TestInterfaceTemplate, 512 &V8TestInterfacePartial::installV8TestInterfaceTemplate,
510 nullptr, 513 nullptr,
514 nullptr,
511 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 515 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
512 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 516 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
513 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 517 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
514 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 518 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
515 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 519 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
516 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 520 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
517 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 521 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
518 } 522 }
519 523
520 } // namespace blink 524 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698