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

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: Introducing |TreatUndefinedAs=Null| 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 10043 matching lines...) Expand 10 before | Expand all | Expand 10 after
10054 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 10054 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
10055 } 10055 }
10056 10056
10057 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 10057 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10058 { 10058 {
10059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10060 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 10060 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
10061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10062 } 10062 }
10063 10063
10064 static void voidMethodTreadUndefinedAsNullMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
10065 {
10066 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT readUndefinedAsNull", "TestObject", info.Holder(), info.GetIsolate());
10067 if (UNLIKELY(info.Length() < 1)) {
10068 setMinimumArityTypeError(exceptionState, 1, info.Length());
10069 exceptionState.throwIfNeeded();
10070 return;
10071 }
10072 TestObject* impl = V8TestObject::toImpl(info.Holder());
10073 double firstArg;
10074 int secondArg;
10075 double* optionalDoubleArg = nullptr;
10076 double optionalDoubleArgValue;
10077 {
10078 firstArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState );
10079 if (exceptionState.throwIfNeeded())
10080 return;
10081 if (UNLIKELY(info.Length() <= 1)) {
10082 impl->voidMethodTreadUndefinedAsNull(firstArg);
10083 return;
10084 }
10085 secondArg = toInt32(info.GetIsolate(), info[1], NormalConversion, except ionState);
10086 if (exceptionState.throwIfNeeded())
10087 return;
10088 if (!isUndefinedOrNull(info[2])) {
10089 optionalDoubleArgValue = toRestrictedDouble(info.GetIsolate(), info[ 2], exceptionState);
10090 optionalDoubleArg = &optionalDoubleArgValue;
10091 if (exceptionState.throwIfNeeded())
10092 return;
10093 }
10094 }
10095 impl->voidMethodTreadUndefinedAsNull(firstArg, secondArg, optionalDoubleArg) ;
haraken 2015/06/17 16:01:42 Would you help me understand why we need to pass a
10096 }
10097
10098 static void voidMethodTreadUndefinedAsNullMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
10099 {
10100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10101 TestObjectV8Internal::voidMethodTreadUndefinedAsNullMethod(info);
10102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10103 }
10104
10064 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 10105 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
10065 { 10106 {
10066 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10107 TestObject* impl = V8TestObject::toImpl(info.Holder());
10067 impl->activityLoggingAccessForAllWorldsMethod(); 10108 impl->activityLoggingAccessForAllWorldsMethod();
10068 } 10109 }
10069 10110
10070 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 10111 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
10071 { 10112 {
10072 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10113 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10073 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 10114 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
12777 {"setItem", TestObjectV8Internal::setItemMethodCallback, 0, 2, V8DOMConfigur ation::ExposedToAllScripts}, 12818 {"setItem", TestObjectV8Internal::setItemMethodCallback, 0, 2, V8DOMConfigur ation::ExposedToAllScripts},
12778 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12819 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12779 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12820 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12780 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts}, 12821 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0, V8DOMConfigur ation::ExposedToAllScripts},
12781 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12822 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12782 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts}, 12823 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts},
12783 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12824 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12784 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts}, 12825 {"voidMethodTreatNullAsEmptyStringStringArg", TestObjectV8Internal::voidMeth odTreatNullAsEmptyStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts},
12785 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 12826 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
12786 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12827 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12828 {"voidMethodTreadUndefinedAsNull", TestObjectV8Internal::voidMethodTreadUnde finedAsNullMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12787 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 12829 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
12788 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts }, 12830 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts },
12789 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12831 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12790 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12832 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12791 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12833 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12792 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts}, 12834 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts},
12793 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12835 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12794 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12836 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12795 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12837 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12796 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12838 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 793 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