Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 793243004: IDL: Properly support [Exposed] on static methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
2012 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = { 2024 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = {
2013 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts, 2025 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts,
2014 }; 2026 };
2015 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); 2027 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate);
2016 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2028 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2017 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = { 2029 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = {
2018 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2030 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2019 }; 2031 };
2020 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, implements2VoidMethodMethodConfiguration, isolate); 2032 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, implements2VoidMethodMethodConfiguration, isolate);
2021 } 2033 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 } 2076 }
2065 #endif // ENABLE(PARTIAL_CONDITION) 2077 #endif // ENABLE(PARTIAL_CONDITION)
2066 #if ENABLE(PARTIAL_CONDITION) 2078 #if ENABLE(PARTIAL_CONDITION)
2067 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2079 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2068 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = { 2080 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = {
2069 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 2081 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
2070 }; 2082 };
2071 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati on, isolate); 2083 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati on, isolate);
2072 } 2084 }
2073 #endif // ENABLE(PARTIAL_CONDITION) 2085 #endif // ENABLE(PARTIAL_CONDITION)
2074 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOverloa dMethodConfiguration = { 2086 if (context && context->isDocument() && ContextFeatures::partialContextName3 Enabled(toDocument(context))) {
Jens Widell 2014/12/15 12:32:24 This added condition is wrong. Only one of the ove
Jens Widell 2014/12/15 12:37:54 Fixed in PS#2.
2075 "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts, 2087 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOve rloadMethodConfiguration = {
2076 }; 2088 "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Inte rnal::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts,
2077 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticVoidMethodPartialOverloadMethodConfiguration, isolate); 2089 };
2078 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartialOver loadMethodConfiguration = { 2090 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, staticVoidMethodPartialOverloadMethodConfiguration, isolate);
2079 "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Inter nal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts, 2091 }
2080 }; 2092 if (context && context->isDocument() && ContextFeatures::partialContextName3 Enabled(toDocument(context))) {
2081 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration, isolate); 2093 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartial OverloadMethodConfiguration = {
2082 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMethod Configuration = { 2094 "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8I nternal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts,
2083 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts , 2095 };
2084 }; 2096 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration, isolate );
2085 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate); 2097 }
2098 if (context && context->isDocument() && ContextFeatures::partialContextName3 Enabled(toDocument(context))) {
2099 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMe thodConfiguration = {
2100 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::p artial2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts,
2101 };
2102 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate);
2103 }
2086 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = { 2104 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = {
2087 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2105 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2088 }; 2106 };
2089 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf iguration, isolate); 2107 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf iguration, isolate);
2090 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access Control>(v8::DEFAULT)); 2108 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access Control>(v8::DEFAULT));
2091 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2109 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2092 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2110 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat ure>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2093 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2111 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2094 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2112 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig nature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2095 #if ENABLE(PARTIAL_CONDITION) 2113 #if ENABLE(PARTIAL_CONDITION)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 2177 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
2160 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 2178 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
2161 ASSERT(context); 2179 ASSERT(context);
2162 2180
2163 if (context && (context->isWorkerGlobalScope())) { 2181 if (context && (context->isWorkerGlobalScope())) {
2164 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 2182 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
2165 } 2183 }
2166 if (context && (context->isDocument())) { 2184 if (context && (context->isDocument())) {
2167 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 2185 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
2168 } 2186 }
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 }
2175 if (context && (context->isDocument())) { 2187 if (context && (context->isDocument())) {
2176 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2188 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2177 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction()); 2189 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction());
2178 } 2190 }
2179 } 2191 }
2180 if (context && (context->isDocument())) { 2192 if (context && (context->isDocument())) {
2181 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction()); 2193 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction());
2182 } 2194 }
2183 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) { 2195 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) {
2184 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction()); 2196 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
2308 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2320 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2309 { 2321 {
2310 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2322 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2311 } 2323 }
2312 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2324 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2313 { 2325 {
2314 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2326 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2315 } 2327 }
2316 } // namespace blink 2328 } // namespace blink
2317 #endif // ENABLE(CONDITION) 2329 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698