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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2458573002: bindings: Store ScriptState in generated callback functions (Closed)
Patch Set: Created 4 years, 1 month 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 // clang-format off 7 // clang-format off
8 #include "V8TestInterface5.h" 8 #include "V8TestInterface5.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Exc eptionMessages::notEnoughArguments(1, info.Length()))); 642 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Exc eptionMessages::notEnoughArguments(1, info.Length())));
643 return; 643 return;
644 } 644 }
645 645
646 VoidCallbackFunctionModules* arg; 646 VoidCallbackFunctionModules* arg;
647 if (!info[0]->IsFunction()) { 647 if (!info[0]->IsFunction()) {
648 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "Th e callback provided as parameter 1 is not a function.")); 648 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "Th e callback provided as parameter 1 is not a function."));
649 649
650 return; 650 return;
651 } 651 }
652 arg = VoidCallbackFunctionModules::create(info.GetIsolate(), v8::Local<v8::F unction>::Cast(info[0])); 652 arg = VoidCallbackFunctionModules::create(ScriptState::current(info.GetIsola te()), v8::Local<v8::Function>::Cast(info[0]));
653 653
654 impl->voidMethodVoidCallbackFunctionModulesArg(arg); 654 impl->voidMethodVoidCallbackFunctionModulesArg(arg);
655 } 655 }
656 656
657 void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 657 void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
658 { 658 {
659 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModule sArgMethod(info); 659 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModule sArgMethod(info);
660 } 660 }
661 661
662 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 662 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 1078 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
1079 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration); 1079 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration);
1080 } 1080 }
1081 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) { 1081 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) {
1082 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype}; 1082 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype};
1083 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 1083 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
1084 } 1084 }
1085 } 1085 }
1086 1086
1087 } // namespace blink 1087 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698