| 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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "V8TestInterface5.h" | 7 #include "V8TestInterface5.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 {"keys", TestInterface5ImplementationV8Internal::keysMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, | 818 {"keys", TestInterface5ImplementationV8Internal::keysMethodCallback, 0, 0, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, |
| 819 {"values", TestInterface5ImplementationV8Internal::valuesMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt
otype}, | 819 {"values", TestInterface5ImplementationV8Internal::valuesMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt
otype}, |
| 820 {"entries", TestInterface5ImplementationV8Internal::entriesMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 820 {"entries", TestInterface5ImplementationV8Internal::entriesMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
| 821 {"forEach", TestInterface5ImplementationV8Internal::forEachMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 821 {"forEach", TestInterface5ImplementationV8Internal::forEachMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
| 822 {"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, | 822 {"toString", TestInterface5ImplementationV8Internal::toStringMethodCallback,
0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, |
| 823 }; | 823 }; |
| 824 | 824 |
| 825 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> inte
rfaceTemplate, v8::Isolate* isolate) | 825 static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> inte
rfaceTemplate, v8::Isolate* isolate) |
| 826 { | 826 { |
| 827 // Initialize the interface object's template. | 827 // Initialize the interface object's template. |
| 828 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTem
plate(isolate), V8TestInterface5::internalFieldCount); | |
| 829 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 828 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 830 ALLOW_UNUSED_LOCAL(signature); | |
| 831 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); | 829 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); |
| 832 ALLOW_UNUSED_LOCAL(instanceTemplate); | |
| 833 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); | 830 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 834 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 831 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, V8TestInterface5::wrapperTypeInfo.interfaceName, V8TestInterfaceEmpty::domTem
plate(isolate), instanceTemplate, prototypeTemplate, V8TestInterface5::internalF
ieldCount); |
| 835 // Register DOM constants, attributes and operations. | |
| 836 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 832 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 837 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constant
s[] = { | 833 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constant
s[] = { |
| 838 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong
}, | 834 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
| 839 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 835 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
| 840 }; | 836 }; |
| 841 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constant
s)); | 837 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTe
mplate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); |
| 842 V8DOMConfiguration::installAttributes(isolate, instanceTemplate, prototy
peTemplate, V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attribu
tes)); | 838 V8DOMConfiguration::installProperties(isolate, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterface5Attributes, WTF_ARRAY_
LENGTH(V8TestInterface5Attributes), V8TestInterface5Accessors, WTF_ARRAY_LENGTH(
V8TestInterface5Accessors), V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInte
rface5Methods)); |
| 843 V8DOMConfiguration::installAccessors(isolate, instanceTemplate, prototyp
eTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_ARRAY_LE
NGTH(V8TestInterface5Accessors)); | 839 } |
| 844 V8DOMConfiguration::installMethods(isolate, instanceTemplate, prototypeT
emplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY_LENGTH
(V8TestInterface5Methods)); | |
| 845 } // if (RuntimeEnabledFeatures::featureNameEnabled()) | |
| 846 | 840 |
| 847 // Indexed properties | 841 // Indexed properties |
| 848 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInt
erface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Im
plementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implemen
tationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<Test
Interface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNo
ne); | 842 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInt
erface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Im
plementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implemen
tationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<Test
Interface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNo
ne); |
| 849 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); | 843 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); |
| 850 // Named properties | 844 // Named properties |
| 851 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterfa
ce5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implemen
tationV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Int
ernal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::named
PropertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEn
umeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(
int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFl
ags::kNonMasking))); | 845 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterfa
ce5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implemen
tationV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Int
ernal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::named
PropertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEn
umeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(
int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFl
ags::kNonMasking))); |
| 852 instanceTemplate->SetHandler(namedPropertyHandlerConfig); | 846 instanceTemplate->SetHandler(namedPropertyHandlerConfig); |
| 853 | 847 |
| 854 // Iterator (@@iterator) | 848 // Iterator (@@iterator) |
| 855 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; | 849 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 { | 919 { |
| 926 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 920 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 927 } | 921 } |
| 928 | 922 |
| 929 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 923 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 930 { | 924 { |
| 931 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 925 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 932 } | 926 } |
| 933 | 927 |
| 934 } // namespace blink | 928 } // namespace blink |
| OLD | NEW |