Lines Matching refs:NewCallback
798 // method with a particular set of parameters, use the NewCallback() function.
807 // Closure* callback = NewCallback(&FooDone, response);
824 // Closure* callback = NewCallback(this, &Handler::FooDone, response);
830 // Currently NewCallback() supports binding zero, one, or two arguments.
832 // Callbacks created with NewCallback() automatically delete themselves when
839 // Note that NewCallback() is a bit touchy regarding argument types. Generally,
843 // NewCallback(&Foo, "foo"); // WON'T WORK: const char* != string
844 // NewCallback(&Foo, string("foo")); // WORKS
848 // NewCallback(&Foo, my_str); // WON'T WORK: Can't use referecnes.
1002 inline Closure* NewCallback(void (*function)()) {
1013 inline Closure* NewCallback(Class* object, void (Class::*method)()) {
1025 inline Closure* NewCallback(void (*function)(Arg1),
1039 inline Closure* NewCallback(Class* object, void (Class::*method)(Arg1),
1053 inline Closure* NewCallback(void (*function)(Arg1, Arg2),
1069 inline Closure* NewCallback(Class* object, void (Class::*method)(Arg1, Arg2),
1085 // Closure* nothing = NewCallback(&DoNothing);