Lines Matching refs:InputDispatcher
19 // InputDispatcher ------------------------------------------------------------
21 // InputDispatcher is used to listen for a mouse/keyboard event. When the
23 class InputDispatcher : public base::RefCounted<InputDispatcher> {
25 InputDispatcher(Task* task, WPARAM message_waiting_for);
36 friend class base::RefCounted<InputDispatcher>;
38 ~InputDispatcher();
49 DISALLOW_COPY_AND_ASSIGN(InputDispatcher);
59 InputDispatcher* current_dispatcher_ = NULL;
85 void InstallHook(InputDispatcher* dispatcher, bool key_hook) {
102 void UninstallHook(InputDispatcher* dispatcher) {
110 InputDispatcher::InputDispatcher(Task* task, UINT message_waiting_for)
115 InputDispatcher::~InputDispatcher() {
120 void InputDispatcher::DispatchedMessage(WPARAM message) {
125 void InputDispatcher::MatchingMessageFound() {
130 FROM_HERE, NewRunnableMethod(this, &InputDispatcher::NotifyTask), 0);
133 void InputDispatcher::NotifyTask() {
168 scoped_refptr<InputDispatcher> dispatcher(
169 task ? new InputDispatcher(task, WM_KEYUP) : NULL);
264 scoped_refptr<InputDispatcher> dispatcher(
265 task ? new InputDispatcher(task, WM_MOUSEMOVE) : NULL);
305 scoped_refptr<InputDispatcher> dispatcher(
306 task ? new InputDispatcher(task, last_event) : NULL);