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

Side by Side Diff: base/bind_internal.h.pump

Issue 10692147: Add quick reference for bind/callback usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « base/bind_internal.h ('k') | base/callback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 $$ This is a pump file for generating file templates. Pump is a python 1 $$ This is a pump file for generating file templates. Pump is a python
2 $$ script that is part of the Google Test suite of utilities. Description 2 $$ script that is part of the Google Test suite of utilities. Description
3 $$ can be found here: 3 $$ can be found here:
4 $$ 4 $$
5 $$ http://code.google.com/p/googletest/wiki/PumpManual 5 $$ http://code.google.com/p/googletest/wiki/PumpManual
6 $$ 6 $$
7 7
8 $$ See comment for MAX_ARITY in base/bind.h.pump. 8 $$ See comment for MAX_ARITY in base/bind.h.pump.
9 $var MAX_ARITY = 7 9 $var MAX_ARITY = 7
10 $range ARITY 0..MAX_ARITY 10 $range ARITY 0..MAX_ARITY
(...skipping 13 matching lines...) Expand all
24 #include "base/template_util.h" 24 #include "base/template_util.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 26
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 #include "base/bind_internal_win.h" 28 #include "base/bind_internal_win.h"
29 #endif 29 #endif
30 30
31 namespace base { 31 namespace base {
32 namespace internal { 32 namespace internal {
33 33
34 // See base/callback.h for user documentation.
35 //
36 //
34 // CONCEPTS: 37 // CONCEPTS:
35 // Runnable -- A type (really a type class) that has a single Run() method 38 // Runnable -- A type (really a type class) that has a single Run() method
36 // and a RunType typedef that corresponds to the type of Run(). 39 // and a RunType typedef that corresponds to the type of Run().
37 // A Runnable can declare that it should treated like a method 40 // A Runnable can declare that it should treated like a method
38 // call by including a typedef named IsMethod. The value of 41 // call by including a typedef named IsMethod. The value of
39 // this typedef is NOT inspected, only the existence. When a 42 // this typedef is NOT inspected, only the existence. When a
40 // Runnable declares itself a method, Bind() will enforce special 43 // Runnable declares itself a method, Bind() will enforce special
41 // refcounting + WeakPtr handling semantics for the first 44 // refcounting + WeakPtr handling semantics for the first
42 // parameter which is expected to be an object. 45 // parameter which is expected to be an object.
43 // Functor -- A copyable type representing something that should be called. 46 // Functor -- A copyable type representing something that should be called.
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 488
486 ]] 489 ]]
487 }; 490 };
488 491
489 ]] $$ for ARITY 492 ]] $$ for ARITY
490 493
491 } // namespace internal 494 } // namespace internal
492 } // namespace base 495 } // namespace base
493 496
494 #endif // BASE_BIND_INTERNAL_H_ 497 #endif // BASE_BIND_INTERNAL_H_
OLDNEW
« no previous file with comments | « base/bind_internal.h ('k') | base/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698