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

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

Issue 2383613003: Remove 'V8' prefix from generated callback function classes (Closed)
Patch Set: rebase Created 4 years, 2 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 // 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"
11 #include "bindings/core/v8/GeneratedCodeHelper.h" 11 #include "bindings/core/v8/GeneratedCodeHelper.h"
12 #include "bindings/core/v8/ScriptState.h" 12 #include "bindings/core/v8/ScriptState.h"
13 #include "bindings/core/v8/ScriptValue.h" 13 #include "bindings/core/v8/ScriptValue.h"
14 #include "bindings/core/v8/V8DOMConfiguration.h" 14 #include "bindings/core/v8/V8DOMConfiguration.h"
15 #include "bindings/core/v8/V8Iterator.h" 15 #include "bindings/core/v8/V8Iterator.h"
16 #include "bindings/core/v8/V8ObjectConstructor.h" 16 #include "bindings/core/v8/V8ObjectConstructor.h"
17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
18 #include "bindings/core/v8/V8VoidExperimentalCallbackFunction.h" 18 #include "bindings/core/v8/VoidExperimentalCallbackFunction.h"
19 #include "bindings/modules/v8/BooleanOrString.h" 19 #include "bindings/modules/v8/BooleanOrString.h"
20 #include "bindings/modules/v8/DoubleOrString.h" 20 #include "bindings/modules/v8/DoubleOrString.h"
21 #include "bindings/modules/v8/V8TestInterface5.h" 21 #include "bindings/modules/v8/V8TestInterface5.h"
22 #include "bindings/modules/v8/V8VoidCallbackFunctionModules.h" 22 #include "bindings/modules/v8/VoidCallbackFunctionModules.h"
23 #include "core/dom/Document.h" 23 #include "core/dom/Document.h"
24 #include "platform/RuntimeEnabledFeatures.h" 24 #include "platform/RuntimeEnabledFeatures.h"
25 #include "wtf/GetPtr.h" 25 #include "wtf/GetPtr.h"
26 #include "wtf/RefPtr.h" 26 #include "wtf/RefPtr.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 30 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
31 // and does not depend on another global objects. 31 // and does not depend on another global objects.
32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 612
613 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 613 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
614 { 614 {
615 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 615 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
616 616
617 if (UNLIKELY(info.Length() < 1)) { 617 if (UNLIKELY(info.Length() < 1)) {
618 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", E xceptionMessages::notEnoughArguments(1, info.Length()))); 618 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", E xceptionMessages::notEnoughArguments(1, info.Length())));
619 return; 619 return;
620 } 620 }
621 621
622 V8VoidExperimentalCallbackFunction* arg; 622 VoidExperimentalCallbackFunction* arg;
623 if (!info[0]->IsFunction()) { 623 if (!info[0]->IsFunction()) {
624 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", " The callback provided as parameter 1 is not a function.")); 624 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", " The callback provided as parameter 1 is not a function."));
625 625
626 return; 626 return;
627 } 627 }
628 arg = V8VoidExperimentalCallbackFunction::create(info.GetIsolate(), v8::Loca l<v8::Function>::Cast(info[0])); 628 arg = VoidExperimentalCallbackFunction::create(info.GetIsolate(), v8::Local< v8::Function>::Cast(info[0]));
629 629
630 impl->voidMethodVoidExperimentalCallbackFunction(arg); 630 impl->voidMethodVoidExperimentalCallbackFunction(arg);
631 } 631 }
632 632
633 static void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 633 static void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
634 { 634 {
635 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFu nctionMethod(info); 635 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFu nctionMethod(info);
636 } 636 }
637 637
638 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 638 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
639 { 639 {
640 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 640 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
641 641
642 if (UNLIKELY(info.Length() < 1)) { 642 if (UNLIKELY(info.Length() < 1)) {
643 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Exc eptionMessages::notEnoughArguments(1, info.Length()))); 643 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", Exc eptionMessages::notEnoughArguments(1, info.Length())));
644 return; 644 return;
645 } 645 }
646 646
647 V8VoidCallbackFunctionModules* arg; 647 VoidCallbackFunctionModules* arg;
648 if (!info[0]->IsFunction()) { 648 if (!info[0]->IsFunction()) {
649 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "Th e callback provided as parameter 1 is not a function.")); 649 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidCallbackFunctionModulesArg", "TestInterface5", "Th e callback provided as parameter 1 is not a function."));
650 650
651 return; 651 return;
652 } 652 }
653 arg = V8VoidCallbackFunctionModules::create(info.GetIsolate(), v8::Local<v8: :Function>::Cast(info[0])); 653 arg = VoidCallbackFunctionModules::create(info.GetIsolate(), v8::Local<v8::F unction>::Cast(info[0]));
654 654
655 impl->voidMethodVoidCallbackFunctionModulesArg(arg); 655 impl->voidMethodVoidCallbackFunctionModulesArg(arg);
656 } 656 }
657 657
658 static void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 658 static void voidMethodVoidCallbackFunctionModulesArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
659 { 659 {
660 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModule sArgMethod(info); 660 TestInterface5ImplementationV8Internal::voidMethodVoidCallbackFunctionModule sArgMethod(info);
661 } 661 }
662 662
663 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 663 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 1079 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV 8Internal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
1080 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration); 1080 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration);
1081 } 1081 }
1082 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) { 1082 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) {
1083 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype}; 1083 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpo sedMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInter face5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback , 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype};
1084 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 1084 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
1085 } 1085 }
1086 } 1086 }
1087 1087
1088 } // namespace blink 1088 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698