Chromium Code Reviews| 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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1154 | 1154 |
| 1155 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v 8::Value>& info) | 1155 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 1156 { | 1156 { |
| 1157 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1157 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1158 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); | 1158 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); |
| 1159 } | 1159 } |
| 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 LocalDOMWindow* window; | 1164 DOMWindow* window; |
|
bashi
2014/11/11 01:34:46
This was fixed by another CL. Will rebase.
| |
| 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[0], info.GetIsolate()); |
| 1171 } | 1171 } |
| 1172 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value()) ; | 1172 v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value()) ; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| (...skipping 1013 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 |