OLD | NEW |
1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
2 // pump.py bind_internal_win.h.pump | 2 // pump.py bind_internal_win.h.pump |
3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
4 | 4 |
5 | 5 |
6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 // Use of this source code is governed by a BSD-style license that can be | 7 // Use of this source code is governed by a BSD-style license that can be |
8 // found in the LICENSE file. | 8 // found in the LICENSE file. |
9 | 9 |
10 // Specializations of RunnableAdapter<> for Windows specific calling | 10 // Specializations of RunnableAdapter<> for Windows specific calling |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 typename CallbackParamTraits<A5>::ForwardType a5, | 353 typename CallbackParamTraits<A5>::ForwardType a5, |
354 typename CallbackParamTraits<A6>::ForwardType a6, | 354 typename CallbackParamTraits<A6>::ForwardType a6, |
355 typename CallbackParamTraits<A7>::ForwardType a7) { | 355 typename CallbackParamTraits<A7>::ForwardType a7) { |
356 return function_(a1, a2, a3, a4, a5, a6, a7); | 356 return function_(a1, a2, a3, a4, a5, a6, a7); |
357 } | 357 } |
358 | 358 |
359 private: | 359 private: |
360 R (__fastcall *function_)(A1, A2, A3, A4, A5, A6, A7); | 360 R (__fastcall *function_)(A1, A2, A3, A4, A5, A6, A7); |
361 }; | 361 }; |
362 | 362 |
363 // __fastcall Function: Arity 8. | |
364 template <typename R, typename A1, typename A2, typename A3, typename A4, | |
365 typename A5, typename A6, typename A7, typename A8> | |
366 class RunnableAdapter<R(__fastcall *)(A1, A2, A3, A4, A5, A6, A7, A8)> { | |
367 public: | |
368 typedef R (RunType)(A1, A2, A3, A4, A5, A6, A7, A8); | |
369 | |
370 explicit RunnableAdapter(R(__fastcall *function)(A1, A2, A3, A4, A5, A6, A7, | |
371 A8)) | |
372 : function_(function) { | |
373 } | |
374 | |
375 R Run(typename CallbackParamTraits<A1>::ForwardType a1, | |
376 typename CallbackParamTraits<A2>::ForwardType a2, | |
377 typename CallbackParamTraits<A3>::ForwardType a3, | |
378 typename CallbackParamTraits<A4>::ForwardType a4, | |
379 typename CallbackParamTraits<A5>::ForwardType a5, | |
380 typename CallbackParamTraits<A6>::ForwardType a6, | |
381 typename CallbackParamTraits<A7>::ForwardType a7, | |
382 typename CallbackParamTraits<A8>::ForwardType a8) { | |
383 return function_(a1, a2, a3, a4, a5, a6, a7, a8); | |
384 } | |
385 | |
386 private: | |
387 R (__fastcall *function_)(A1, A2, A3, A4, A5, A6, A7, A8); | |
388 }; | |
389 | |
390 } // namespace internal | 363 } // namespace internal |
391 } // namespace base | 364 } // namespace base |
392 | 365 |
393 #endif // !defined(ARCH_CPU_X86_64) | 366 #endif // !defined(ARCH_CPU_X86_64) |
394 | 367 |
395 #endif // BASE_BIND_INTERNAL_WIN_H_ | 368 #endif // BASE_BIND_INTERNAL_WIN_H_ |
OLD | NEW |