| 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 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc
ripts}, | 2171 {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc
ripts}, |
| 2172 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2172 {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 2173 }; | 2173 }; |
| 2174 | 2174 |
| 2175 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate) | 2175 void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl
ate> functionTemplate, v8::Isolate* isolate) |
| 2176 { | 2176 { |
| 2177 functionTemplate->ReadOnlyPrototype(); | 2177 functionTemplate->ReadOnlyPrototype(); |
| 2178 | 2178 |
| 2179 v8::Local<v8::Signature> defaultSignature; | 2179 v8::Local<v8::Signature> defaultSignature; |
| 2180 if (!RuntimeEnabledFeatures::featureNameEnabled()) | 2180 if (!RuntimeEnabledFeatures::featureNameEnabled()) |
| 2181 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterfac
e::internalFieldCount, 0, 0, 0, 0, 0, 0); | 2181 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V
8TestInterface::internalFieldCount, 0, 0, 0, 0, 0, 0); |
| 2182 else | 2182 else |
| 2183 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V
8TestInterface::internalFieldCount, | 2183 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V
8TestInterface::internalFieldCount, |
| 2184 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), | 2184 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), |
| 2185 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, | 2185 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, |
| 2186 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); | 2186 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
| 2187 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 2187 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 2188 ALLOW_UNUSED_LOCAL(instanceTemplate); | 2188 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 2189 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 2189 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 2190 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 2190 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 2191 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { | 2191 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2552 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2552 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2553 { | 2553 { |
| 2554 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2554 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2555 } | 2555 } |
| 2556 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2556 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2557 { | 2557 { |
| 2558 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2558 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2559 } | 2559 } |
| 2560 } // namespace blink | 2560 } // namespace blink |
| 2561 #endif // ENABLE(CONDITION) | 2561 #endif // ENABLE(CONDITION) |
| OLD | NEW |