| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); | 385 V8TestInterface::installV8TestInterfaceTemplate(isolate, world, interfaceTempl
ate); |
| 386 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 386 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 387 ALLOW_UNUSED_LOCAL(signature); | 387 ALLOW_UNUSED_LOCAL(signature); |
| 388 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 388 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 389 ALLOW_UNUSED_LOCAL(instanceTemplate); | 389 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 390 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 390 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
| 391 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 391 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 392 | 392 |
| 393 // Register DOM constants, attributes and operations. | 393 // Register DOM constants, attributes and operations. |
| 394 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 394 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 395 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[]
= { | 395 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ |
| 396 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsi
gnedShort}, | 396 {"PARTIAL3_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
| 397 }; | 397 }; |
| 398 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype
Template, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 398 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 399 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto
typeTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LE
NGTH(V8TestInterfaceMethods)); | 399 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENG
TH(V8TestInterfaceMethods)); |
| 400 } | 400 } |
| 401 } | 401 } |
| 402 | 402 |
| 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) { | 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) { |
| 404 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); | 404 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestInterface::wrapperTy
peInfo.domTemplate(isolate, world); |
| 405 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 405 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 406 ALLOW_UNUSED_LOCAL(signature); | 406 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}; | 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}; |
| 408 V8DOMConfiguration::installAccessor(isolate, world, instance, prototype, inter
face, signature, accessorpartial4LongAttributeConfiguration); | 408 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}; | 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}; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 449 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 450 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 450 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 451 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 451 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 452 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 452 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 453 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 453 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 454 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 454 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 455 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 455 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 456 } | 456 } |
| 457 | 457 |
| 458 } // namespace blink | 458 } // namespace blink |
| OLD | NEW |