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

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

Issue 968573004: [bindings] Support extended attribute '[CallWith=ScriptState ]' for getter/setter/deleter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@972153002
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 9471 matching lines...) Expand 10 before | Expand all | Expand 10 after
9482 exceptionState.throwIfNeeded(); 9482 exceptionState.throwIfNeeded();
9483 return; 9483 return;
9484 } 9484 }
9485 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9485 TestObject* impl = V8TestObject::toImpl(info.Holder());
9486 unsigned index; 9486 unsigned index;
9487 { 9487 {
9488 index = toUInt32(info[0], exceptionState); 9488 index = toUInt32(info[0], exceptionState);
9489 if (exceptionState.throwIfNeeded()) 9489 if (exceptionState.throwIfNeeded())
9490 return; 9490 return;
9491 } 9491 }
9492 v8SetReturnValue(info, impl->item(index).v8Value()); 9492 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9493 ScriptValue result = impl->item(scriptState, index);
9494 v8SetReturnValue(info, result.v8Value());
9493 } 9495 }
9494 9496
9495 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 9497 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9496 { 9498 {
9497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9498 TestObjectV8Internal::itemMethod(info); 9500 TestObjectV8Internal::itemMethod(info);
9499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9500 } 9502 }
9501 9503
9504 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
9505 {
9506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", " TestObject", info.Holder(), info.GetIsolate());
9507 if (UNLIKELY(info.Length() < 2)) {
9508 setMinimumArityTypeError(exceptionState, 2, info.Length());
9509 exceptionState.throwIfNeeded();
9510 return;
9511 }
9512 TestObject* impl = V8TestObject::toImpl(info.Holder());
9513 unsigned index;
9514 V8StringResource<> value;
9515 {
9516 index = toUInt32(info[0], exceptionState);
9517 if (exceptionState.throwIfNeeded())
9518 return;
9519 value = info[1];
9520 if (!value.prepare())
9521 return;
9522 }
9523 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9524 String result = impl->setItem(scriptState, index, value);
9525 v8SetReturnValueString(info, result, info.GetIsolate());
9526 }
9527
9528 static void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o)
9529 {
9530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9531 TestObjectV8Internal::setItemMethod(info);
9532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9533 }
9534
9502 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 9535 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
9503 { 9536 {
9504 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 9537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
9505 if (UNLIKELY(info.Length() < 1)) { 9538 if (UNLIKELY(info.Length() < 1)) {
9506 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9539 setMinimumArityTypeError(exceptionState, 1, info.Length());
9507 exceptionState.throwIfNeeded(); 9540 exceptionState.throwIfNeeded();
9508 return; 9541 return;
9509 } 9542 }
9510 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9543 TestObject* impl = V8TestObject::toImpl(info.Holder());
9511 unsigned clampUnsignedShortArg; 9544 unsigned clampUnsignedShortArg;
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
11700 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 11733 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
11701 { 11734 {
11702 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 11735 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
11703 TestObjectV8Internal::iteratorMethod(info); 11736 TestObjectV8Internal::iteratorMethod(info);
11704 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11705 } 11738 }
11706 11739
11707 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info) 11740 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info)
11708 { 11741 {
11709 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11742 TestObject* impl = V8TestObject::toImpl(info.Holder());
11710 ScriptValue result = impl->item(index); 11743 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11744 ScriptValue result = impl->item(scriptState, index);
11711 if (result.isEmpty()) 11745 if (result.isEmpty())
11712 return; 11746 return;
11713 v8SetReturnValue(info, result.v8Value()); 11747 v8SetReturnValue(info, result.v8Value());
11714 } 11748 }
11715 11749
11716 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info) 11750 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info)
11717 { 11751 {
11718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); 11752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
11719 TestObjectV8Internal::indexedPropertyGetter(index, info); 11753 TestObjectV8Internal::indexedPropertyGetter(index, info);
11720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11721 } 11755 }
11722 11756
11757 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
11758 {
11759 TestObject* impl = V8TestObject::toImpl(info.Holder());
11760 V8StringResource<> propertyValue = v8Value;
11761 if (!propertyValue.prepare())
11762 return;
11763 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11764 bool result = impl->setItem(scriptState, index, propertyValue);
11765 if (!result)
11766 return;
11767 v8SetReturnValue(info, v8Value);
11768 }
11769
11770 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
11771 {
11772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
11773 TestObjectV8Internal::indexedPropertySetter(index, v8Value, info);
11774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11775 }
11776
11777 static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf o<v8::Boolean>& info)
11778 {
11779 TestObject* impl = V8TestObject::toImpl(info.Holder());
11780 ExceptionState exceptionState(ExceptionState::IndexedDeletionContext, "TestO bject", info.Holder(), info.GetIsolate());
11781 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11782 DeleteResult result = impl->anonymousIndexedDeleter(scriptState, index, exce ptionState);
11783 if (exceptionState.throwIfNeeded())
11784 return;
11785 if (result != DeleteUnknownProperty)
11786 return v8SetReturnValueBool(info, result == DeleteSuccess);
11787 }
11788
11789 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal lbackInfo<v8::Boolean>& info)
11790 {
11791 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
11792 TestObjectV8Internal::indexedPropertyDeleter(index, info);
11793 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11794 }
11795
11723 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall backInfo<v8::Value>& info) 11796 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall backInfo<v8::Value>& info)
11724 { 11797 {
11725 if (!name->IsString()) 11798 if (!name->IsString())
11726 return; 11799 return;
11727 auto nameString = name.As<v8::String>(); 11800 auto nameString = name.As<v8::String>();
11728 if (info.Holder()->HasRealNamedProperty(nameString)) 11801 if (info.Holder()->HasRealNamedProperty(nameString))
11729 return; 11802 return;
11730 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty ()) 11803 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty ())
11731 return; 11804 return;
11732 11805
11733 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11806 TestObject* impl = V8TestObject::toImpl(info.Holder());
11734 AtomicString propertyName = toCoreAtomicString(nameString); 11807 AtomicString propertyName = toCoreAtomicString(nameString);
11735 ScriptValue result = impl->anonymousNamedGetter(propertyName); 11808 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11809 ScriptValue result = impl->anonymousNamedGetter(scriptState, propertyName);
11736 if (result.isEmpty()) 11810 if (result.isEmpty())
11737 return; 11811 return;
11738 v8SetReturnValue(info, result.v8Value()); 11812 v8SetReturnValue(info, result.v8Value());
11739 } 11813 }
11740 11814
11741 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop ertyCallbackInfo<v8::Value>& info) 11815 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop ertyCallbackInfo<v8::Value>& info)
11742 { 11816 {
11743 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 11817 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11744 TestObjectV8Internal::namedPropertyGetter(name, info); 11818 TestObjectV8Internal::namedPropertyGetter(name, info);
11745 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11819 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11746 } 11820 }
11747 11821
11822 static void namedPropertySetter(v8::Local<v8::Name> name, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
11823 {
11824 if (!name->IsString())
11825 return;
11826 auto nameString = name.As<v8::String>();
11827 if (info.Holder()->HasRealNamedProperty(nameString))
11828 return;
11829 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(nameString).IsEmpty ())
11830 return;
11831
11832 TestObject* impl = V8TestObject::toImpl(info.Holder());
11833 V8StringResource<> propertyName(nameString);
11834 if (!propertyName.prepare())
11835 return;
11836 V8StringResource<> propertyValue = v8Value;
11837 if (!propertyValue.prepare())
11838 return;
11839 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11840 bool result = impl->anonymousNamedSetter(scriptState, propertyName, property Value);
11841 if (!result)
11842 return;
11843 v8SetReturnValue(info, v8Value);
11844 }
11845
11846 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
11847 {
11848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11849 TestObjectV8Internal::namedPropertySetter(name, v8Value, info);
11850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11851 }
11852
11748 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb ackInfo<v8::Integer>& info) 11853 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb ackInfo<v8::Integer>& info)
11749 { 11854 {
11750 if (!name->IsString()) 11855 if (!name->IsString())
11751 return; 11856 return;
11752 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11857 TestObject* impl = V8TestObject::toImpl(info.Holder());
11753 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); 11858 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
11754 v8::String::Utf8Value namedProperty(name); 11859 v8::String::Utf8Value namedProperty(name);
11755 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestObject", info.Holder(), info.GetIsolate()); 11860 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestObject", info.Holder(), info.GetIsolate());
11756 bool result = impl->namedPropertyQuery(propertyName, exceptionState); 11861 bool result = impl->namedPropertyQuery(propertyName, exceptionState);
11757 if (exceptionState.throwIfNeeded()) 11862 if (exceptionState.throwIfNeeded())
11758 return; 11863 return;
11759 if (!result) 11864 if (!result)
11760 return; 11865 return;
11761 v8SetReturnValueInt(info, v8::None); 11866 v8SetReturnValueInt(info, v8::None);
11762 } 11867 }
11763 11868
11764 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info) 11869 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info)
11765 { 11870 {
11766 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 11871 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11767 TestObjectV8Internal::namedPropertyQuery(name, info); 11872 TestObjectV8Internal::namedPropertyQuery(name, info);
11768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11873 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11769 } 11874 }
11770 11875
11876 static void namedPropertyDeleter(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Boolean>& info)
11877 {
11878 if (!name->IsString())
11879 return;
11880 TestObject* impl = V8TestObject::toImpl(info.Holder());
11881 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
11882 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11883 DeleteResult result = impl->anonymousNamedDeleter(scriptState, propertyName) ;
11884 if (result != DeleteUnknownProperty)
11885 return v8SetReturnValueBool(info, result == DeleteSuccess);
11886 }
11887
11888 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro pertyCallbackInfo<v8::Boolean>& info)
11889 {
11890 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
11891 TestObjectV8Internal::namedPropertyDeleter(name, info);
11892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11893 }
11894
11771 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo) 11895 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
11772 { 11896 {
11773 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11897 TestObject* impl = V8TestObject::toImpl(info.Holder());
11774 Vector<String> names; 11898 Vector<String> names;
11775 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestObjec t", info.Holder(), info.GetIsolate()); 11899 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestObjec t", info.Holder(), info.GetIsolate());
11776 impl->namedPropertyEnumerator(names, exceptionState); 11900 impl->namedPropertyEnumerator(names, exceptionState);
11777 if (exceptionState.throwIfNeeded()) 11901 if (exceptionState.throwIfNeeded())
11778 return; 11902 return;
11779 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( )); 11903 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( ));
11780 for (size_t i = 0; i < names.size(); ++i) 11904 for (size_t i = 0; i < names.size(); ++i)
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
12111 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12235 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12112 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12236 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12113 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12237 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12114 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12238 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12115 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12239 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12116 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12240 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12117 {"overloadedMethodL", TestObjectV8Internal::overloadedMethodLMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12241 {"overloadedMethodL", TestObjectV8Internal::overloadedMethodLMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12118 {"promiseOverloadMethod", TestObjectV8Internal::promiseOverloadMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12242 {"promiseOverloadMethod", TestObjectV8Internal::promiseOverloadMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12119 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12243 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12120 {"item", TestObjectV8Internal::itemMethodCallback, 0, 1, V8DOMConfiguration: :ExposedToAllScripts}, 12244 {"item", TestObjectV8Internal::itemMethodCallback, 0, 1, V8DOMConfiguration: :ExposedToAllScripts},
12245 {"setItem", TestObjectV8Internal::setItemMethodCallback, 0, 2, V8DOMConfigur ation::ExposedToAllScripts},
12121 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12246 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12122 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12247 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12123 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts}, 12248 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts},
12124 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12249 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12125 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts}, 12250 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts},
12126 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12251 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12127 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts}, 12252 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts},
12128 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 12253 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
12129 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12254 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12130 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 12255 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
12271 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation"); 12396 static_assert(0x1abc == TestObject::CONST_VALUE_14, "the value of TestObject _CONST_VALUE_14 does not match with implementation");
12272 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation"); 12397 static_assert(010 == TestObject::CONST_VALUE_15, "the value of TestObject_CO NST_VALUE_15 does not match with implementation");
12273 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation"); 12398 static_assert(-010 == TestObject::CONST_VALUE_16, "the value of TestObject_C ONST_VALUE_16 does not match with implementation");
12274 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation"); 12399 static_assert(-0x1A == TestObject::CONST_VALUE_16, "the value of TestObject_ CONST_VALUE_16 does not match with implementation");
12275 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation"); 12400 static_assert(-0X1a == TestObject::CONST_VALUE_17, "the value of TestObject_ CONST_VALUE_17 does not match with implementation");
12276 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation"); 12401 static_assert(1 == TestObject::DEPRECATED_CONSTANT, "the value of TestObject _DEPRECATED_CONSTANT does not match with implementation");
12277 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation"); 12402 static_assert(1 == TestObject::MEASURED_CONSTANT, "the value of TestObject_M EASURED_CONSTANT does not match with implementation");
12278 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation"); 12403 static_assert(1 == TestObject::FEATURE_ENABLED_CONST, "the value of TestObje ct_FEATURE_ENABLED_CONST does not match with implementation");
12279 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation"); 12404 static_assert(1 == TestObject::CONST_IMPL, "the value of TestObject_CONST_IM PL does not match with implementation");
12280 { 12405 {
12281 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, 0, 0, 0, indexedPropertyEnumerator<TestObject>); 12406 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>);
12282 functionTemplate->InstanceTemplate()->SetHandler(config); 12407 functionTemplate->InstanceTemplate()->SetHandler(config);
12283 } 12408 }
12284 { 12409 {
12285 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, 0, TestObjectV8Internal::namedPropertyQueryCallback, 0, TestObjectV8Internal::namedPropertyEnumeratorCallback); 12410 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback);
12286 functionTemplate->InstanceTemplate()->SetHandler(config); 12411 functionTemplate->InstanceTemplate()->SetHandler(config);
12287 } 12412 }
12288 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 12413 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
12289 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 12414 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
12290 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = { 12415 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = {
12291 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts, 12416 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts,
12292 }; 12417 };
12293 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodMethodConfiguration); 12418 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodMethodConfiguration);
12294 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = { 12419 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo nfiguration = {
12295 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 12420 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
12881 return false; 13006 return false;
12882 13007
12883 ScriptState::Scope scope(scriptState); 13008 ScriptState::Scope scope(scriptState);
12884 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13009 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12885 13010
12886 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13011 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12887 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13012 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12888 } 13013 }
12889 13014
12890 } // namespace blink 13015 } // 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