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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods)); | 969 V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods)); |
970 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 970 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
971 ALLOW_UNUSED_LOCAL(instanceTemplate); | 971 ALLOW_UNUSED_LOCAL(instanceTemplate); |
972 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 972 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
973 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 973 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
974 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[]
= { | 974 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[]
= { |
975 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, | 975 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
976 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 976 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
977 }; | 977 }; |
978 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); | 978 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants)); |
979 { | 979 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInt
erface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Im
plementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implemen
tationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<Test
Interface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNo
ne); |
980 v8::IndexedPropertyHandlerConfiguration config(TestInterface5Implementat
ionV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Inte
rnal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal::
indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implemen
tation>); | 980 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); |
981 functionTemplate->InstanceTemplate()->SetHandler(config); | 981 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterfa
ce5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implemen
tationV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Int
ernal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::named
PropertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEn
umeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(
int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFl
ags::kNonMasking))); |
982 } | 982 instanceTemplate->SetHandler(namedPropertyHandlerConfig); |
983 { | |
984 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); | |
985 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); | |
986 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)); | |
987 functionTemplate->InstanceTemplate()->SetHandler(config); | |
988 } | |
989 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; | 983 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterface5ImplementationV8Interna
l::iteratorMethodCallback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype }; |
990 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, symbolKeyedIteratorConfiguration); | 984 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, symbolKeyedIteratorConfiguration); |
991 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); | 985 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce5::legacyCallCustom); |
992 | 986 |
993 // Custom toString template | 987 // Custom toString template |
994 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 988 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
995 } | 989 } |
996 | 990 |
997 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) | 991 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) |
998 { | 992 { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1055 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1062 } | 1056 } |
1063 | 1057 |
1064 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1058 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1065 { | 1059 { |
1066 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1060 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1067 } | 1061 } |
1068 | 1062 |
1069 } // namespace blink | 1063 } // namespace blink |
1070 #endif // ENABLE(CONDITION) | 1064 #endif // ENABLE(CONDITION) |
OLD | NEW |