| OLD | NEW |
| 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 "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); | 1443 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 1446 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 1447 { | 1447 { |
| 1448 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1448 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1449 DOMWindow* window; | 1449 DOMWindow* window; |
| 1450 { | 1450 { |
| 1451 window = toDOMWindow(info.GetIsolate(), info[0]); | 1451 window = toDOMWindow(info.GetIsolate(), info[0]); |
| 1452 if (!window) { | 1452 if (!window) { |
| 1453 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE
xecute("promiseMethodPartialOverload", "TestInterface", "parameter 1 is not of t
ype 'Window'.")))); | 1453 v8SetReturnValue(info, ScriptPromise::rejectRaw(ScriptState::current
(info.GetIsolate()), V8ThrowException::createTypeError(info.GetIsolate(), Except
ionMessages::failedToExecute("promiseMethodPartialOverload", "TestInterface", "p
arameter 1 is not of type 'Window'.")))); |
| 1454 return; | 1454 return; |
| 1455 } | 1455 } |
| 1456 } | 1456 } |
| 1457 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; | 1457 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 1460 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 1461 { | 1461 { |
| 1462 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); | 1462 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); |
| 1463 } | 1463 } |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2544 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2544 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2545 { | 2545 { |
| 2546 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2546 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2547 } | 2547 } |
| 2548 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2548 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2549 { | 2549 { |
| 2550 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2550 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2551 } | 2551 } |
| 2552 } // namespace blink | 2552 } // namespace blink |
| 2553 #endif // ENABLE(CONDITION) | 2553 #endif // ENABLE(CONDITION) |
| OLD | NEW |