| 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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 // Register DOM constants, attributes and operations. | 841 // Register DOM constants, attributes and operations. |
| 842 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 842 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 843 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constant
s[] = { | 843 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constant
s[] = { |
| 844 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong
}, | 844 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong
}, |
| 845 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 845 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
| 846 }; | 846 }; |
| 847 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constant
s)); | 847 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototy
peTemplate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constant
s)); |
| 848 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate,
prototypeTemplate, V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5
Attributes)); | 848 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate,
prototypeTemplate, V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5
Attributes)); |
| 849 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, p
rototypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_A
RRAY_LENGTH(V8TestInterface5Accessors)); | 849 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, p
rototypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_A
RRAY_LENGTH(V8TestInterface5Accessors)); |
| 850 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY
_LENGTH(V8TestInterface5Methods)); | 850 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, pro
totypeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY
_LENGTH(V8TestInterface5Methods)); |
| 851 } // if (RuntimeEnabledFeatures::featureNameEnabled()) | 851 } |
| 852 | 852 |
| 853 // Indexed properties | 853 // Indexed properties |
| 854 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInt
erface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Im
plementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implemen
tationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<Test
Interface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNo
ne); | 854 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInt
erface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Im
plementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implemen
tationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<Test
Interface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNo
ne); |
| 855 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); | 855 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); |
| 856 // Named properties | 856 // Named properties |
| 857 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))); | 857 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))); |
| 858 instanceTemplate->SetHandler(namedPropertyHandlerConfig); | 858 instanceTemplate->SetHandler(namedPropertyHandlerConfig); |
| 859 | 859 |
| 860 // Iterator (@@iterator) | 860 // Iterator (@@iterator) |
| 861 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; | 861 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); | 921 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); |
| 922 } | 922 } |
| 923 } | 923 } |
| 924 | 924 |
| 925 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) | 925 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) |
| 926 { | 926 { |
| 927 return toImpl(wrapper); | 927 return toImpl(wrapper); |
| 928 } | 928 } |
| 929 | 929 |
| 930 } // namespace blink | 930 } // namespace blink |
| OLD | NEW |