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

Side by Side Diff: base/callback.h

Issue 10821072: Minor fix for base::Bind documentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
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 callback.h.pump 2 // pump.py callback.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 5
6 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 6 // Copyright (c) 2012 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 #ifndef BASE_CALLBACK_H_ 10 #ifndef BASE_CALLBACK_H_
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // pointer. 116 // pointer.
117 // 117 //
118 // base::Closure cb = base::Bind(&MyClass::MyFunc, this, 23, "hello world"); 118 // base::Closure cb = base::Bind(&MyClass::MyFunc, this, 23, "hello world");
119 // 119 //
120 // PARTIAL BINDING OF PARAMETERS 120 // PARTIAL BINDING OF PARAMETERS
121 // 121 //
122 // You can specify some parameters when you create the callback, and specify 122 // You can specify some parameters when you create the callback, and specify
123 // the rest when you execute the callback. 123 // the rest when you execute the callback.
124 // 124 //
125 // void MyFunc(int i, const std::string& str) {} 125 // void MyFunc(int i, const std::string& str) {}
126 // base::Callback<void(int)> cb = base::Bind(&MyFunc, 23); 126 // base::Callback<void(const std::string)> cb = base::Bind(&MyFunc, 23);
127 // cb.Run("hello world"); 127 // cb.Run("hello world");
128 // 128 //
129 // When calling a function bound parameters are first, followed by unbound 129 // When calling a function bound parameters are first, followed by unbound
130 // parameters. 130 // parameters.
131 // 131 //
132 // 132 //
133 // ----------------------------------------------------------------------------- 133 // -----------------------------------------------------------------------------
134 // Quick reference for advanced binding 134 // Quick reference for advanced binding
135 // ----------------------------------------------------------------------------- 135 // -----------------------------------------------------------------------------
136 // 136 //
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 }; 741 };
742 742
743 743
744 // Syntactic sugar to make Callbacks<void(void)> easier to declare since it 744 // Syntactic sugar to make Callbacks<void(void)> easier to declare since it
745 // will be used in a lot of APIs with delayed execution. 745 // will be used in a lot of APIs with delayed execution.
746 typedef Callback<void(void)> Closure; 746 typedef Callback<void(void)> Closure;
747 747
748 } // namespace base 748 } // namespace base
749 749
750 #endif // BASE_CALLBACK_H 750 #endif // BASE_CALLBACK_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698