diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 22:10:20 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 22:10:20 +0000 |
commit | 39a248b002d0f41ad816754bb2833eea0aff9c61 (patch) | |
tree | 2b3c12b82e8ba1779f3b5cf0b6e1783bb357c8bb /base/task.h | |
parent | fe60fbbb329988a1b4eab5fcc78faaad719cda1b (diff) | |
download | chromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.zip chromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.tar.gz chromium_src-39a248b002d0f41ad816754bb2833eea0aff9c61.tar.bz2 |
Adds the ability for save dialogs to take a default extension.
BUG=4287
TEST=see bug
Review URL: http://codereview.chromium.org/10621
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/task.h')
-rw-r--r-- | base/task.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/task.h b/base/task.h index c1b25cf..a00555a 100644 --- a/base/task.h +++ b/base/task.h @@ -387,6 +387,20 @@ inline CancelableTask* NewRunnableMethod(T* object, Method method, f)); } +template <class T, class Method, class A, class B, class C, class D, class E, + class F, class G> +inline CancelableTask* NewRunnableMethod(T* object, Method method, + const A& a, const B& b, + const C& c, const D& d, const E& e, + const F& f, const G& g) { + return new RunnableMethod<T, + Method, + Tuple7<A, B, C, D, E, F, G> >(object, + method, + MakeTuple(a, b, c, d, + e, f, g)); +} + // RunnableFunction and NewRunnableFunction implementation --------------------- template <class Function, class Params> |