| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/host/local_input_monitor.h" | 5 #include "remoting/host/local_input_monitor.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "remoting/host/local_input_monitor_thread_linux.h" | 9 #include "remoting/host/local_input_monitor_thread_linux.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 class LocalInputMonitorLinux : public LocalInputMonitor { | 15 class LocalInputMonitorLinux : public LocalInputMonitor { |
| 16 public: | 16 public: |
| 17 LocalInputMonitorLinux(); | 17 LocalInputMonitorLinux(); |
| 18 ~LocalInputMonitorLinux(); | 18 virtual ~LocalInputMonitorLinux(); |
| 19 | 19 |
| 20 virtual void Start(MouseMoveObserver* mouse_move_observer, | 20 virtual void Start(MouseMoveObserver* mouse_move_observer, |
| 21 const base::Closure& disconnect_callback) OVERRIDE; | 21 const base::Closure& disconnect_callback) OVERRIDE; |
| 22 virtual void Stop() OVERRIDE; | 22 virtual void Stop() OVERRIDE; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 LocalInputMonitorThread* thread_; | 25 LocalInputMonitorThread* thread_; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 LocalInputMonitorLinux::LocalInputMonitorLinux() | 28 LocalInputMonitorLinux::LocalInputMonitorLinux() |
| (...skipping 21 matching lines...) Expand all Loading... |
| 50 thread_ = 0; | 50 thread_ = 0; |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace | 53 } // namespace |
| 54 | 54 |
| 55 scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create() { | 55 scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create() { |
| 56 return scoped_ptr<LocalInputMonitor>(new LocalInputMonitorLinux()); | 56 return scoped_ptr<LocalInputMonitor>(new LocalInputMonitorLinux()); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace remoting | 59 } // namespace remoting |
| OLD | NEW |