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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); | 785 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); |
786 functionTemplate->InstanceTemplate()->SetHandler(v8::IndexedPropertyHandlerC
onfiguration(TestInterface5ImplementationV8Internal::indexedPropertyGetterCallba
ck, TestInterface5ImplementationV8Internal::indexedPropertySetterCallback, 0, Te
stInterface5ImplementationV8Internal::indexedPropertyDeleterCallback, indexedPro
pertyEnumerator<TestInterface5Implementation>)); | 786 functionTemplate->InstanceTemplate()->SetHandler(v8::IndexedPropertyHandlerC
onfiguration(TestInterface5ImplementationV8Internal::indexedPropertyGetterCallba
ck, TestInterface5ImplementationV8Internal::indexedPropertySetterCallback, 0, Te
stInterface5ImplementationV8Internal::indexedPropertyDeleterCallback, indexedPro
pertyEnumerator<TestInterface5Implementation>)); |
787 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestInterface5ImplementationV8Internal::namedPropertyGetterCallback,
TestInterface5ImplementationV8Internal::namedPropertySetterCallback, TestInterfa
ce5ImplementationV8Internal::namedPropertyQueryCallback, TestInterface5Implement
ationV8Internal::namedPropertyDeleterCallback, TestInterface5ImplementationV8Int
ernal::namedPropertyEnumeratorCallback)); | 787 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestInterface5ImplementationV8Internal::namedPropertyGetterCallback,
TestInterface5ImplementationV8Internal::namedPropertySetterCallback, TestInterfa
ce5ImplementationV8Internal::namedPropertyQueryCallback, TestInterface5Implement
ationV8Internal::namedPropertyDeleterCallback, TestInterface5ImplementationV8Int
ernal::namedPropertyEnumeratorCallback)); |
788 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 788 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
789 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 789 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
790 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); | 790 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); |
791 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { | 791 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
792 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, | 792 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, |
793 }; | 793 }; |
794 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); | 794 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); |
795 if (context && (context->isWorkerGlobalScope())) { | |
796 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { | |
797 "workerExposedStaticMethod", TestInterface5ImplementationV8Internal:
:workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, | |
798 }; | |
799 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, workerExposedStaticMethodMethodConfiguration, isolate); | |
800 } | |
801 if (context && (context->isDocument())) { | |
802 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = { | |
803 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal:
:windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, | |
804 }; | |
805 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, windowExposedStaticMethodMethodConfiguration, isolate); | |
806 } | |
807 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ | 795 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ |
808 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 796 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
809 }; | 797 }; |
810 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); | 798 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); |
811 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)); | 799 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)); |
812 | 800 |
813 // Custom toString template | 801 // Custom toString template |
814 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 802 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
815 } | 803 } |
816 | 804 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 844 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
857 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 845 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
858 ASSERT(context); | 846 ASSERT(context); |
859 | 847 |
860 if (context && (context->isWorkerGlobalScope())) { | 848 if (context && (context->isWorkerGlobalScope())) { |
861 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 849 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
862 } | 850 } |
863 if (context && (context->isDocument())) { | 851 if (context && (context->isDocument())) { |
864 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 852 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
865 } | 853 } |
| 854 if (context && (context->isWorkerGlobalScope())) { |
| 855 prototypeObject->Set(v8AtomicString(isolate, "workerExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::wo
rkerExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetF
unction()); |
| 856 } |
| 857 if (context && (context->isDocument())) { |
| 858 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::wi
ndowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetF
unction()); |
| 859 } |
866 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { | 860 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { |
867 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8In
ternal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), defaul
tSignature, 0)->GetFunction()); | 861 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8In
ternal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), defaul
tSignature, 0)->GetFunction()); |
868 } | 862 } |
869 } | 863 } |
870 | 864 |
871 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Handle<v8::Object> wrap
per) | 865 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Handle<v8::Object> wrap
per) |
872 { | 866 { |
873 return toImpl(wrapper); | 867 return toImpl(wrapper); |
874 } | 868 } |
875 | 869 |
876 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) | 870 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) |
877 { | 871 { |
878 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 872 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
879 } | 873 } |
880 | 874 |
881 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 875 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
882 { | 876 { |
883 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 877 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
884 } | 878 } |
885 | 879 |
886 } // namespace blink | 880 } // namespace blink |
887 #endif // ENABLE(CONDITION) | 881 #endif // ENABLE(CONDITION) |
OLD | NEW |