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/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 } | 574 } |
575 | 575 |
576 void V8TestInterface2::indexedPropertySetterCallback(uint32_t index, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { | 576 void V8TestInterface2::indexedPropertySetterCallback(uint32_t index, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { |
577 TestInterface2V8Internal::indexedPropertySetter(index, v8Value, info); | 577 TestInterface2V8Internal::indexedPropertySetter(index, v8Value, info); |
578 } | 578 } |
579 | 579 |
580 void V8TestInterface2::indexedPropertyDeleterCallback(uint32_t index, const v8::
PropertyCallbackInfo<v8::Boolean>& info) { | 580 void V8TestInterface2::indexedPropertyDeleterCallback(uint32_t index, const v8::
PropertyCallbackInfo<v8::Boolean>& info) { |
581 TestInterface2V8Internal::indexedPropertyDeleter(index, info); | 581 TestInterface2V8Internal::indexedPropertyDeleter(index, info); |
582 } | 582 } |
583 | 583 |
584 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { | 584 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ |
585 {"legacyCaller", V8TestInterface2::legacyCallerMethodCallback, 1, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 585 {"legacyCaller", V8TestInterface2::legacyCallerMethodCallback, 1, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
586 {"item", V8TestInterface2::itemMethodCallback, 1, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, | 586 {"item", V8TestInterface2::itemMethodCallback, 1, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, |
587 {"setItem", V8TestInterface2::setItemMethodCallback, 2, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, | 587 {"setItem", V8TestInterface2::setItemMethodCallback, 2, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, |
588 {"deleteItem", V8TestInterface2::deleteItemMethodCallback, 1, v8::None, V8DO
MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration
::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 588 {"deleteItem", V8TestInterface2::deleteItemMethodCallback, 1, v8::None, V8DO
MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration
::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
589 {"namedItem", V8TestInterface2::namedItemMethodCallback, 1, v8::None, V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::
DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 589 {"namedItem", V8TestInterface2::namedItemMethodCallback, 1, v8::None, V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::
DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
590 {"setNamedItem", V8TestInterface2::setNamedItemMethodCallback, 2, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 590 {"setNamedItem", V8TestInterface2::setNamedItemMethodCallback, 2, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
591 {"deleteNamedItem", V8TestInterface2::deleteNamedItemMethodCallback, 1, v8::
None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 591 {"deleteNamedItem", V8TestInterface2::deleteNamedItemMethodCallback, 1, v8::
None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
592 {"stringifierMethod", V8TestInterface2::stringifierMethodMethodCallback, 0,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 592 {"stringifierMethod", V8TestInterface2::stringifierMethodMethodCallback, 0,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
593 {"keys", V8TestInterface2::keysMethodCallback, 0, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, | 593 {"keys", V8TestInterface2::keysMethodCallback, 0, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, |
594 {"values", V8TestInterface2::valuesMethodCallback, 0, v8::None, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotC
heckAccess, V8DOMConfiguration::AllWorlds}, | 594 {"values", V8TestInterface2::valuesMethodCallback, 0, v8::None, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotC
heckAccess, V8DOMConfiguration::AllWorlds}, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); | 634 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT
H(V8TestInterface2Methods)); |
635 | 635 |
636 // Indexed properties | 636 // Indexed properties |
637 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(V8TestInt
erface2::indexedPropertyGetterCallback, V8TestInterface2::indexedPropertySetterC
allback, nullptr, V8TestInterface2::indexedPropertyDeleterCallback, indexedPrope
rtyEnumerator<TestInterface2>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags:
:kNone); | 637 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(V8TestInt
erface2::indexedPropertyGetterCallback, V8TestInterface2::indexedPropertySetterC
allback, nullptr, V8TestInterface2::indexedPropertyDeleterCallback, indexedPrope
rtyEnumerator<TestInterface2>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags:
:kNone); |
638 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); | 638 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); |
639 // Named properties | 639 // Named properties |
640 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestInterfa
ce2::namedPropertyGetterCallback, V8TestInterface2::namedPropertySetterCallback,
V8TestInterface2::namedPropertyQueryCallback, V8TestInterface2::namedPropertyDe
leterCallback, V8TestInterface2::namedPropertyEnumeratorCallback, v8::Local<v8::
Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kO
nlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); | 640 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestInterfa
ce2::namedPropertyGetterCallback, V8TestInterface2::namedPropertySetterCallback,
V8TestInterface2::namedPropertyQueryCallback, V8TestInterface2::namedPropertyDe
leterCallback, V8TestInterface2::namedPropertyEnumeratorCallback, v8::Local<v8::
Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kO
nlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); |
641 instanceTemplate->SetHandler(namedPropertyHandlerConfig); | 641 instanceTemplate->SetHandler(namedPropertyHandlerConfig); |
642 | 642 |
643 // Iterator (@@iterator) | 643 // Iterator (@@iterator) |
644 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo
nfiguration = { v8::Symbol::GetIterator, V8TestInterface2::iteratorMethodCallbac
k, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo
lder, V8DOMConfiguration::DoNotCheckAccess }; | 644 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIte
ratorConfiguration = { v8::Symbol::GetIterator, V8TestInterface2::iteratorMethod
Callback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder, V8DOMConfiguration::DoNotCheckAccess }; |
645 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature
, symbolKeyedIteratorConfiguration); | 645 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature
, symbolKeyedIteratorConfiguration); |
646 | 646 |
647 instanceTemplate->SetCallAsFunctionHandler(TestInterface2V8Internal::legacyCal
lerMethodCallback); | 647 instanceTemplate->SetCallAsFunctionHandler(TestInterface2V8Internal::legacyCal
lerMethodCallback); |
648 } | 648 } |
649 | 649 |
650 v8::Local<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isola
te, const DOMWrapperWorld& world) { | 650 v8::Local<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isola
te, const DOMWrapperWorld& world) { |
651 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), V8TestInterface2::installV8TestInterface2TemplateF
unction); | 651 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), V8TestInterface2::installV8TestInterface2TemplateF
unction); |
652 } | 652 } |
653 | 653 |
654 bool V8TestInterface2::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is
olate) { | 654 bool V8TestInterface2::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is
olate) { |
(...skipping 23 matching lines...) Expand all Loading... |
678 | 678 |
679 V8TestInterface2::installV8TestInterface2TemplateFunction = | 679 V8TestInterface2::installV8TestInterface2TemplateFunction = |
680 installTemplateFunction; | 680 installTemplateFunction; |
681 if (preparePrototypeAndInterfaceObjectFunction) { | 681 if (preparePrototypeAndInterfaceObjectFunction) { |
682 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunction
= | 682 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunction
= |
683 preparePrototypeAndInterfaceObjectFunction; | 683 preparePrototypeAndInterfaceObjectFunction; |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
687 } // namespace blink | 687 } // namespace blink |
OLD | NEW |