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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 692443002: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterfacePartial.h" 9 #include "V8TestInterfacePartial.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 94 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
95 exceptionState.throwIfNeeded(); 95 exceptionState.throwIfNeeded();
96 } 96 }
97 97
98 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v 8::Value>& info) 98 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v 8::Value>& info)
99 { 99 {
100 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 100 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
101 Document* document; 101 Document* document;
102 { 102 {
103 if (info.Length() > 0 && !V8Document::hasInstance(info[0], info.GetIsola te())) { 103 if (info.Length() > 0 && !V8Document::hasInstance(info[0], info.GetIsola te())) {
104 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V 8ThrowException::createTypeError(ExceptionMessages::failedToExecute("promiseMeth odPartialOverload", "TestInterface", "parameter 1 is not of type 'Document'."), info.GetIsolate()))); 104 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V 8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE xecute("promiseMethodPartialOverload", "TestInterface", "parameter 1 is not of t ype 'Document'."))));
105 return; 105 return;
106 } 106 }
107 document = V8Document::toImpl(v8::Handle<v8::Object>::Cast(info[0])); 107 document = V8Document::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
108 } 108 }
109 v8SetReturnValue(info, TestPartialInterfaceImplementation3::promiseMethodPar tialOverload(*impl, document).v8Value()); 109 v8SetReturnValue(info, TestPartialInterfaceImplementation3::promiseMethodPar tialOverload(*impl, document).v8Value());
110 } 110 }
111 111
112 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 112 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
113 { 113 {
114 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); 114 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate());
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 309 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
310 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 310 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
311 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 311 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
312 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 312 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
313 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 313 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
314 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 314 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
315 } 315 }
316 316
317 } // namespace blink 317 } // namespace blink
318 #endif // ENABLE(CONDITION) 318 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/modules/serviceworkers/Body.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698