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 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 2067 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, |
2068 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2068 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
2069 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2069 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, |
2070 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 2070 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
2071 }; | 2071 }; |
2072 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 2072 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
2073 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2073 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2074 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}; | 2074 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}; |
2075 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototyp
eTemplate, &constantConfiguration, 1); | 2075 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototyp
eTemplate, &constantConfiguration, 1); |
2076 } | 2076 } |
2077 functionTemplate->InstanceTemplate()->SetHandler(v8::IndexedPropertyHandlerC
onfiguration(TestInterfaceImplementationV8Internal::indexedPropertyGetterCallbac
k, TestInterfaceImplementationV8Internal::indexedPropertySetterCallback, 0, Test
InterfaceImplementationV8Internal::indexedPropertyDeleterCallback, indexedProper
tyEnumerator<TestInterfaceImplementation>)); | 2077 { |
2078 functionTemplate->InstanceTemplate()->SetHandler(v8::NamedPropertyHandlerCon
figuration(TestInterfaceImplementationV8Internal::namedPropertyGetterCallback, T
estInterfaceImplementationV8Internal::namedPropertySetterCallback, TestInterface
ImplementationV8Internal::namedPropertyQueryCallback, TestInterfaceImplementatio
nV8Internal::namedPropertyDeleterCallback, TestInterfaceImplementationV8Internal
::namedPropertyEnumeratorCallback)); | 2078 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); |
| 2079 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 2080 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 2081 } |
| 2082 { |
| 2083 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation
V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal::
namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert
yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb
ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback); |
| 2084 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 2085 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 2086 } |
2079 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 2087 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
2080 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 2088 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
2081 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 2089 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
2082 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { | 2090 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
2083 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, | 2091 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, |
2084 }; | 2092 }; |
2085 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); | 2093 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
(), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); |
2086 if (context && (context->isWorkerGlobalScope())) { | 2094 if (context && (context->isWorkerGlobalScope())) { |
2087 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { | 2095 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { |
2088 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal::
workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, | 2096 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal::
workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2396 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2389 { | 2397 { |
2390 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2398 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2391 } | 2399 } |
2392 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2400 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2393 { | 2401 { |
2394 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2402 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2395 } | 2403 } |
2396 } // namespace blink | 2404 } // namespace blink |
2397 #endif // ENABLE(CONDITION) | 2405 #endif // ENABLE(CONDITION) |
OLD | NEW |