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

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

Issue 675693002: An API returning a Promise should not throw an exceptions [overload version] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 "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 6789 matching lines...) Expand 10 before | Expand all | Expand 10 after
6800 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6800 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
6801 } 6801 }
6802 6802
6803 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6803 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6804 { 6804 {
6805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6806 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6806 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6807 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6807 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6808 } 6808 }
6809 6809
6810 static void overloadedPromiseMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6811 {
6812 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6813 TestObject* impl = V8TestObject::toImpl(info.Holder());
6814 int arg;
6815 {
6816 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, toInt32(info[0], exce ptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
6817 }
6818 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value());
6819 }
6820
6821 static void overloadedPromiseMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6822 {
6823 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6824 TestObject* impl = V8TestObject::toImpl(info.Holder());
6825 V8StringResource<> arg;
6826 {
6827 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, info[0], exceptionSta te, info, ScriptState::current(info.GetIsolate()));
6828 }
6829 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value());
6830 }
6831
6832 static void overloadedPromiseMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6833 {
6834 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6835 switch (std::min(1, info.Length())) {
6836 case 1:
6837 if (info[0]->IsNumber()) {
6838 overloadedPromiseMethod1Method(info);
6839 return;
6840 }
6841 if (true) {
6842 overloadedPromiseMethod2Method(info);
6843 return;
6844 }
6845 if (true) {
6846 overloadedPromiseMethod1Method(info);
6847 return;
6848 }
6849 break;
6850 default:
6851 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6852 exceptionState.throwIfNeeded();
6853 return;
6854 }
6855 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6856 exceptionState.throwIfNeeded();
6857 }
6858
6859 static void overloadedPromiseMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6860 {
6861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6862 TestObjectV8Internal::overloadedPromiseMethodMethod(info);
6863 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6864 }
6865
6866 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6810 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6867 { 6811 {
6868 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6812 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
6869 if (UNLIKELY(info.Length() < 2)) { 6813 if (UNLIKELY(info.Length() < 2)) {
6870 setMinimumArityTypeError(exceptionState, 2, info.Length()); 6814 setMinimumArityTypeError(exceptionState, 2, info.Length());
6871 exceptionState.throwIfNeeded(); 6815 exceptionState.throwIfNeeded();
6872 return; 6816 return;
6873 } 6817 }
6874 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6818 TestObject* impl = V8TestObject::toImpl(info.Holder());
6875 V8StringResource<> stringArg; 6819 V8StringResource<> stringArg;
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
8090 exceptionState.throwIfNeeded(); 8034 exceptionState.throwIfNeeded();
8091 } 8035 }
8092 8036
8093 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 8037 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
8094 { 8038 {
8095 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8039 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8096 TestObjectV8Internal::overloadedMethodJMethod(info); 8040 TestObjectV8Internal::overloadedMethodJMethod(info);
8097 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8041 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8098 } 8042 }
8099 8043
8044 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8045 {
8046 TestObject* impl = V8TestObject::toImpl(info.Holder());
8047 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value());
8048 }
8049
8050 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8051 {
8052 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
8053 TestObject* impl = V8TestObject::toImpl(info.Holder());
8054 LocalDOMWindow* arg1;
8055 double arg2;
8056 {
8057 arg1 = toDOMWindow(info[0], info.GetIsolate());
8058 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
8059 }
8060 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
8061 }
8062
8063 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8064 {
8065 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
8066 TestObject* impl = V8TestObject::toImpl(info.Holder());
8067 Document* arg1;
8068 double arg2;
8069 {
8070 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
8071 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
8072 }
8073 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
8074 }
8075
8076 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
8077 {
8078 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
8079 switch (std::min(2, info.Length())) {
8080 case 0:
8081 if (true) {
8082 promiseOverloadMethod1Method(info);
8083 return;
8084 }
8085 break;
8086 case 2:
8087 if (V8Window::hasInstance(info[0], info.GetIsolate())) {
8088 promiseOverloadMethod2Method(info);
8089 return;
8090 }
8091 if (V8Document::hasInstance(info[0], info.GetIsolate())) {
8092 promiseOverloadMethod3Method(info);
8093 return;
8094 }
8095 break;
8096 default:
8097 if (info.Length() >= 0) {
8098 setArityTypeError(exceptionState, "[0, 2]", info.Length());
8099 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in fo.GetIsolate())).v8Value());
8100 return;
8101 }
8102 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8103 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G etIsolate())).v8Value());
8104 return;
8105 }
8106 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8107 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs olate())).v8Value());
8108 }
8109
8110 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
8111 {
8112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8113 TestObjectV8Internal::promiseOverloadMethodMethod(info);
8114 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8115 }
8116
8100 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 8117 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
8101 { 8118 {
8102 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8119 TestObject* impl = V8TestObject::toImpl(info.Holder());
8103 impl->overloadedPerWorldBindingsMethod(); 8120 impl->overloadedPerWorldBindingsMethod();
8104 } 8121 }
8105 8122
8106 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 8123 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
8107 { 8124 {
8108 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8125 TestObject* impl = V8TestObject::toImpl(info.Holder());
8109 impl->overloadedPerWorldBindingsMethod(); 8126 impl->overloadedPerWorldBindingsMethod();
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
10378 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts}, 10395 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts},
10379 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10396 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10380 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10397 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10381 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10398 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10382 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10399 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10383 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10400 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10384 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10401 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10385 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10402 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10386 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10403 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10387 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10404 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10388 {"overloadedPromiseMethod", TestObjectV8Internal::overloadedPromiseMethodMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10389 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, 10405 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts},
10390 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10406 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10391 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 10407 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
10392 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10408 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10393 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10409 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10394 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 10410 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
10395 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10411 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10396 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10412 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10397 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts}, 10413 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts},
10398 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfigurat ion::ExposedToAllScripts}, 10414 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfigurat ion::ExposedToAllScripts},
(...skipping 17 matching lines...) Expand all
10416 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10432 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10417 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10433 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10418 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10434 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10419 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10435 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10420 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10436 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10421 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10437 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10422 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10438 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10423 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10439 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10424 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10440 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10425 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10441 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10442 {"promiseOverloadMethod", TestObjectV8Internal::promiseOverloadMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10426 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 10443 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
10427 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10444 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10428 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10445 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10429 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts}, 10446 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts},
10430 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10447 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10431 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts}, 10448 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts},
10432 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10449 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10433 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts}, 10450 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts},
10434 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 10451 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
10435 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10452 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
11156 return false; 11173 return false;
11157 11174
11158 ScriptState::Scope scope(scriptState); 11175 ScriptState::Scope scope(scriptState);
11159 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11176 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11160 11177
11161 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11178 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11162 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11179 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11163 } 11180 }
11164 11181
11165 } // namespace blink 11182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698