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

Issue 6561004: Callback support for __fastcall and __stdcall functions. (Closed)

Created:
9 years, 10 months ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, darin (slow to review), brettw, akalin
Visibility:
Public.

Description

Callback support for __fastcall and __stdcall functions. Create FunctionTraits specializations that can unwrap function pointers that are delcared with __fastcall and __stdcall on windows. Only include these in the Windows build. BUG=35223 TEST=new unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76174

Patch Set 1 #

Patch Set 2 : silly compile fix #

Patch Set 3 : namespace fix. #

Patch Set 4 : endif #

Total comments: 2

Patch Set 5 : Address will's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -24 lines) Patch
M base/base.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M base/bind_internal.h View 1 2 3 4 10 chunks +27 lines, -21 lines 0 comments Download
M base/bind_internal.h.pump View 1 2 3 4 4 chunks +9 lines, -3 lines 1 comment Download
A base/bind_internal_win.h View 1 2 3 4 1 chunk +128 lines, -0 lines 0 comments Download
A base/bind_internal_win.h.pump View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
M base/bind_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
awong
This is to let us do stuff like mesasge_loop.PostClosure(Bind(&PostMessage, 0)); Again, spurred by the messge_loop_unittest.cc
9 years, 10 months ago (2011-02-24 03:37:20 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/6561004/diff/4007/base/bind_internal.h File base/bind_internal.h (right): http://codereview.chromium.org/6561004/diff/4007/base/bind_internal.h#newcode221 base/bind_internal.h:221: #if defined(OS_WIN) Won't this include it within the base::internal ...
9 years, 10 months ago (2011-02-24 08:00:30 UTC) #2
awong
http://codereview.chromium.org/6561004/diff/4007/base/bind_internal.h File base/bind_internal.h (right): http://codereview.chromium.org/6561004/diff/4007/base/bind_internal.h#newcode221 base/bind_internal.h:221: #if defined(OS_WIN) On 2011/02/24 08:00:30, willchan wrote: > Won't ...
9 years, 10 months ago (2011-02-25 02:07:52 UTC) #3
willchan no longer on Chromium
9 years, 10 months ago (2011-02-25 21:52:09 UTC) #4
LGTM

http://codereview.chromium.org/6561004/diff/6002/base/bind_internal.h.pump
File base/bind_internal.h.pump (right):

http://codereview.chromium.org/6561004/diff/6002/base/bind_internal.h.pump#ne...
base/bind_internal.h.pump:18: #include "build/build_config.h"
You can sort this alphabetically, it'll still be ahead of the defined(OS_WIN)
since that goes last, as specified in
https://sites.google.com/a/chromium.org/dev/developers/coding-style#TOC-Platf....

Powered by Google App Engine
This is Rietveld 408576698