Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp

Issue 2341673004: [Binding] Replace 'Unscopeable' with 'Unscopable' (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestObject.h" 7 #include "V8TestObject.h"
8 8
9 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrDictionary.h" 9 #include "bindings/core/v8/ArrayBufferOrArrayBufferViewOrDictionary.h"
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 4456 matching lines...) Expand 10 before | Expand all | Expand 10 after
4467 V8HiddenValue::setHiddenValue(ScriptState::current(info.GetIsolate()), holde r, v8AtomicString(info.GetIsolate(), "saveSameObjectAttribute"), v8Value); 4467 V8HiddenValue::setHiddenValue(ScriptState::current(info.GetIsolate()), holde r, v8AtomicString(info.GetIsolate(), "saveSameObjectAttribute"), v8Value);
4468 v8SetReturnValue(info, v8Value); 4468 v8SetReturnValue(info, v8Value);
4469 privateSameObject.set(info.GetIsolate()->GetCurrentContext(), holder, info.G etReturnValue().Get()); 4469 privateSameObject.set(info.GetIsolate()->GetCurrentContext(), holder, info.G etReturnValue().Get());
4470 } 4470 }
4471 4471
4472 void saveSameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4472 void saveSameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4473 { 4473 {
4474 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info); 4474 TestObjectV8Internal::saveSameObjectAttributeAttributeGetter(info);
4475 } 4475 }
4476 4476
4477 static void unscopeableLongAttributeAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info) 4477 static void unscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
4478 { 4478 {
4479 v8::Local<v8::Object> holder = info.Holder(); 4479 v8::Local<v8::Object> holder = info.Holder();
4480 TestObject* impl = V8TestObject::toImpl(holder); 4480 TestObject* impl = V8TestObject::toImpl(holder);
4481 v8SetReturnValueInt(info, impl->unscopeableLongAttribute()); 4481 v8SetReturnValueInt(info, impl->unscopableLongAttribute());
4482 } 4482 }
4483 4483
4484 void unscopeableLongAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 4484 void unscopableLongAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4485 { 4485 {
4486 TestObjectV8Internal::unscopeableLongAttributeAttributeGetter(info); 4486 TestObjectV8Internal::unscopableLongAttributeAttributeGetter(info);
4487 } 4487 }
4488 4488
4489 static void unscopeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info) 4489 static void unscopableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4490 { 4490 {
4491 v8::Local<v8::Object> holder = info.Holder(); 4491 v8::Local<v8::Object> holder = info.Holder();
4492 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableLon gAttribute", "TestObject", holder, info.GetIsolate()); 4492 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopableLong Attribute", "TestObject", holder, info.GetIsolate());
4493 TestObject* impl = V8TestObject::toImpl(holder); 4493 TestObject* impl = V8TestObject::toImpl(holder);
4494 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4494 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4495 if (exceptionState.hadException()) 4495 if (exceptionState.hadException())
4496 return; 4496 return;
4497 impl->setUnscopeableLongAttribute(cppValue); 4497 impl->setUnscopableLongAttribute(cppValue);
4498 } 4498 }
4499 4499
4500 void unscopeableLongAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 4500 void unscopableLongAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4501 { 4501 {
4502 v8::Local<v8::Value> v8Value = info[0]; 4502 v8::Local<v8::Value> v8Value = info[0];
4503 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info) ; 4503 TestObjectV8Internal::unscopableLongAttributeAttributeSetter(v8Value, info);
4504 } 4504 }
4505 4505
4506 static void unscopeableOriginTrialEnabledLongAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) 4506 static void unscopableOriginTrialEnabledLongAttributeAttributeGetter(const v8::F unctionCallbackInfo<v8::Value>& info)
4507 { 4507 {
4508 v8::Local<v8::Object> holder = info.Holder(); 4508 v8::Local<v8::Object> holder = info.Holder();
4509 TestObject* impl = V8TestObject::toImpl(holder); 4509 TestObject* impl = V8TestObject::toImpl(holder);
4510 v8SetReturnValueInt(info, impl->unscopeableOriginTrialEnabledLongAttribute() ); 4510 v8SetReturnValueInt(info, impl->unscopableOriginTrialEnabledLongAttribute()) ;
4511 } 4511 }
4512 4512
4513 void unscopeableOriginTrialEnabledLongAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 4513 void unscopableOriginTrialEnabledLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4514 { 4514 {
4515 TestObjectV8Internal::unscopeableOriginTrialEnabledLongAttributeAttributeGet ter(info); 4515 TestObjectV8Internal::unscopableOriginTrialEnabledLongAttributeAttributeGett er(info);
4516 } 4516 }
4517 4517
4518 static void unscopeableOriginTrialEnabledLongAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4518 static void unscopableOriginTrialEnabledLongAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4519 { 4519 {
4520 v8::Local<v8::Object> holder = info.Holder(); 4520 v8::Local<v8::Object> holder = info.Holder();
4521 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableOri ginTrialEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4521 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopableOrig inTrialEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4522 TestObject* impl = V8TestObject::toImpl(holder); 4522 TestObject* impl = V8TestObject::toImpl(holder);
4523 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4523 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4524 if (exceptionState.hadException()) 4524 if (exceptionState.hadException())
4525 return; 4525 return;
4526 impl->setUnscopeableOriginTrialEnabledLongAttribute(cppValue); 4526 impl->setUnscopableOriginTrialEnabledLongAttribute(cppValue);
4527 } 4527 }
4528 4528
4529 void unscopeableOriginTrialEnabledLongAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 4529 void unscopableOriginTrialEnabledLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4530 { 4530 {
4531 v8::Local<v8::Value> v8Value = info[0]; 4531 v8::Local<v8::Value> v8Value = info[0];
4532 TestObjectV8Internal::unscopeableOriginTrialEnabledLongAttributeAttributeSet ter(v8Value, info); 4532 TestObjectV8Internal::unscopableOriginTrialEnabledLongAttributeAttributeSett er(v8Value, info);
4533 } 4533 }
4534 4534
4535 static void unscopeableRuntimeEnabledLongAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info) 4535 static void unscopableRuntimeEnabledLongAttributeAttributeGetter(const v8::Funct ionCallbackInfo<v8::Value>& info)
4536 { 4536 {
4537 v8::Local<v8::Object> holder = info.Holder(); 4537 v8::Local<v8::Object> holder = info.Holder();
4538 TestObject* impl = V8TestObject::toImpl(holder); 4538 TestObject* impl = V8TestObject::toImpl(holder);
4539 v8SetReturnValueInt(info, impl->unscopeableRuntimeEnabledLongAttribute()); 4539 v8SetReturnValueInt(info, impl->unscopableRuntimeEnabledLongAttribute());
4540 } 4540 }
4541 4541
4542 void unscopeableRuntimeEnabledLongAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4542 void unscopableRuntimeEnabledLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
4543 { 4543 {
4544 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeGetter( info); 4544 TestObjectV8Internal::unscopableRuntimeEnabledLongAttributeAttributeGetter(i nfo);
4545 } 4545 }
4546 4546
4547 static void unscopeableRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4547 static void unscopableRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4548 { 4548 {
4549 v8::Local<v8::Object> holder = info.Holder(); 4549 v8::Local<v8::Object> holder = info.Holder();
4550 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4550 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopableRunt imeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4551 TestObject* impl = V8TestObject::toImpl(holder); 4551 TestObject* impl = V8TestObject::toImpl(holder);
4552 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4552 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4553 if (exceptionState.hadException()) 4553 if (exceptionState.hadException())
4554 return; 4554 return;
4555 impl->setUnscopeableRuntimeEnabledLongAttribute(cppValue); 4555 impl->setUnscopableRuntimeEnabledLongAttribute(cppValue);
4556 } 4556 }
4557 4557
4558 void unscopeableRuntimeEnabledLongAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4558 void unscopableRuntimeEnabledLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
4559 { 4559 {
4560 v8::Local<v8::Value> v8Value = info[0]; 4560 v8::Local<v8::Value> v8Value = info[0];
4561 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 4561 TestObjectV8Internal::unscopableRuntimeEnabledLongAttributeAttributeSetter(v 8Value, info);
4562 } 4562 }
4563 4563
4564 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 4564 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
4565 { 4565 {
4566 v8::Local<v8::Object> holder = info.Holder(); 4566 v8::Local<v8::Object> holder = info.Holder();
4567 TestObject* impl = V8TestObject::toImpl(holder); 4567 TestObject* impl = V8TestObject::toImpl(holder);
4568 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 4568 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
4569 } 4569 }
4570 4570
4571 void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 4571 void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
4834 } 4834 }
4835 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ; 4835 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ;
4836 } 4836 }
4837 4837
4838 void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 4838 void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
4839 { 4839 {
4840 v8::Local<v8::Value> v8Value = info[0]; 4840 v8::Local<v8::Value> v8Value = info[0];
4841 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 4841 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
4842 } 4842 }
4843 4843
4844 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4844 static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4845 { 4845 {
4846 TestObject* impl = V8TestObject::toImpl(info.Holder()); 4846 TestObject* impl = V8TestObject::toImpl(info.Holder());
4847 4847
4848 impl->unscopeableVoidMethod(); 4848 impl->unscopableVoidMethod();
4849 } 4849 }
4850 4850
4851 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4851 static void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4852 { 4852 {
4853 TestObjectV8Internal::unscopeableVoidMethodMethod(info); 4853 TestObjectV8Internal::unscopableVoidMethodMethod(info);
4854 } 4854 }
4855 4855
4856 static void unscopeableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallback Info<v8::Value>& info) 4856 static void unscopableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
4857 { 4857 {
4858 TestObject* impl = V8TestObject::toImpl(info.Holder()); 4858 TestObject* impl = V8TestObject::toImpl(info.Holder());
4859 4859
4860 impl->unscopeableRuntimeEnabledVoidMethod(); 4860 impl->unscopableRuntimeEnabledVoidMethod();
4861 } 4861 }
4862 4862
4863 static void unscopeableRuntimeEnabledVoidMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 4863 static void unscopableRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
4864 { 4864 {
4865 TestObjectV8Internal::unscopeableRuntimeEnabledVoidMethodMethod(info); 4865 TestObjectV8Internal::unscopableRuntimeEnabledVoidMethodMethod(info);
4866 } 4866 }
4867 4867
4868 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4868 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4869 { 4869 {
4870 TestObject* impl = V8TestObject::toImpl(info.Holder()); 4870 TestObject* impl = V8TestObject::toImpl(info.Holder());
4871 4871
4872 impl->voidMethod(); 4872 impl->voidMethod();
4873 } 4873 }
4874 4874
4875 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4875 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 6936 matching lines...) Expand 10 before | Expand all | Expand 10 after
11812 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 11812 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
11813 {"legacyInterfaceTypeCheckingFloatAttribute", TestObjectV8Internal::legacyIn terfaceTypeCheckingFloatAttributeAttributeGetterCallback, TestObjectV8Internal:: legacyInterfaceTypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, v8::D EFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expose dToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder} , 11813 {"legacyInterfaceTypeCheckingFloatAttribute", TestObjectV8Internal::legacyIn terfaceTypeCheckingFloatAttributeAttributeGetterCallback, TestObjectV8Internal:: legacyInterfaceTypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, v8::D EFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expose dToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder} ,
11814 {"legacyInterfaceTypeCheckingTestInterfaceAttribute", TestObjectV8Internal:: legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetter Callback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder}, 11814 {"legacyInterfaceTypeCheckingTestInterfaceAttribute", TestObjectV8Internal:: legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::legacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetter Callback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder},
11815 {"legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute", TestObjectV8Inte rnal::legacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCall back, TestObjectV8Internal::legacyInterfaceTypeCheckingTestInterfaceOrNullAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}, 11815 {"legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute", TestObjectV8Inte rnal::legacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCall back, TestObjectV8Internal::legacyInterfaceTypeCheckingTestInterfaceOrNullAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder},
11816 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder}, 11816 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder},
11817 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder}, 11817 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder},
11818 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Dont Delete), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance , V8DOMConfiguration::CheckHolder}, 11818 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Dont Delete), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance , V8DOMConfiguration::CheckHolder},
11819 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall back, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder}, 11819 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall back, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder},
11820 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe tterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Re adOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder}, 11820 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe tterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::Re adOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder},
11821 {"saveSameObjectAttribute", TestObjectV8Internal::saveSameObjectAttributeAtt ributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute >(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder}, 11821 {"saveSameObjectAttribute", TestObjectV8Internal::saveSameObjectAttributeAtt ributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute >(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder},
11822 {"unscopeableLongAttribute", TestObjectV8Internal::unscopeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unscopeableLongAttributeAttributeS etterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None ), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8D OMConfiguration::CheckHolder}, 11822 {"unscopableLongAttribute", TestObjectV8Internal::unscopableLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::unscopableLongAttributeAttributeSett erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder},
11823 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder}, 11823 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConf iguration::CheckHolder},
11824 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 11824 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
11825 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}, 11825 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder},
11826 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>( v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder}, 11826 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>( v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype, V8DOMConfiguration::CheckHolder},
11827 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 11827 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
11828 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}, 11828 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
11829 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 11829 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
11830 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnlyExposedToPrivateScript, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder}, 11830 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnlyExposedToPrivateScript, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder},
11831 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}, 11831 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder},
11832 }; 11832 };
11833 11833
11834 const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 11834 const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
11835 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC allback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura tion::OnPrototype}, 11835 {"unscopableVoidMethod", TestObjectV8Internal::unscopableVoidMethodMethodCal lback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnPrototype},
11836 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 11836 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
11837 {"staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn terface}, 11837 {"staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn terface},
11838 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 11838 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
11839 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, v8: :None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype} , 11839 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, v8: :None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype} ,
11840 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype}, 11840 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr ototype},
11841 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt otype}, 11841 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt otype},
11842 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnPrototype}, 11842 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnPrototype},
11843 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, v 8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e}, 11843 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, v 8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e},
11844 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 11844 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, v8::Non e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
11845 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, v8: :None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype} , 11845 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, v8: :None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype} ,
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
12158 static_assert(5 == TestObject::kFeature3OriginTrialEnabledConst1, "the value of TestObject_kFeature3OriginTrialEnabledConst1 does not match with implementat ion"); 12158 static_assert(5 == TestObject::kFeature3OriginTrialEnabledConst1, "the value of TestObject_kFeature3OriginTrialEnabledConst1 does not match with implementat ion");
12159 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation"); 12159 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
12160 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate, prot otypeTemplate, V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes)) ; 12160 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate, prot otypeTemplate, V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes)) ;
12161 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestObjectAccessors, WTF_ARRAY_LEN GTH(V8TestObjectAccessors)); 12161 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestObjectAccessors, WTF_ARRAY_LEN GTH(V8TestObjectAccessors));
12162 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestObjectMethods, WTF_ARRAY_LENGTH( V8TestObjectMethods)); 12162 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestObjectMethods, WTF_ARRAY_LENGTH( V8TestObjectMethods));
12163 12163
12164 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12164 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12165 const V8DOMConfiguration::AccessorConfiguration accessorruntimeEnabledLo ngAttributeConfiguration = \ 12165 const V8DOMConfiguration::AccessorConfiguration accessorruntimeEnabledLo ngAttributeConfiguration = \
12166 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}; 12166 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder};
12167 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, pr ototypeTemplate, interfaceTemplate, signature, accessorruntimeEnabledLongAttribu teConfiguration); 12167 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, pr ototypeTemplate, interfaceTemplate, signature, accessorruntimeEnabledLongAttribu teConfiguration);
12168 const V8DOMConfiguration::AccessorConfiguration accessorunscopeableRunti meEnabledLongAttributeConfiguration = \ 12168 const V8DOMConfiguration::AccessorConfiguration accessorunscopableRuntim eEnabledLongAttributeConfiguration = \
12169 {"unscopeableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscope ableRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::un scopeableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 12169 {"unscopableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscopab leRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::unsc opableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
12170 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, pr ototypeTemplate, interfaceTemplate, signature, accessorunscopeableRuntimeEnabled LongAttributeConfiguration); 12170 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, pr ototypeTemplate, interfaceTemplate, signature, accessorunscopableRuntimeEnabledL ongAttributeConfiguration);
12171 } 12171 }
12172 12172
12173 // Indexed properties 12173 // Indexed properties
12174 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestObj ectV8Internal::indexedPropertyGetterCallback, TestObjectV8Internal::indexedPrope rtySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, inde xedPropertyEnumerator<TestObject>, v8::Local<v8::Value>(), v8::PropertyHandlerFl ags::kNone); 12174 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestObj ectV8Internal::indexedPropertyGetterCallback, TestObjectV8Internal::indexedPrope rtySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, inde xedPropertyEnumerator<TestObject>, v8::Local<v8::Value>(), v8::PropertyHandlerFl ags::kNone);
12175 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); 12175 instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
12176 // Named properties 12176 // Named properties
12177 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestObjectV 8Internal::namedPropertyGetterCallback, TestObjectV8Internal::namedPropertySette rCallback, TestObjectV8Internal::namedPropertyQueryCallback, TestObjectV8Interna l::namedPropertyDeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCa llback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::Pr opertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonM asking))); 12177 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestObjectV 8Internal::namedPropertyGetterCallback, TestObjectV8Internal::namedPropertySette rCallback, TestObjectV8Internal::namedPropertyQueryCallback, TestObjectV8Interna l::namedPropertyDeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCa llback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::Pr opertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonM asking)));
12178 instanceTemplate->SetHandler(namedPropertyHandlerConfig); 12178 instanceTemplate->SetHandler(namedPropertyHandlerConfig);
12179 12179
12180 // Iterator (@@iterator) 12180 // Iterator (@@iterator)
12181 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator Configuration = { v8::Symbol::GetIterator, TestObjectV8Internal::iteratorMethodC allback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype }; 12181 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator Configuration = { v8::Symbol::GetIterator, TestObjectV8Internal::iteratorMethodC allback, 0, v8::DontDelete, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype };
12182 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signatu re, symbolKeyedIteratorConfiguration); 12182 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signatu re, symbolKeyedIteratorConfiguration);
12183 12183
12184 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12184 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12185 const V8DOMConfiguration::MethodConfiguration unscopeableRuntimeEnabledV oidMethodMethodConfiguration = {"unscopeableRuntimeEnabledVoidMethod", TestObjec tV8Internal::unscopeableRuntimeEnabledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; 12185 const V8DOMConfiguration::MethodConfiguration unscopableRuntimeEnabledVo idMethodMethodConfiguration = {"unscopableRuntimeEnabledVoidMethod", TestObjectV 8Internal::unscopableRuntimeEnabledVoidMethodMethodCallback, 0, 0, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
12186 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, unscopeableRuntimeEnabledVoidMethod MethodConfiguration); 12186 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, unscopableRuntimeEnabledVoidMethodM ethodConfiguration);
12187 } 12187 }
12188 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12188 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12189 const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidMethodMe thodConfiguration = {"runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEn abledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype}; 12189 const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidMethodMe thodConfiguration = {"runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEn abledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnPrototype};
12190 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, runtimeEnabledVoidMethodMethodConfi guration); 12190 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, runtimeEnabledVoidMethodMethodConfi guration);
12191 } 12191 }
12192 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12192 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12193 const V8DOMConfiguration::MethodConfiguration perWorldBindingsRuntimeEna bledVoidMethodMethodConfiguration = {"perWorldBindingsRuntimeEnabledVoidMethod", TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, T estObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMa inWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguratio n::OnPrototype}; 12193 const V8DOMConfiguration::MethodConfiguration perWorldBindingsRuntimeEna bledVoidMethodMethodConfiguration = {"perWorldBindingsRuntimeEnabledVoidMethod", TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, T estObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMa inWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguratio n::OnPrototype};
12194 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, perWorldBindingsRuntimeEnabledVoidM ethodMethodConfiguration); 12194 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, perWorldBindingsRuntimeEnabledVoidM ethodMethodConfiguration);
12195 } 12195 }
12196 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12196 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12197 const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverloadedVo idMethodMethodConfiguration = {"runtimeEnabledOverloadedVoidMethod", TestObjectV 8Internal::runtimeEnabledOverloadedVoidMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}; 12197 const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverloadedVo idMethodMethodConfiguration = {"runtimeEnabledOverloadedVoidMethod", TestObjectV 8Internal::runtimeEnabledOverloadedVoidMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
12198 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, runtimeEnabledOverloadedVoidMethodM ethodConfiguration); 12198 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, runtimeEnabledOverloadedVoidMethodM ethodConfiguration);
12199 } 12199 }
12200 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa dedVoidMethodMethodConfiguration = {"partiallyRuntimeEnabledOverloadedVoidMethod ", TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodCallba ck, 0, TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLe ngth(), v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype}; 12200 const V8DOMConfiguration::MethodConfiguration partiallyRuntimeEnabledOverloa dedVoidMethodMethodConfiguration = {"partiallyRuntimeEnabledOverloadedVoidMethod ", TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodCallba ck, 0, TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLe ngth(), v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype};
12201 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp eTemplate, interfaceTemplate, signature, partiallyRuntimeEnabledOverloadedVoidMe thodMethodConfiguration); 12201 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, prototyp eTemplate, interfaceTemplate, signature, partiallyRuntimeEnabledOverloadedVoidMe thodMethodConfiguration);
12202 } 12202 }
12203 12203
12204 void V8TestObject::installFeatureName(ScriptState* scriptState, v8::Local<v8::Ob ject> instance) 12204 void V8TestObject::installFeatureName(ScriptState* scriptState, v8::Local<v8::Ob ject> instance)
12205 { 12205 {
12206 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestObject::wrapperTyp eInfo.domTemplate(scriptState->isolate(), scriptState->world()); 12206 v8::Local<v8::FunctionTemplate> interfaceTemplate = V8TestObject::wrapperTyp eInfo.domTemplate(scriptState->isolate(), scriptState->world());
12207 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate (), interfaceTemplate); 12207 v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate (), interfaceTemplate);
12208 ALLOW_UNUSED_LOCAL(signature); 12208 ALLOW_UNUSED_LOCAL(signature);
12209 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte xt()); 12209 V8PerContextData* perContextData = V8PerContextData::from(scriptState->conte xt());
12210 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestOb ject::wrapperTypeInfo); 12210 v8::Local<v8::Object> prototype = perContextData->prototypeForType(&V8TestOb ject::wrapperTypeInfo);
12211 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stObject::wrapperTypeInfo); 12211 v8::Local<v8::Function> interface = perContextData->constructorForType(&V8Te stObject::wrapperTypeInfo);
12212 ALLOW_UNUSED_LOCAL(interface); 12212 ALLOW_UNUSED_LOCAL(interface);
12213 const V8DOMConfiguration::AccessorConfiguration accessororiginTrialEnabledLo ngAttributeConfiguration = \ 12213 const V8DOMConfiguration::AccessorConfiguration accessororiginTrialEnabledLo ngAttributeConfiguration = \
12214 {"originTrialEnabledLongAttribute", TestObjectV8Internal::originTrialEna bledLongAttributeAttributeGetterCallback, TestObjectV8Internal::originTrialEnabl edLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder}; 12214 {"originTrialEnabledLongAttribute", TestObjectV8Internal::originTrialEna bledLongAttributeAttributeGetterCallback, TestObjectV8Internal::originTrialEnabl edLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder};
12215 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessororiginTrialEnabledLongA ttributeConfiguration); 12215 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessororiginTrialEnabledLongA ttributeConfiguration);
12216 const V8DOMConfiguration::AccessorConfiguration accessorunscopeableOriginTri alEnabledLongAttributeConfiguration = \ 12216 const V8DOMConfiguration::AccessorConfiguration accessorunscopableOriginTria lEnabledLongAttributeConfiguration = \
12217 {"unscopeableOriginTrialEnabledLongAttribute", TestObjectV8Internal::uns copeableOriginTrialEnabledLongAttributeAttributeGetterCallback, TestObjectV8Inte rnal::unscopeableOriginTrialEnabledLongAttributeAttributeSetterCallback, 0, 0, 0 , v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check Holder}; 12217 {"unscopableOriginTrialEnabledLongAttribute", TestObjectV8Internal::unsc opableOriginTrialEnabledLongAttributeAttributeGetterCallback, TestObjectV8Intern al::unscopableOriginTrialEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der};
12218 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorunscopeableOriginTrialE nabledLongAttributeConfiguration); 12218 V8DOMConfiguration::installAccessor(scriptState->isolate(), scriptState->wor ld(), instance, prototype, interface, signature, accessorunscopableOriginTrialEn abledLongAttributeConfiguration);
12219 const V8DOMConfiguration::MethodConfiguration methodOrigintrialenabledvoidme thodConfiguration = {"originTrialEnabledVoidMethod", TestObjectV8Internal::origi nTrialEnabledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype}; 12219 const V8DOMConfiguration::MethodConfiguration methodOrigintrialenabledvoidme thodConfiguration = {"originTrialEnabledVoidMethod", TestObjectV8Internal::origi nTrialEnabledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnPrototype};
12220 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodOrigintrialenabledvoidmetho dConfiguration); 12220 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodOrigintrialenabledvoidmetho dConfiguration);
12221 const V8DOMConfiguration::MethodConfiguration methodPerworldbindingsorigintr ialenabledvoidmethodConfiguration = {"perWorldBindingsOriginTrialEnabledVoidMeth od", TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodCal lback, TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodC allbackForMainWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype}; 12221 const V8DOMConfiguration::MethodConfiguration methodPerworldbindingsorigintr ialenabledvoidmethodConfiguration = {"perWorldBindingsOriginTrialEnabledVoidMeth od", TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodCal lback, TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodC allbackForMainWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype};
12222 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPerworldbindingsorigintrial enabledvoidmethodConfiguration); 12222 V8DOMConfiguration::installMethod(scriptState->isolate(), scriptState->world (), instance, prototype, interface, signature, methodPerworldbindingsorigintrial enabledvoidmethodConfiguration);
12223 } 12223 }
12224 12224
12225 void V8TestObject::installFeatureName(ScriptState* scriptState) 12225 void V8TestObject::installFeatureName(ScriptState* scriptState)
12226 { 12226 {
12227 installFeatureName(scriptState, v8::Local<v8::Object>()); 12227 installFeatureName(scriptState, v8::Local<v8::Object>());
12228 } 12228 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
12292 12292
12293 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8 ::Value> value) 12293 TestObject* V8TestObject::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8 ::Value> value)
12294 { 12294 {
12295 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 12295 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
12296 } 12296 }
12297 12297
12298 void V8TestObject::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> con text, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::L ocal<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTem plate) 12298 void V8TestObject::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> con text, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::L ocal<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTem plate)
12299 { 12299 {
12300 v8::Isolate* isolate = context->GetIsolate(); 12300 v8::Isolate* isolate = context->GetIsolate();
12301 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); 12301 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate));
12302 v8::Local<v8::Object> unscopeables; 12302 v8::Local<v8::Object> unscopables;
12303 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol ))) 12303 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol )))
12304 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalC hecked().As<v8::Object>(); 12304 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalCh ecked().As<v8::Object>();
12305 else 12305 else
12306 unscopeables = v8::Object::New(isolate); 12306 unscopables = v8::Object::New(isolate);
12307 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab leLongAttribute"), v8::True(isolate)).FromJust(); 12307 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable LongAttribute"), v8::True(isolate)).FromJust();
12308 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab leOriginTrialEnabledLongAttribute"), v8::True(isolate)).FromJust(); 12308 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable OriginTrialEnabledLongAttribute"), v8::True(isolate)).FromJust();
12309 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12309 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12310 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unsco peableRuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 12310 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscop ableRuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
12311 } 12311 }
12312 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12312 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12313 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unsco peableRuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 12313 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscop ableRuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
12314 } 12314 }
12315 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "unscopeab leVoidMethod"), v8::True(isolate)).FromJust(); 12315 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable VoidMethod"), v8::True(isolate)).FromJust();
12316 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables ).FromJust(); 12316 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables) .FromJust();
12317 } 12317 }
12318 12318
12319 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc alFrame* frame, TestObject* holderImpl) 12319 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc alFrame* frame, TestObject* holderImpl)
12320 { 12320 {
12321 if (!frame) 12321 if (!frame)
12322 return false; 12322 return false;
12323 v8::HandleScope handleScope(toIsolate(frame)); 12323 v8::HandleScope handleScope(toIsolate(frame));
12324 ScriptForbiddenScope::AllowUserAgentScript script; 12324 ScriptForbiddenScope::AllowUserAgentScript script;
12325 ScriptState* scriptState = ScriptState::forWorld(frame, DOMWrapperWorld::pri vateScriptIsolatedWorld()); 12325 ScriptState* scriptState = ScriptState::forWorld(frame, DOMWrapperWorld::pri vateScriptIsolatedWorld());
12326 if (!scriptState) 12326 if (!scriptState)
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
12763 if (!scriptStateInUserScript) 12763 if (!scriptStateInUserScript)
12764 return false; 12764 return false;
12765 12765
12766 ScriptState::Scope scope(scriptState); 12766 ScriptState::Scope scope(scriptState);
12767 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12767 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12768 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12768 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12769 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12769 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12770 } 12770 }
12771 12771
12772 } // namespace blink 12772 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698