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

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

Issue 1186823014: [bindings] Eliminate custom bindings for DeviceOrientationEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 11143 matching lines...) Expand 10 before | Expand all | Expand 10 after
11154 v8SetReturnValue(info, result.release()); 11154 v8SetReturnValue(info, result.release());
11155 } 11155 }
11156 11156
11157 static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 11157 static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
11158 { 11158 {
11159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 11159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
11160 TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethod(info); 11160 TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethod(info);
11161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 11161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11162 } 11162 }
11163 11163
11164 static void methodWithRawPrimitivesForDefaultUndefinedArgumentsMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
11165 {
11166 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithR awPrimitivesForDefaultUndefinedArguments", "TestObject", info.Holder(), info.Get Isolate());
11167 if (UNLIKELY(info.Length() < 1)) {
11168 setMinimumArityTypeError(exceptionState, 1, info.Length());
11169 exceptionState.throwIfNeeded();
11170 return;
11171 }
11172 TestObject* impl = V8TestObject::toImpl(info.Holder());
11173 double firstArg;
11174 int secondArg;
11175 double* optionalDoubleArg = nullptr;
11176 double optionalDoubleArgValue;
11177 {
11178 firstArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState );
11179 if (exceptionState.throwIfNeeded())
11180 return;
11181 if (UNLIKELY(info.Length() <= 1)) {
11182 impl->methodWithRawPrimitivesForDefaultUndefinedArguments(firstArg);
11183 return;
11184 }
11185 secondArg = toInt32(info.GetIsolate(), info[1], NormalConversion, except ionState);
11186 if (exceptionState.throwIfNeeded())
11187 return;
11188 if (!isUndefinedOrNull(info[2])) {
11189 optionalDoubleArgValue = toRestrictedDouble(info.GetIsolate(), info[ 2], exceptionState);
11190 optionalDoubleArg = &optionalDoubleArgValue;
11191 if (exceptionState.throwIfNeeded())
11192 return;
11193 }
11194 }
11195 impl->methodWithRawPrimitivesForDefaultUndefinedArguments(firstArg, secondAr g, optionalDoubleArg);
11196 }
11197
11198 static void methodWithRawPrimitivesForDefaultUndefinedArgumentsMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
11199 {
11200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
11201 TestObjectV8Internal::methodWithRawPrimitivesForDefaultUndefinedArgumentsMet hod(info);
11202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
11203 }
11204
11164 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 11205 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
11165 { 11206 {
11166 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 11207 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
11167 if (UNLIKELY(info.Length() < 1)) { 11208 if (UNLIKELY(info.Length() < 1)) {
11168 setMinimumArityTypeError(exceptionState, 1, info.Length()); 11209 setMinimumArityTypeError(exceptionState, 1, info.Length());
11169 exceptionState.throwIfNeeded(); 11210 exceptionState.throwIfNeeded();
11170 return; 11211 return;
11171 } 11212 }
11172 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11213 TestObject* impl = V8TestObject::toImpl(info.Holder());
11173 int longArg; 11214 int longArg;
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after
12821 {"postMessage", TestObjectV8Internal::postMessageMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts}, 12862 {"postMessage", TestObjectV8Internal::postMessageMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts},
12822 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12863 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12823 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12864 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12824 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12865 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12825 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12866 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12826 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts}, 12867 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts},
12827 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts}, 12868 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts},
12828 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12869 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12829 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts}, 12870 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts},
12830 {"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExc eptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts}, 12871 {"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExc eptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts},
12872 {"methodWithRawPrimitivesForDefaultUndefinedArguments", TestObjectV8Internal ::methodWithRawPrimitivesForDefaultUndefinedArgumentsMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts},
12831 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 12873 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
12832 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts}, 12874 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts},
12833 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts}, 12875 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts},
12834 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12876 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12835 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12877 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12836 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts}, 12878 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts},
12837 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, V8DOMConf iguration::ExposedToAllScripts}, 12879 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, V8DOMConf iguration::ExposedToAllScripts},
12838 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 12880 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
12839 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV 8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12881 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV 8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12840 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 12882 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
13590 ScriptState::Scope scope(scriptState); 13632 ScriptState::Scope scope(scriptState);
13591 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13633 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13592 if (holder.IsEmpty()) 13634 if (holder.IsEmpty())
13593 return false; 13635 return false;
13594 13636
13595 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13637 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13596 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13638 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13597 } 13639 }
13598 13640
13599 } // namespace blink 13641 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698