| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "media/base/user_input_monitor.h" | 5 #include "media/base/user_input_monitor.h" |
| 6 | 6 |
| 7 #include <sys/select.h> | 7 #include <sys/select.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 #define XK_MISCELLANY | 9 #define XK_MISCELLANY |
| 10 #include <X11/keysymdef.h> | 10 #include <X11/keysymdef.h> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/bind.h" | 12 #include "base/bind.h" |
| 14 #include "base/callback.h" | 13 #include "base/callback.h" |
| 15 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 16 #include "base/location.h" | 15 #include "base/location.h" |
| 17 #include "base/logging.h" | 16 #include "base/logging.h" |
| 18 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 19 #include "base/message_loop/message_pump_libevent.h" | 18 #include "base/message_loop/message_pump_libevent.h" |
| 20 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
| 21 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
| 22 #include "media/base/keyboard_event_counter.h" | 21 #include "media/base/keyboard_event_counter.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 } // namespace | 374 } // namespace |
| 376 | 375 |
| 377 scoped_ptr<UserInputMonitor> UserInputMonitor::Create( | 376 scoped_ptr<UserInputMonitor> UserInputMonitor::Create( |
| 378 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, | 377 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, |
| 379 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) { | 378 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) { |
| 380 return scoped_ptr<UserInputMonitor>( | 379 return scoped_ptr<UserInputMonitor>( |
| 381 new UserInputMonitorLinux(io_task_runner)); | 380 new UserInputMonitorLinux(io_task_runner)); |
| 382 } | 381 } |
| 383 | 382 |
| 384 } // namespace media | 383 } // namespace media |
| OLD | NEW |