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

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: Binding patch alone. 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
« 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 9941 matching lines...) Expand 10 before | Expand all | Expand 10 after
9952 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate())); 9952 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()));
9953 } 9953 }
9954 9954
9955 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 9955 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
9956 { 9956 {
9957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9958 TestObjectV8Internal::callWithActiveWindowScriptWindowMethod(info); 9958 TestObjectV8Internal::callWithActiveWindowScriptWindowMethod(info);
9959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9960 } 9960 }
9961 9961
9962 static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
9963 {
9964 TestObject* impl = V8TestObject::toImpl(info.Holder());
9965 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9966 impl->callWithThisValue(ScriptValue(scriptState, info.This()));
9967 }
9968
9969 static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
9970 {
9971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9972 TestObjectV8Internal::callWithThisValueMethod(info);
9973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9974 }
9975
9962 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 9976 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
9963 { 9977 {
9964 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9978 TestObject* impl = V8TestObject::toImpl(info.Holder());
9965 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeVoidMethod(exceptionState), exceptionState)) { 9979 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeVoidMethod(exceptionState), exceptionState)) {
9966 v8SetReturnValueNull(info); 9980 v8SetReturnValueNull(info);
9967 exceptionState.throwIfNeeded(); 9981 exceptionState.throwIfNeeded();
9968 return; 9982 return;
9969 } 9983 }
9970 impl->checkSecurityForNodeVoidMethod(); 9984 impl->checkSecurityForNodeVoidMethod();
9971 } 9985 }
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
12432 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12446 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12433 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts}, 12447 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo AllScripts},
12434 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts }, 12448 {"callWithExecutionContextVoidMethod", TestObjectV8Internal::callWithExecuti onContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts },
12435 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12449 {"callWithScriptStateVoidMethod", TestObjectV8Internal::callWithScriptStateV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12436 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12450 {"callWithScriptStateLongMethod", TestObjectV8Internal::callWithScriptStateL ongMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12437 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12451 {"callWithScriptStateExecutionContextVoidMethod", TestObjectV8Internal::call WithScriptStateExecutionContextVoidMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12438 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts}, 12452 {"callWithScriptStateScriptArgumentsVoidMethod", TestObjectV8Internal::callW ithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts},
12439 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12453 {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", TestObjec tV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMetho dCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12440 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12454 {"callWithActiveWindow", TestObjectV8Internal::callWithActiveWindowMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12441 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12455 {"callWithActiveWindowScriptWindow", TestObjectV8Internal::callWithActiveWin dowScriptWindowMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12456 {"callWithThisValue", TestObjectV8Internal::callWithThisValueMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12442 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12457 {"checkSecurityForNodeVoidMethod", TestObjectV8Internal::checkSecurityForNod eVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12443 #if ENABLE(CONDITION) 12458 #if ENABLE(CONDITION)
12444 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12459 {"conditionalConditionVoidMethod", TestObjectV8Internal::conditionalConditio nVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12445 #endif // ENABLE(CONDITION) 12460 #endif // ENABLE(CONDITION)
12446 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12461 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12447 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12462 {"customCallEpilogueVoidMethod", TestObjectV8Internal::customCallEpilogueVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12448 #if ENABLE(CONDITION) 12463 #if ENABLE(CONDITION)
12449 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts}, 12464 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts},
12450 #endif // ENABLE(CONDITION) 12465 #endif // ENABLE(CONDITION)
12451 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12466 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
13188 return false; 13203 return false;
13189 13204
13190 ScriptState::Scope scope(scriptState); 13205 ScriptState::Scope scope(scriptState);
13191 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13206 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13192 13207
13193 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13208 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13194 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13209 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13195 } 13210 }
13196 13211
13197 } // namespace blink 13212 } // 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