| 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 "V8TestInterfaceGarbageCollected.h" | 9 #include "V8TestInterfaceGarbageCollected.h" |
| 10 | 10 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 v8SetReturnValue(info, wrapper); | 336 v8SetReturnValue(info, wrapper); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace TestInterfaceGarbageCollectedV8Internal | 339 } // namespace TestInterfaceGarbageCollectedV8Internal |
| 340 | 340 |
| 341 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { | 341 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceGarbageCollectedA
ccessors[] = { |
| 342 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}, | 342 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}, |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { | 345 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageCollectedMet
hods[] = { |
| 346 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe}, | 346 {"func", TestInterfaceGarbageCollectedV8Internal::funcMethodCallback, 0, 1,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, |
| 347 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe}, | 347 {"keys", TestInterfaceGarbageCollectedV8Internal::keysMethodCallback, 0, 0,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, |
| 348 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype}, | 348 {"values", TestInterfaceGarbageCollectedV8Internal::valuesMethodCallback, 0,
0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}, |
| 349 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype}, | 349 {"entries", TestInterfaceGarbageCollectedV8Internal::entriesMethodCallback,
0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, |
| 350 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback,
0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype}, | 350 {"forEach", TestInterfaceGarbageCollectedV8Internal::forEachMethodCallback,
0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, |
| 351 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, v8
::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
}, | 351 {"has", TestInterfaceGarbageCollectedV8Internal::hasMethodCallback, 0, 1, v8
::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
, V8DOMConfiguration::CheckHolder}, |
| 352 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, v8
::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
}, | 352 {"add", TestInterfaceGarbageCollectedV8Internal::addMethodCallback, 0, 1, v8
::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype
, V8DOMConfiguration::CheckHolder}, |
| 353 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0
, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type}, | 353 {"clear", TestInterfaceGarbageCollectedV8Internal::clearMethodCallback, 0, 0
, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto
type, V8DOMConfiguration::CheckHolder}, |
| 354 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0,
1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype}, | 354 {"delete", TestInterfaceGarbageCollectedV8Internal::deleteMethodCallback, 0,
1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}, |
| 355 }; | 355 }; |
| 356 | 356 |
| 357 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) { | 357 void V8TestInterfaceGarbageCollected::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) { |
| 358 if (!info.IsConstructCall()) { | 358 if (!info.IsConstructCall()) { |
| 359 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceGarbageCollected")); | 359 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceGarbageCollected")); |
| 360 return; | 360 return; |
| 361 } | 361 } |
| 362 | 362 |
| 363 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 363 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
| 364 v8SetReturnValue(info, info.Holder()); | 364 v8SetReturnValue(info, info.Holder()); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 398 |
| 399 v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeCh
ain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 399 v8::Local<v8::Object> V8TestInterfaceGarbageCollected::findInstanceInPrototypeCh
ain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
| 400 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 400 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 401 } | 401 } |
| 402 | 402 |
| 403 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 403 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
| 404 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 404 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace blink | 407 } // namespace blink |
| OLD | NEW |