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

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

Issue 975673002: [bindings] v8_interface.py should support 'any' or 'object' in getter/setter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing. Created 5 years, 9 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
« no previous file with comments | « Source/bindings/tests/idls/core/TestObject.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 9430 matching lines...) Expand 10 before | Expand all | Expand 10 after
9441 return; 9441 return;
9442 } 9442 }
9443 9443
9444 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 9444 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
9445 { 9445 {
9446 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9446 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9447 TestObjectV8Internal::overloadedStaticMethodMethod(info); 9447 TestObjectV8Internal::overloadedStaticMethodMethod(info);
9448 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9448 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9449 } 9449 }
9450 9450
9451 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
9452 {
9453 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "Tes tObject", info.Holder(), info.GetIsolate());
9454 if (UNLIKELY(info.Length() < 1)) {
9455 setMinimumArityTypeError(exceptionState, 1, info.Length());
9456 exceptionState.throwIfNeeded();
9457 return;
9458 }
9459 TestObject* impl = V8TestObject::toImpl(info.Holder());
9460 unsigned index;
9461 {
9462 index = toUInt32(info[0], exceptionState);
9463 if (exceptionState.throwIfNeeded())
9464 return;
9465 }
9466 v8SetReturnValue(info, impl->item(index).v8Value());
9467 }
9468
9469 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9470 {
9471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9472 TestObjectV8Internal::itemMethod(info);
9473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9474 }
9475
9451 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 9476 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
9452 { 9477 {
9453 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 9478 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
9454 if (UNLIKELY(info.Length() < 1)) { 9479 if (UNLIKELY(info.Length() < 1)) {
9455 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9480 setMinimumArityTypeError(exceptionState, 1, info.Length());
9456 exceptionState.throwIfNeeded(); 9481 exceptionState.throwIfNeeded();
9457 return; 9482 return;
9458 } 9483 }
9459 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9484 TestObject* impl = V8TestObject::toImpl(info.Holder());
9460 unsigned clampUnsignedShortArg; 9485 unsigned clampUnsignedShortArg;
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
11646 v8SetReturnValue(info, result.release()); 11671 v8SetReturnValue(info, result.release());
11647 } 11672 }
11648 11673
11649 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 11674 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
11650 { 11675 {
11651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 11676 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
11652 TestObjectV8Internal::iteratorMethod(info); 11677 TestObjectV8Internal::iteratorMethod(info);
11653 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11654 } 11679 }
11655 11680
11681 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info)
11682 {
11683 TestObject* impl = V8TestObject::toImpl(info.Holder());
11684 ScriptValue result = impl->item(index);
11685 if (result.isEmpty())
11686 return;
11687 v8SetReturnValue(info, result.v8Value());
11688 }
11689
11690 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info)
11691 {
11692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
11693 TestObjectV8Internal::indexedPropertyGetter(index, info);
11694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11695 }
11696
11697 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall backInfo<v8::Value>& info)
11698 {
11699 if (!name->IsString())
11700 return;
11701 auto nameString = name.As<v8::String>();
11702 if (info.Holder()->HasRealNamedProperty(nameString))
11703 return;
11704 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty ())
11705 return;
11706
11707 TestObject* impl = V8TestObject::toImpl(info.Holder());
11708 AtomicString propertyName = toCoreAtomicString(nameString);
11709 ScriptValue result = impl->anonymousNamedGetter(propertyName);
11710 if (result.isEmpty())
11711 return;
11712 v8SetReturnValue(info, result.v8Value());
11713 }
11714
11715 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop ertyCallbackInfo<v8::Value>& info)
11716 {
11717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11718 TestObjectV8Internal::namedPropertyGetter(name, info);
11719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11720 }
11721
11722 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb ackInfo<v8::Integer>& info)
11723 {
11724 if (!name->IsString())
11725 return;
11726 TestObject* impl = V8TestObject::toImpl(info.Holder());
11727 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
11728 v8::String::Utf8Value namedProperty(name);
11729 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestObject", info.Holder(), info.GetIsolate());
11730 bool result = impl->namedPropertyQuery(propertyName, exceptionState);
11731 if (exceptionState.throwIfNeeded())
11732 return;
11733 if (!result)
11734 return;
11735 v8SetReturnValueInt(info, v8::None);
11736 }
11737
11738 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info)
11739 {
11740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11741 TestObjectV8Internal::namedPropertyQuery(name, info);
11742 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11743 }
11744
11745 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
11746 {
11747 TestObject* impl = V8TestObject::toImpl(info.Holder());
11748 Vector<String> names;
11749 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestObjec t", info.Holder(), info.GetIsolate());
11750 impl->namedPropertyEnumerator(names, exceptionState);
11751 if (exceptionState.throwIfNeeded())
11752 return;
11753 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( ));
11754 for (size_t i = 0; i < names.size(); ++i)
11755 v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIs olate(), names[i]));
11756 v8SetReturnValue(info, v8names);
11757 }
11758
11759 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
11760 {
11761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11762 TestObjectV8Internal::namedPropertyEnumerator(info);
11763 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11764 }
11765
11656 } // namespace TestObjectV8Internal 11766 } // namespace TestObjectV8Internal
11657 11767
11658 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 11768 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
11659 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 11769 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
11660 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance}, 11770 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
11661 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 11771 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11662 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance}, 11772 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
11663 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 11773 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11664 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} , 11774 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} ,
11665 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 11775 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
11974 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12084 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11975 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12085 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11976 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12086 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11977 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12087 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11978 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12088 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11979 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12089 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11980 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12090 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11981 {"overloadedMethodL", TestObjectV8Internal::overloadedMethodLMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12091 {"overloadedMethodL", TestObjectV8Internal::overloadedMethodLMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11982 {"promiseOverloadMethod", TestObjectV8Internal::promiseOverloadMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12092 {"promiseOverloadMethod", TestObjectV8Internal::promiseOverloadMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11983 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12093 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12094 {"item", TestObjectV8Internal::itemMethodCallback, 0, 1, V8DOMConfiguration: :ExposedToAllScripts},
11984 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12095 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11985 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12096 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11986 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts}, 12097 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts},
11987 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12098 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11988 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts}, 12099 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts},
11989 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12100 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11990 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts}, 12101 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts},
11991 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 12102 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
11992 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12103 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
11993 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 12104 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
12133 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C ONST_VALUE_13 does not match with implementation"); 12244 static_assert(0X20 == TestObject::CONST_VALUE_13, "the value of TestObject_C ONST_VALUE_13 does not match with implementation");
12134 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation"); 12245 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation");
12135 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation"); 12246 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation");
12136 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation"); 12247 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation");
12137 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation"); 12248 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation");
12138 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation"); 12249 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation");
12139 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation"); 12250 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation");
12140 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation"); 12251 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation");
12141 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation"); 12252 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation");
12142 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation"); 12253 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
12254 {
12255 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObject>);
12256 functionTemplate->InstanceTemplate()->SetHandler(config);
12257 }
12258 {
12259 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, 0, TestObjectV8Internal::namedPropertyQueryCallback, 0, TestObjectV8Internal::namedPropertyEnumeratorCallback);
12260 functionTemplate->InstanceTemplate()->SetHandler(config);
12261 }
12143 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 12262 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
12144 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 12263 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
12145 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = { 12264 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = {
12146 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts, 12265 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts,
12147 }; 12266 };
12148 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodMethodConfiguration); 12267 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodMethodConfiguration);
12149 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = { 12268 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = {
12150 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 12269 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
12151 }; 12270 };
12152 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, overloadedStaticMethodMethodConfiguration); 12271 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, overloadedStaticMethodMethodConfiguration);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
12738 return false; 12857 return false;
12739 12858
12740 ScriptState::Scope scope(scriptState); 12859 ScriptState::Scope scope(scriptState);
12741 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12860 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12742 12861
12743 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12862 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12744 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12863 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12745 } 12864 }
12746 12865
12747 } // namespace blink 12866 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/core/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698