| 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 2451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, V8DOMConfiguration::ConstantTypeUnsignedLong}, | 2464 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
| 2465 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 2465 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
| 2466 {"IMPLEMENTS_CONSTANT_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, | 2466 {"IMPLEMENTS_CONSTANT_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
| 2467 {"IMPLEMENTS_CONSTANT_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, | 2467 {"IMPLEMENTS_CONSTANT_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
| 2468 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 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, V8DOMConfiguration::ConstantTypeUnsigned
Short}; | 2472 static const V8DOMConfiguration::ConstantConfiguration constantPartialUn
signedShortConfiguration = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::
ConstantTypeUnsignedShort}; |
| 2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantConfiguration); | 2473 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialUnsignedShortConfiguration); |
| 2474 static const V8DOMConfiguration::ConstantConfiguration constantPartialDo
ubleConfiguration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantType
Double}; |
| 2475 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialDoubleConfiguration); |
| 2474 } | 2476 } |
| 2475 { | 2477 { |
| 2476 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); | 2478 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); |
| 2477 config.flags = v8::PropertyHandlerFlags::kAllCanRead; | 2479 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 2478 functionTemplate->InstanceTemplate()->SetHandler(config); | 2480 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 2479 } | 2481 } |
| 2480 { | 2482 { |
| 2481 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); | 2483 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
| 2482 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead); | 2484 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead); |
| 2483 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); | 2485 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2793 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2792 { | 2794 { |
| 2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2795 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2794 } | 2796 } |
| 2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2797 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2796 { | 2798 { |
| 2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2799 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2798 } | 2800 } |
| 2799 } // namespace blink | 2801 } // namespace blink |
| 2800 #endif // ENABLE(CONDITION) | 2802 #endif // ENABLE(CONDITION) |
| OLD | NEW |