OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/automation/ui_controls_internal.h" | 5 #include "chrome/browser/automation/ui_controls_internal.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/task.h" | |
13 #include "ui/base/keycodes/keyboard_codes.h" | 12 #include "ui/base/keycodes/keyboard_codes.h" |
14 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 13 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
18 // InputDispatcher ------------------------------------------------------------ | 17 // InputDispatcher ------------------------------------------------------------ |
19 | 18 |
20 // InputDispatcher is used to listen for a mouse/keyboard event. When the | 19 // InputDispatcher is used to listen for a mouse/keyboard event. When the |
21 // appropriate event is received the task is notified. | 20 // appropriate event is received the task is notified. |
22 class InputDispatcher : public base::RefCounted<InputDispatcher> { | 21 class InputDispatcher : public base::RefCounted<InputDispatcher> { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 return false; | 321 return false; |
323 | 322 |
324 if (dispatcher.get()) | 323 if (dispatcher.get()) |
325 dispatcher->AddRef(); | 324 dispatcher->AddRef(); |
326 | 325 |
327 return true; | 326 return true; |
328 } | 327 } |
329 | 328 |
330 } // namespace internal | 329 } // namespace internal |
331 } // namespace ui_controls | 330 } // namespace ui_controls |
OLD | NEW |