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 2408083003: Drop [ExperimentalCallbackFunction] (Closed)
Patch Set: Update tests and expectations 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/VoidExperimentalCallbackFunction.h"
19 #include "bindings/modules/v8/BooleanOrString.h" 18 #include "bindings/modules/v8/BooleanOrString.h"
20 #include "bindings/modules/v8/DoubleOrString.h" 19 #include "bindings/modules/v8/DoubleOrString.h"
21 #include "bindings/modules/v8/V8TestInterface5.h" 20 #include "bindings/modules/v8/V8TestInterface5.h"
22 #include "bindings/modules/v8/VoidCallbackFunctionModules.h" 21 #include "bindings/modules/v8/VoidCallbackFunctionModules.h"
23 #include "core/dom/Document.h" 22 #include "core/dom/Document.h"
24 #include "platform/RuntimeEnabledFeatures.h" 23 #include "platform/RuntimeEnabledFeatures.h"
25 #include "wtf/GetPtr.h" 24 #include "wtf/GetPtr.h"
26 #include "wtf/RefPtr.h" 25 #include "wtf/RefPtr.h"
27 26
28 namespace blink { 27 namespace blink {
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 612 static void voidMethodVoidExperimentalCallbackFunctionMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
614 { 613 {
615 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 614 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
616 615
617 if (UNLIKELY(info.Length() < 1)) { 616 if (UNLIKELY(info.Length() < 1)) {
618 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", E xceptionMessages::notEnoughArguments(1, info.Length()))); 617 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", E xceptionMessages::notEnoughArguments(1, info.Length())));
619 return; 618 return;
620 } 619 }
621 620
622 VoidExperimentalCallbackFunction* arg; 621 VoidExperimentalCallbackFunction* arg;
623 if (!info[0]->IsFunction()) { 622 arg = V8VoidExperimentalCallbackFunction::toImplWithTypeCheck(info.GetIsolat e(), info[0]);
624 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", " The callback provided as parameter 1 is not a function.")); 623 if (!arg) {
624 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodVoidExperimentalCallbackFunction", "TestInterface5", " parameter 1 is not of type 'VoidExperimentalCallbackFunction'."));
625 625
626 return; 626 return;
627 } 627 }
628 arg = VoidExperimentalCallbackFunction::create(info.GetIsolate(), v8::Local< v8::Function>::Cast(info[0]));
629 628
630 impl->voidMethodVoidExperimentalCallbackFunction(arg); 629 impl->voidMethodVoidExperimentalCallbackFunction(arg);
631 } 630 }
632 631
633 static void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 632 static void voidMethodVoidExperimentalCallbackFunctionMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
634 { 633 {
635 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFu nctionMethod(info); 634 TestInterface5ImplementationV8Internal::voidMethodVoidExperimentalCallbackFu nctionMethod(info);
636 } 635 }
637 636
638 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 637 static void voidMethodVoidCallbackFunctionModulesArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
(...skipping 440 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}; 1078 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); 1079 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodC onfiguration);
1081 } 1080 }
1082 if (executionContext && (executionContext->isDocument() || executionContext- >isServiceWorkerGlobalScope())) { 1081 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}; 1082 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); 1083 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
1085 } 1084 }
1086 } 1085 }
1087 1086
1088 } // namespace blink 1087 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698