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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { |
585 {"legacyCaller", V8TestInterface2::legacyCallerMethodCallback, nullptr, 1, v
8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOM
Configuration::DoNotCheckAccess}, | 585 {"legacyCaller", V8TestInterface2::legacyCallerMethodCallback, 1, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
586 {"item", V8TestInterface2::itemMethodCallback, nullptr, 1, v8::None, V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::D
oNotCheckAccess}, | 586 {"item", V8TestInterface2::itemMethodCallback, 1, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, |
587 {"setItem", V8TestInterface2::setItemMethodCallback, nullptr, 2, v8::None, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::DoNotCheckAccess}, | 587 {"setItem", V8TestInterface2::setItemMethodCallback, 2, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, |
588 {"deleteItem", V8TestInterface2::deleteItemMethodCallback, nullptr, 1, v8::N
one, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConf
iguration::DoNotCheckAccess}, | 588 {"deleteItem", V8TestInterface2::deleteItemMethodCallback, 1, v8::None, V8DO
MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration
::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
589 {"namedItem", V8TestInterface2::namedItemMethodCallback, nullptr, 1, v8::Non
e, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfig
uration::DoNotCheckAccess}, | 589 {"namedItem", V8TestInterface2::namedItemMethodCallback, 1, v8::None, V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::
DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
590 {"setNamedItem", V8TestInterface2::setNamedItemMethodCallback, nullptr, 2, v
8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOM
Configuration::DoNotCheckAccess}, | 590 {"setNamedItem", V8TestInterface2::setNamedItemMethodCallback, 2, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
591 {"deleteNamedItem", V8TestInterface2::deleteNamedItemMethodCallback, nullptr
, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::DoNotCheckAccess}, | 591 {"deleteNamedItem", V8TestInterface2::deleteNamedItemMethodCallback, 1, v8::
None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
592 {"stringifierMethod", V8TestInterface2::stringifierMethodMethodCallback, nul
lptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der, V8DOMConfiguration::DoNotCheckAccess}, | 592 {"stringifierMethod", V8TestInterface2::stringifierMethodMethodCallback, 0,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
593 {"keys", V8TestInterface2::keysMethodCallback, nullptr, 0, v8::None, V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::D
oNotCheckAccess}, | 593 {"keys", V8TestInterface2::keysMethodCallback, 0, v8::None, V8DOMConfigurati
on::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheck
Access, V8DOMConfiguration::AllWorlds}, |
594 {"values", V8TestInterface2::valuesMethodCallback, nullptr, 0, v8::None, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio
n::DoNotCheckAccess}, | 594 {"values", V8TestInterface2::valuesMethodCallback, 0, v8::None, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotC
heckAccess, V8DOMConfiguration::AllWorlds}, |
595 {"entries", V8TestInterface2::entriesMethodCallback, nullptr, 0, v8::None, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::DoNotCheckAccess}, | 595 {"entries", V8TestInterface2::entriesMethodCallback, 0, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, |
596 {"forEach", V8TestInterface2::forEachMethodCallback, nullptr, 1, v8::None, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::DoNotCheckAccess}, | 596 {"forEach", V8TestInterface2::forEachMethodCallback, 1, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, |
597 {"has", V8TestInterface2::hasMethodCallback, nullptr, 1, v8::None, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoN
otCheckAccess}, | 597 {"has", V8TestInterface2::hasMethodCallback, 1, v8::None, V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAc
cess, V8DOMConfiguration::AllWorlds}, |
598 {"toString", V8TestInterface2::toStringMethodCallback, nullptr, 0, v8::None,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigur
ation::DoNotCheckAccess}, | 598 {"toString", V8TestInterface2::toStringMethodCallback, 0, v8::None, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::Do
NotCheckAccess, V8DOMConfiguration::AllWorlds}, |
599 }; | 599 }; |
600 | 600 |
601 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) { | 601 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) { |
602 if (!info.IsConstructCall()) { | 602 if (!info.IsConstructCall()) { |
603 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterface2")); | 603 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterface2")); |
604 return; | 604 return; |
605 } | 605 } |
606 | 606 |
607 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 607 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
608 v8SetReturnValue(info, info.Holder()); | 608 v8SetReturnValue(info, info.Holder()); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |