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 "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 } | 2002 } |
2003 functionTemplate->InstanceTemplate()->SetHandler(v8::IndexedPropertyHandlerC
onfiguration(TestInterfaceImplementationV8Internal::indexedPropertyGetterCallbac
k, TestInterfaceImplementationV8Internal::indexedPropertySetterCallback, 0, Test
InterfaceImplementationV8Internal::indexedPropertyDeleterCallback, indexedProper
tyEnumerator<TestInterfaceImplementation>)); | 2003 functionTemplate->InstanceTemplate()->SetHandler(v8::IndexedPropertyHandlerC
onfiguration(TestInterfaceImplementationV8Internal::indexedPropertyGetterCallbac
k, TestInterfaceImplementationV8Internal::indexedPropertySetterCallback, 0, Test
InterfaceImplementationV8Internal::indexedPropertyDeleterCallback, indexedProper
tyEnumerator<TestInterfaceImplementation>)); |
2004 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestInterfaceImplementationV8Internal::namedPropertyGetterCallback, T
estInterfaceImplementationV8Internal::namedPropertySetterCallback, TestInterface
ImplementationV8Internal::namedPropertyQueryCallback, TestInterfaceImplementatio
nV8Internal::namedPropertyDeleterCallback, TestInterfaceImplementationV8Internal
::namedPropertyEnumeratorCallback)); | 2004 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestInterfaceImplementationV8Internal::namedPropertyGetterCallback, T
estInterfaceImplementationV8Internal::namedPropertySetterCallback, TestInterface
ImplementationV8Internal::namedPropertyQueryCallback, TestInterfaceImplementatio
nV8Internal::namedPropertyDeleterCallback, TestInterfaceImplementationV8Internal
::namedPropertyEnumeratorCallback)); |
2005 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 2005 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
2006 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 2006 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
2007 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 2007 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
2008 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { | 2008 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
2009 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, | 2009 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, |
2010 }; | 2010 }; |
2011 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); | 2011 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); |
2012 if (context && (context->isWorkerGlobalScope())) { | |
2013 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { | |
2014 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal::
workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, | |
2015 }; | |
2016 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, workerExposedStaticMethodMethodConfiguration, isolate); | |
2017 } | |
2018 if (context && (context->isDocument())) { | |
2019 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = { | |
2020 "windowExposedStaticMethod", TestInterfaceImplementationV8Internal::
windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, | |
2021 }; | |
2022 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, windowExposedStaticMethodMethodConfiguration, isolate); | |
2023 } | |
2024 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth
odConfiguration = { | 2012 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth
odConfiguration = { |
2025 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp
lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts, | 2013 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp
lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr
ipts, |
2026 }; | 2014 }; |
2027 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); | 2015 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); |
2028 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 2016 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
2029 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho
dConfiguration = { | 2017 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho
dConfiguration = { |
2030 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl
ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 2018 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl
ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
2031 }; | 2019 }; |
2032 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, implements2VoidMethodMethodConfiguration, isolate); | 2020 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
8::None, implements2VoidMethodMethodConfiguration, isolate); |
2033 } | 2021 } |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2159 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
2172 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2160 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
2173 ASSERT(context); | 2161 ASSERT(context); |
2174 | 2162 |
2175 if (context && (context->isWorkerGlobalScope())) { | 2163 if (context && (context->isWorkerGlobalScope())) { |
2176 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2164 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
2177 } | 2165 } |
2178 if (context && (context->isDocument())) { | 2166 if (context && (context->isDocument())) { |
2179 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2167 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
2180 } | 2168 } |
| 2169 if (context && (context->isWorkerGlobalScope())) { |
| 2170 prototypeObject->Set(v8AtomicString(isolate, "workerExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::wor
kerExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); |
| 2171 } |
| 2172 if (context && (context->isDocument())) { |
| 2173 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod"
), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::win
dowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu
nction()); |
| 2174 } |
2181 if (context && (context->isDocument())) { | 2175 if (context && (context->isDocument())) { |
2182 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 2176 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
2183 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu
ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati
onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(
), defaultSignature, 0)->GetFunction()); | 2177 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu
ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati
onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(
), defaultSignature, 0)->GetFunction()); |
2184 } | 2178 } |
2185 } | 2179 } |
2186 if (context && (context->isDocument())) { | 2180 if (context && (context->isDocument())) { |
2187 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA
ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen
tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback,
v8Undefined(), defaultSignature, 1)->GetFunction()); | 2181 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA
ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen
tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback,
v8Undefined(), defaultSignature, 1)->GetFunction()); |
2188 } | 2182 } |
2189 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam
eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur
eName2Enabled()))) { | 2183 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam
eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur
eName2Enabled()))) { |
2190 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun
timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation
V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined(
), defaultSignature, 0)->GetFunction()); | 2184 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun
timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation
V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined(
), defaultSignature, 0)->GetFunction()); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2314 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2308 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2315 { | 2309 { |
2316 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2310 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2317 } | 2311 } |
2318 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2312 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2319 { | 2313 { |
2320 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2314 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2321 } | 2315 } |
2322 } // namespace blink | 2316 } // namespace blink |
2323 #endif // ENABLE(CONDITION) | 2317 #endif // ENABLE(CONDITION) |
OLD | NEW |