| 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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 | 1160 |
| 1161 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 1161 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 1162 { | 1162 { |
| 1163 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1163 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1164 DOMWindow* window; | 1164 DOMWindow* window; |
| 1165 { | 1165 { |
| 1166 if (info.Length() > 0 && !V8Window::hasInstance(info[0], info.GetIsolate
())) { | 1166 if (info.Length() > 0 && !V8Window::hasInstance(info[0], info.GetIsolate
())) { |
| 1167 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE
xecute("promiseMethodPartialOverload", "TestInterface", "parameter 1 is not of t
ype 'Window'.")))); | 1167 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE
xecute("promiseMethodPartialOverload", "TestInterface", "parameter 1 is not of t
ype 'Window'.")))); |
| 1168 return; | 1168 return; |
| 1169 } | 1169 } |
| 1170 window = toDOMWindow(info[0], info.GetIsolate()); | 1170 window = toDOMWindow(info.GetIsolate(), info[0]); |
| 1171 } | 1171 } |
| 1172 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; | 1172 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 1175 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 1176 { | 1176 { |
| 1177 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); | 1177 v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
alOverload().v8Value()); |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 1180 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2188 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2189 { | 2189 { |
| 2190 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2190 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2191 } | 2191 } |
| 2192 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2192 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2193 { | 2193 { |
| 2194 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2194 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2195 } | 2195 } |
| 2196 } // namespace blink | 2196 } // namespace blink |
| 2197 #endif // ENABLE(CONDITION) | 2197 #endif // ENABLE(CONDITION) |
| OLD | NEW |