| 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 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2454 } | 2454 } |
| 2455 #endif // ENABLE(PARTIAL_CONDITION) | 2455 #endif // ENABLE(PARTIAL_CONDITION) |
| 2456 #if ENABLE(PARTIAL_CONDITION) | 2456 #if ENABLE(PARTIAL_CONDITION) |
| 2457 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2457 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2458 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2458 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ |
| 2459 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; | 2459 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; |
| 2460 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2460 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
| 2461 } | 2461 } |
| 2462 #endif // ENABLE(PARTIAL_CONDITION) | 2462 #endif // ENABLE(PARTIAL_CONDITION) |
| 2463 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { | 2463 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { |
| 2464 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}
, | 2464 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
| 2465 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 2465 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
| 2466 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2466 {"IMPLEMENTS_CONSTANT_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
| 2467 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}, | 2467 {"IMPLEMENTS_CONSTANT_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
| 2468 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 2468 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
| 2469 }; | 2469 }; |
| 2470 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 2470 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
| 2471 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2471 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 2472 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig
nedShort}; | 2472 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}; |
| 2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); | 2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); |
| 2474 } | 2474 } |
| 2475 { | 2475 { |
| 2476 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); | 2476 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); |
| 2477 config.flags = v8::PropertyHandlerFlags::kAllCanRead; | 2477 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 2478 functionTemplate->InstanceTemplate()->SetHandler(config); | 2478 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 2479 } | 2479 } |
| 2480 { | 2480 { |
| 2481 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation
V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal::
namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert
yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb
ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback); | 2481 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation
V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal::
namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert
yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb
ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback); |
| 2482 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 2482 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2792 { | 2792 { |
| 2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2794 } | 2794 } |
| 2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2796 { | 2796 { |
| 2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2798 } | 2798 } |
| 2799 } // namespace blink | 2799 } // namespace blink |
| 2800 #endif // ENABLE(CONDITION) | 2800 #endif // ENABLE(CONDITION) |
| OLD | NEW |