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 "config.h" | 7 #include "config.h" |
8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const
ants[] = { | 772 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const
ants[] = { |
773 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, | 773 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, |
774 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 774 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, |
775 }; | 775 }; |
776 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); | 776 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); |
777 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impleme
ntationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementatio
nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter
face5Implementation>); | 777 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impleme
ntationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementatio
nV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInter
face5Implementation>); |
778 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface5
ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implementat
ionV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Intern
al::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPro
pertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnume
ratorCallback); | 778 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface5
ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implementat
ionV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Intern
al::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPro
pertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnume
ratorCallback); |
779 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 779 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
780 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 780 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
781 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); | 781 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); |
782 static const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMeth
odMethodConfiguration = { | 782 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
783 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, | 783 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, |
784 }; | 784 }; |
785 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); | 785 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); |
786 static const V8DOMConfiguration::MethodConfiguration toStringMethodConfigura
tion = { | 786 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ |
787 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 787 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
788 }; | 788 }; |
789 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); | 789 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); |
790 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri
buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut
eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert
yAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Acce
ssControl>(v8::DEFAULT)); | 790 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri
buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut
eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert
yAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Acce
ssControl>(v8::DEFAULT)); |
791 | 791 |
792 // Custom toString template | 792 // Custom toString template |
793 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 793 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
794 } | 794 } |
795 | 795 |
796 v8::Handle<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isol
ate) | 796 v8::Handle<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isol
ate) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 } | 869 } |
870 | 870 |
871 template<> | 871 template<> |
872 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) | 872 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) |
873 { | 873 { |
874 return toV8(impl, creationContext, isolate); | 874 return toV8(impl, creationContext, isolate); |
875 } | 875 } |
876 | 876 |
877 } // namespace blink | 877 } // namespace blink |
878 #endif // ENABLE(CONDITION) | 878 #endif // ENABLE(CONDITION) |
OLD | NEW |