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

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

Issue 1035023005: [bindings] Support CallWith=ThisValue for generic interface methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 9949 matching lines...) Expand 10 before | Expand all | Expand 10 after
9960 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate())); 9960 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()));
9961 } 9961 }
9962 9962
9963 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 9963 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
9964 { 9964 {
9965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9966 TestObjectV8Internal::callWithActiveWindowScriptWindowMethod(info); 9966 TestObjectV8Internal::callWithActiveWindowScriptWindowMethod(info);
9967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9968 } 9968 }
9969 9969
9970 static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
9971 {
9972 TestObject* impl = V8TestObject::toImpl(info.Holder());
9973 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9974 impl->callWithThisValue(ScriptValue(scriptState, info.This()));
haraken 2015/03/31 09:35:21 Help me understand: Where is the 'ScriptValue(scri
9975 }
9976
9977 static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
9978 {
9979 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9980 TestObjectV8Internal::callWithThisValueMethod(info);
9981 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9982 }
9983
9970 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 9984 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
9971 { 9985 {
9972 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9986 TestObject* impl = V8TestObject::toImpl(info.Holder());
9973 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeVoidMethod(exceptionState), exceptionState)) { 9987 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeVoidMethod(exceptionState), exceptionState)) {
9974 v8SetReturnValueNull(info); 9988 v8SetReturnValueNull(info);
9975 exceptionState.throwIfNeeded(); 9989 exceptionState.throwIfNeeded();
9976 return; 9990 return;
9977 } 9991 }
9978 impl->checkSecurityForNodeVoidMethod(); 9992 impl->checkSecurityForNodeVoidMethod();
9979 } 9993 }
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after
12470 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12484 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12471 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 12485 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
12472 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts }, 12486 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts },
12473 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12487 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12474 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12488 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12475 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12489 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12476 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts}, 12490 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts},
12477 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12491 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12478 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12492 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12479 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12493 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12494 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12480 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12495 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12481 #if ENABLE(CONDITION) 12496 #if ENABLE(CONDITION)
12482 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12497 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12483 #endif // ENABLE(CONDITION) 12498 #endif // ENABLE(CONDITION)
12484 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12499 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12485 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12500 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12486 #if ENABLE(CONDITION) 12501 #if ENABLE(CONDITION)
12487 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts}, 12502 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts},
12488 #endif // ENABLE(CONDITION) 12503 #endif // ENABLE(CONDITION)
12489 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12504 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
13228 return false; 13243 return false;
13229 13244
13230 ScriptState::Scope scope(scriptState); 13245 ScriptState::Scope scope(scriptState);
13231 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13246 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13232 13247
13233 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13248 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13234 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13249 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13235 } 13250 }
13236 13251
13237 } // namespace blink 13252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698