| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 }; | 445 }; |
| 446 V8DOMConfiguration::InstallConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 446 V8DOMConfiguration::InstallConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 447 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH
(V8TestInterfaceMethods)); | 447 V8DOMConfiguration::InstallMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH
(V8TestInterfaceMethods)); |
| 448 } | 448 } |
| 449 | 449 |
| 450 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) { | 450 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) { |
| 451 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); | 451 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); |
| 452 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 452 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 453 ALLOW_UNUSED_LOCAL(signature); | 453 ALLOW_UNUSED_LOCAL(signature); |
| 454 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAtt
ributeConfiguration[] = { | 454 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4LongAtt
ributeConfiguration[] = { |
| 455 {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAttributeAttri
buteGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttributeSetter
Callback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC
onfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration
::kAllWorlds} | 455 {"partial4LongAttribute", V8TestInterfacePartial::partial4LongAttributeAttri
buteGetterCallback, V8TestInterfacePartial::partial4LongAttributeAttributeSetter
Callback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None
), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConf
iguration::kAllWorlds} |
| 456 }; | 456 }; |
| 457 for (const auto& accessorConfig : accessorpartial4LongAttributeConfiguration) | 457 for (const auto& accessorConfig : accessorpartial4LongAttributeConfiguration) |
| 458 V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); | 458 V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); |
| 459 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticL
ongAttributeConfiguration[] = { | 459 static const V8DOMConfiguration::AccessorConfiguration accessorpartial4StaticL
ongAttributeConfiguration[] = { |
| 460 {"partial4StaticLongAttribute", V8TestInterfacePartial::partial4StaticLongAt
tributeAttributeGetterCallback, V8TestInterfacePartial::partial4StaticLongAttrib
uteAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder,
V8DOMConfiguration::kAllWorlds} | 460 {"partial4StaticLongAttribute", V8TestInterfacePartial::partial4StaticLongAt
tributeAttributeGetterCallback, V8TestInterfacePartial::partial4StaticLongAttrib
uteAttributeSetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kChec
kHolder, V8DOMConfiguration::kAllWorlds} |
| 461 }; | 461 }; |
| 462 for (const auto& accessorConfig : accessorpartial4StaticLongAttributeConfigura
tion) | 462 for (const auto& accessorConfig : accessorpartial4StaticLongAttributeConfigura
tion) |
| 463 V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); | 463 V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, int
erface, signature, accessorConfig); |
| 464 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC
onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::kConstantTy
peUnsignedShort}; | 464 const V8DOMConfiguration::ConstantConfiguration constantPartial4UnsignedShortC
onfiguration = {"PARTIAL4_UNSIGNED_SHORT", 4, 0, V8DOMConfiguration::kConstantTy
peUnsignedShort}; |
| 465 V8DOMConfiguration::InstallConstant(isolate, interface, prototype, constantPar
tial4UnsignedShortConfiguration); | 465 V8DOMConfiguration::InstallConstant(isolate, interface, prototype, constantPar
tial4UnsignedShortConfiguration); |
| 466 static const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidm
ethodConfiguration[] = { | 466 static const V8DOMConfiguration::MethodConfiguration methodPartial4Staticvoidm
ethodConfiguration[] = { |
| 467 {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4StaticVoidMetho
dMethodCallback, 0, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfigurati
on::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAl
lWorlds} | 467 {"partial4StaticVoidMethod", V8TestInterfacePartial::partial4StaticVoidMetho
dMethodCallback, 0, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfigurati
on::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kAl
lWorlds} |
| 468 }; | 468 }; |
| 469 for (const auto& methodConfig : methodPartial4StaticvoidmethodConfiguration) | 469 for (const auto& methodConfig : methodPartial4StaticvoidmethodConfiguration) |
| 470 V8DOMConfiguration::InstallMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); | 470 V8DOMConfiguration::InstallMethod(isolate, world, instance, prototype, inter
face, signature, methodConfig); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 510 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 511 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 511 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 512 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 512 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 513 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 513 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 514 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 514 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 515 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 515 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 516 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 516 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace blink | 519 } // namespace blink |
| OLD | NEW |