Lines Matching defs:NewCallback
814 // method with a particular set of parameters, use the NewCallback() function.
823 // Closure* callback = NewCallback(&FooDone, response);
840 // Closure* callback = NewCallback(this, &Handler::FooDone, response);
846 // Currently NewCallback() supports binding zero, one, or two arguments.
848 // Callbacks created with NewCallback() automatically delete themselves when
855 // Note that NewCallback() is a bit touchy regarding argument types. Generally,
859 // NewCallback(&Foo, "foo"); // WON'T WORK: const char* != string
860 // NewCallback(&Foo, string("foo")); // WORKS
864 // NewCallback(&Foo, my_str); // WON'T WORK: Can't use referecnes.
1018 inline Closure* NewCallback(void (*function)()) {
1029 inline Closure* NewCallback(Class* object, void (Class::*method)()) {
1041 inline Closure* NewCallback(void (*function)(Arg1),
1055 inline Closure* NewCallback(Class* object, void (Class::*method)(Arg1),
1069 inline Closure* NewCallback(void (*function)(Arg1, Arg2),
1085 inline Closure* NewCallback(Class* object, void (Class::*method)(Arg1, Arg2),
1101 // Closure* nothing = NewCallback(&DoNothing);