OLD | NEW |
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 } // namespace TestInterfaceImplementationPartialV8Internal | 376 } // namespace TestInterfaceImplementationPartialV8Internal |
377 | 377 |
378 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 378 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
379 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 379 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
380 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco
pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 380 {"unscopableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsco
pableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, |
381 }; | 381 }; |
382 | 382 |
383 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) { | 383 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Isolate* isolate
, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplat
e) { |
384 // Initialize the interface object's template. | 384 // Initialize the interface object's template. |
385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); | 385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); |
| 386 |
| 387 if (!RuntimeEnabledFeatures::featureNameEnabled()) { |
| 388 return; |
| 389 } |
| 390 |
386 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 391 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
387 ALLOW_UNUSED_LOCAL(signature); | 392 ALLOW_UNUSED_LOCAL(signature); |
388 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 393 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
389 ALLOW_UNUSED_LOCAL(instanceTemplate); | 394 ALLOW_UNUSED_LOCAL(instanceTemplate); |
390 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 395 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
391 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 396 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
392 | 397 |
393 // Register DOM constants, attributes and operations. | 398 // Register DOM constants, attributes and operations. |
394 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 399 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] = { |
395 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ | 400 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
396 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 401 }; |
397 }; | 402 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
398 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 403 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH
(V8TestInterfaceMethods)); |
399 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENG
TH(V8TestInterfaceMethods)); | |
400 } | |
401 } | 404 } |
402 | 405 |
403 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) { | 406 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) { |
404 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); | 407 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); |
405 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 408 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
406 ALLOW_UNUSED_LOCAL(signature); | 409 ALLOW_UNUSED_LOCAL(signature); |
407 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC
onfiguration = {"partial4LongAttribute", TestInterfaceImplementationPartialV8Int
ernal::partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementation
PartialV8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, nullptr,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}; | 410 const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAttributeC
onfiguration = {"partial4LongAttribute", TestInterfaceImplementationPartialV8Int
ernal::partial4LongAttributeAttributeGetterCallback, TestInterfaceImplementation
PartialV8Internal::partial4LongAttributeAttributeSetterCallback, 0, 0, nullptr,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}; |
408 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4LongAttributeConfiguration); | 411 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4LongAttributeConfiguration); |
409 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr
ibuteConfiguration = {"partial4StaticLongAttribute", TestInterfaceImplementation
PartialV8Internal::partial4StaticLongAttributeAttributeGetterCallback, TestInter
faceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetterC
allback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; | 412 const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticLongAttr
ibuteConfiguration = {"partial4StaticLongAttribute", TestInterfaceImplementation
PartialV8Internal::partial4StaticLongAttributeAttributeGetterCallback, TestInter
faceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetterC
allback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; |
410 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4StaticLongAttributeConfiguration); | 413 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4StaticLongAttributeConfiguration); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 451 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
449 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 452 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
450 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 453 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
451 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 454 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
452 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 455 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
453 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 456 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
454 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 457 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
455 } | 458 } |
456 | 459 |
457 } // namespace blink | 460 } // namespace blink |
OLD | NEW |