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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // clang-format off | 8 // clang-format off |
9 #include "V8TestInterfaceOriginTrialEnabled.h" | 9 #include "V8TestInterfaceOriginTrialEnabled.h" |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 exceptionState.throwTypeError("No function was found that matched the signatur
e provided."); | 229 exceptionState.throwTypeError("No function was found that matched the signatur
e provided."); |
230 } | 230 } |
231 | 231 |
232 void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { | 232 void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
233 TestInterfaceOriginTrialEnabledV8Internal::voidMethodPartialOverloadMethod(inf
o); | 233 TestInterfaceOriginTrialEnabledV8Internal::voidMethodPartialOverloadMethod(inf
o); |
234 } | 234 } |
235 | 235 |
236 } // namespace TestInterfaceOriginTrialEnabledV8Internal | 236 } // namespace TestInterfaceOriginTrialEnabledV8Internal |
237 | 237 |
238 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOriginTrialEnable
dAccessors[] = { | 238 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceOriginTrialEnable
dAccessors[] = { |
239 {"doubleAttribute", TestInterfaceOriginTrialEnabledV8Internal::doubleAttribu
teAttributeGetterCallback, TestInterfaceOriginTrialEnabledV8Internal::doubleAttr
ibuteAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 239 {"doubleAttribute", TestInterfaceOriginTrialEnabledV8Internal::doubleAttribu
teAttributeGetterCallback, TestInterfaceOriginTrialEnabledV8Internal::doubleAttr
ibuteAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}, |
240 {"staticStringAttribute", TestInterfaceOriginTrialEnabledV8Internal::staticS
tringAttributeAttributeGetterCallback, TestInterfaceOriginTrialEnabledV8Internal
::staticStringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | 240 {"staticStringAttribute", TestInterfaceOriginTrialEnabledV8Internal::staticS
tringAttributeAttributeGetterCallback, TestInterfaceOriginTrialEnabledV8Internal
::staticStringAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8
DOMConfiguration::CheckHolder}, |
241 }; | 241 }; |
242 | 242 |
243 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceOriginTrialEnabledM
ethods[] = { | 243 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceOriginTrialEnabledM
ethods[] = { |
244 {"voidMethodDoubleArgFloatArg", TestInterfaceOriginTrialEnabledV8Internal::v
oidMethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, | 244 {"voidMethodDoubleArgFloatArg", TestInterfaceOriginTrialEnabledV8Internal::v
oidMethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}, |
245 {"voidMethodPartialOverload", TestInterfaceOriginTrialEnabledV8Internal::voi
dMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}
, | 245 {"voidMethodPartialOverload", TestInterfaceOriginTrialEnabledV8Internal::voi
dMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnProt
otype, V8DOMConfiguration::CheckHolder}, |
246 }; | 246 }; |
247 | 247 |
248 static void installV8TestInterfaceOriginTrialEnabledTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla
te) { | 248 static void installV8TestInterfaceOriginTrialEnabledTemplate(v8::Isolate* isolat
e, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempla
te) { |
249 // Initialize the interface object's template. | 249 // Initialize the interface object's template. |
250 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo.interfaceName, v8::Local<v8:
:FunctionTemplate>(), V8TestInterfaceOriginTrialEnabled::internalFieldCount); | 250 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceOriginTrialEnabled::wrapperTypeInfo.interfaceName, v8::Local<v8:
:FunctionTemplate>(), V8TestInterfaceOriginTrialEnabled::internalFieldCount); |
251 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 251 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
252 ALLOW_UNUSED_LOCAL(signature); | 252 ALLOW_UNUSED_LOCAL(signature); |
253 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 253 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
254 ALLOW_UNUSED_LOCAL(instanceTemplate); | 254 ALLOW_UNUSED_LOCAL(instanceTemplate); |
255 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 255 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
256 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 256 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
257 | 257 |
258 // Register DOM constants, attributes and operations. | 258 // Register DOM constants, attributes and operations. |
259 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceOriginTrialEnab
ledConstants[] = { | 259 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceOriginTrialEnab
ledConstants[] = { |
260 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, | 260 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
261 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 261 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
262 }; | 262 }; |
263 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceOriginTrialEnabledConstants, WTF_ARRAY_LENGTH(V8TestInterfa
ceOriginTrialEnabledConstants)); | 263 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemp
late, V8TestInterfaceOriginTrialEnabledConstants, WTF_ARRAY_LENGTH(V8TestInterfa
ceOriginTrialEnabledConstants)); |
264 static_assert(0 == TestInterfaceOriginTrialEnabled::kUnsignedLong, "the value
of TestInterfaceOriginTrialEnabled_kUnsignedLong does not match with implementat
ion"); | 264 static_assert(0 == TestInterfaceOriginTrialEnabled::kUnsignedLong, "the value
of TestInterfaceOriginTrialEnabled_kUnsignedLong does not match with implementat
ion"); |
265 static_assert(1 == TestInterfaceOriginTrialEnabled::kConstJavascript, "the val
ue of TestInterfaceOriginTrialEnabled_kConstJavascript does not match with imple
mentation"); | 265 static_assert(1 == TestInterfaceOriginTrialEnabled::kConstJavascript, "the val
ue of TestInterfaceOriginTrialEnabled_kConstJavascript does not match with imple
mentation"); |
266 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterfaceOriginTrialEnabledAcces
sors, WTF_ARRAY_LENGTH(V8TestInterfaceOriginTrialEnabledAccessors)); | 266 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy
peTemplate, interfaceTemplate, signature, V8TestInterfaceOriginTrialEnabledAcces
sors, WTF_ARRAY_LENGTH(V8TestInterfaceOriginTrialEnabledAccessors)); |
267 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceOriginTrialEnabledMethods
, WTF_ARRAY_LENGTH(V8TestInterfaceOriginTrialEnabledMethods)); | 267 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype
Template, interfaceTemplate, signature, V8TestInterfaceOriginTrialEnabledMethods
, WTF_ARRAY_LENGTH(V8TestInterfaceOriginTrialEnabledMethods)); |
268 | 268 |
269 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 269 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
270 const V8DOMConfiguration::AccessorConfiguration accessorconditionalReadOnlyL
ongAttributeConfiguration = {"conditionalReadOnlyLongAttribute", TestInterfaceOr
iginTrialEnabledV8Internal::conditionalReadOnlyLongAttributeAttributeGetterCallb
ack, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Re
adOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder}; | 270 const V8DOMConfiguration::AccessorConfiguration accessorconditionalReadOnlyL
ongAttributeConfiguration = {"conditionalReadOnlyLongAttribute", TestInterfaceOr
iginTrialEnabledV8Internal::conditionalReadOnlyLongAttributeAttributeGetterCallb
ack, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Re
adOnly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
271 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorconditionalReadOnlyLongAttrib
uteConfiguration); | 271 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorconditionalReadOnlyLongAttrib
uteConfiguration); |
272 const V8DOMConfiguration::AccessorConfiguration accessorstaticConditionalRea
dOnlyLongAttributeConfiguration = {"staticConditionalReadOnlyLongAttribute", Tes
tInterfaceOriginTrialEnabledV8Internal::staticConditionalReadOnlyLongAttributeAt
tributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Propert
yAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnInterface, V8DOMConfiguration::CheckHolder}; | 272 const V8DOMConfiguration::AccessorConfiguration accessorstaticConditionalRea
dOnlyLongAttributeConfiguration = {"staticConditionalReadOnlyLongAttribute", Tes
tInterfaceOriginTrialEnabledV8Internal::staticConditionalReadOnlyLongAttributeAt
tributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Propert
yAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V8DOMConfiguration::
CheckHolder}; |
273 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorstaticConditionalReadOnlyLong
AttributeConfiguration); | 273 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorstaticConditionalReadOnlyLong
AttributeConfiguration); |
274 const V8DOMConfiguration::AccessorConfiguration accessorconditionalLongAttri
buteConfiguration = {"conditionalLongAttribute", TestInterfaceOriginTrialEnabled
V8Internal::conditionalLongAttributeAttributeGetterCallback, TestInterfaceOrigin
TrialEnabledV8Internal::conditionalLongAttributeAttributeSetterCallback, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder}; | 274 const V8DOMConfiguration::AccessorConfiguration accessorconditionalLongAttri
buteConfiguration = {"conditionalLongAttribute", TestInterfaceOriginTrialEnabled
V8Internal::conditionalLongAttributeAttributeGetterCallback, TestInterfaceOrigin
TrialEnabledV8Internal::conditionalLongAttributeAttributeSetterCallback, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
275 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorconditionalLongAttributeConfi
guration); | 275 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot
ypeTemplate, interfaceTemplate, signature, accessorconditionalLongAttributeConfi
guration); |
276 } | 276 } |
277 } | 277 } |
278 | 278 |
279 v8::Local<v8::FunctionTemplate> V8TestInterfaceOriginTrialEnabled::domTemplate(v
8::Isolate* isolate, const DOMWrapperWorld& world) { | 279 v8::Local<v8::FunctionTemplate> V8TestInterfaceOriginTrialEnabled::domTemplate(v
8::Isolate* isolate, const DOMWrapperWorld& world) { |
280 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceOriginTrialEnabledTemplate); | 280 return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<Wrapper
TypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceOriginTrialEnabledTemplate); |
281 } | 281 } |
282 | 282 |
283 bool V8TestInterfaceOriginTrialEnabled::hasInstance(v8::Local<v8::Value> v8Value
, v8::Isolate* isolate) { | 283 bool V8TestInterfaceOriginTrialEnabled::hasInstance(v8::Local<v8::Value> v8Value
, v8::Isolate* isolate) { |
284 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value)
; | 284 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value)
; |
285 } | 285 } |
286 | 286 |
287 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype
Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 287 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype
Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
288 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 288 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
289 } | 289 } |
290 | 290 |
291 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 291 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
292 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 292 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
293 } | 293 } |
294 | 294 |
295 } // namespace blink | 295 } // namespace blink |
OLD | NEW |