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

Side by Side Diff: base/bind_internal_win.h

Issue 6463013: Add support for base::Closure in the MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: address will's comments. Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/bind_internal_win.h.pump » ('j') | base/message_loop.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 7 // 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 8 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file. 9 // found in the LICENSE file.
9 10
10 // Specializations of FunctionTraits<> for Windows specific calling 11 // Specializations of FunctionTraits<> for Windows specific calling
11 // conventions. Please see base/bind_internal.h for more info. 12 // conventions. Please see base/bind_internal.h for more info.
12 13
13 #ifndef BASE_BIND_INTERNAL_WIN_H_ 14 #ifndef BASE_BIND_INTERNAL_WIN_H_
14 #define BASE_BIND_INTERNAL_WIN_H_ 15 #define BASE_BIND_INTERNAL_WIN_H_
15 #pragma once 16 #pragma once
16 17
18 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all
19 // the same as __cdecl which would turn the following specializations into
20 // multiple definitions.
21 #if !defined(ARCH_CPU_X86_64)
22
17 namespace base { 23 namespace base {
18 namespace internal { 24 namespace internal {
19 25
20 template <typename Sig> 26 template <typename Sig>
21 struct FunctionTraits; 27 struct FunctionTraits;
22 28
23 // __stdcall Function: Arity 0. 29 // __stdcall Function: Arity 0.
24 template <typename R> 30 template <typename R>
25 struct FunctionTraits<R(__stdcall *)()> { 31 struct FunctionTraits<R(__stdcall *)()> {
26 typedef R (*NormalizedSig)(); 32 typedef R (*NormalizedSig)();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 template <typename R, typename X1, typename X2, typename X3, typename X4, 124 template <typename R, typename X1, typename X2, typename X3, typename X4,
119 typename X5, typename X6> 125 typename X5, typename X6>
120 struct FunctionTraits<R(__fastcall *)(X1, X2, X3, X4, X5, X6)> { 126 struct FunctionTraits<R(__fastcall *)(X1, X2, X3, X4, X5, X6)> {
121 typedef R (*NormalizedSig)(X1, X2, X3, X4, X5, X6); 127 typedef R (*NormalizedSig)(X1, X2, X3, X4, X5, X6);
122 typedef false_type IsMethod; 128 typedef false_type IsMethod;
123 }; 129 };
124 130
125 } // namespace internal 131 } // namespace internal
126 } // namespace base 132 } // namespace base
127 133
134 #endif // !defined(ARCH_CPU_X86_64)
135
128 #endif // BASE_BIND_INTERNAL_WIN_H_ 136 #endif // BASE_BIND_INTERNAL_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | base/bind_internal_win.h.pump » ('j') | base/message_loop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698