| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::ExposedToAllScripts, V8DOMConfigu
ration::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::ExposedToAllScr
ipts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::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}, | 244 {"voidMethodDoubleArgFloatArg", TestInterfaceOriginTrialEnabledV8Internal::v
oidMethodDoubleArgFloatArgMethodCallback, 0, 2, v8::None, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, |
| 245 {"voidMethodPartialOverload", TestInterfaceOriginTrialEnabledV8Internal::voi
dMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnPrototype}, | 245 {"voidMethodPartialOverload", TestInterfaceOriginTrialEnabledV8Internal::voi
dMethodPartialOverloadMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expose
dToAllScripts, V8DOMConfiguration::OnPrototype, 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(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 285 | 285 |
| 286 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype
Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 286 v8::Local<v8::Object> V8TestInterfaceOriginTrialEnabled::findInstanceInPrototype
Chain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
| 287 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 287 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 288 } | 288 } |
| 289 | 289 |
| 290 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 290 TestInterfaceOriginTrialEnabled* V8TestInterfaceOriginTrialEnabled::toImplWithTy
peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
| 291 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 291 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace blink | 294 } // namespace blink |
| OLD | NEW |