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 "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const
ants[] = { | 972 static const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Const
ants[] = { |
973 {"UNSIGNED_LONG", 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, | 973 {"UNSIGNED_LONG", 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
974 {"CONST_JAVASCRIPT", 1, V8DOMConfiguration::ConstantTypeShort}, | 974 {"CONST_JAVASCRIPT", 1, V8DOMConfiguration::ConstantTypeShort}, |
975 }; | 975 }; |
976 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); | 976 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); |
977 { | 977 { |
978 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat
ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte
rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal::
indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen
tation>); | 978 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat
ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte
rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal::
indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen
tation>); |
979 functionTemplate->InstanceTemplate()->SetHandler(config); | 979 functionTemplate->InstanceTemplate()->SetHandler(config); |
980 } | 980 } |
981 { | 981 { |
982 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio
nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal
::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp
ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC
allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback
); | 982 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
983 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 983 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
984 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); | 984 v8::NamedPropertyHandlerConfiguration config(TestInterface5Implementatio
nV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal
::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedProp
ertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterC
allback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback
, v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); |
985 functionTemplate->InstanceTemplate()->SetHandler(config); | 985 functionTemplate->InstanceTemplate()->SetHandler(config); |
986 } | 986 } |
987 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 987 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8
Internal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
988 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 988 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
989 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); | 989 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); |
990 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { | 990 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
991 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, | 991 "alwaysExposedStaticMethod", TestInterface5ImplementationV8Internal::alw
aysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScri
pts, |
992 }; | 992 }; |
993 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); | 993 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); |
994 if (context && (context->isWorkerGlobalScope())) { | 994 if (context && (context->isWorkerGlobalScope())) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1075 } | 1075 } |
1076 | 1076 |
1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1078 { | 1078 { |
1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1080 } | 1080 } |
1081 | 1081 |
1082 } // namespace blink | 1082 } // namespace blink |
1083 #endif // ENABLE(CONDITION) | 1083 #endif // ENABLE(CONDITION) |
OLD | NEW |