| 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 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 friend class base::RefCountedThreadSafe<Core>; | 170 friend class base::RefCountedThreadSafe<Core>; |
| 171 virtual ~Core(); | 171 virtual ~Core(); |
| 172 | 172 |
| 173 void StartOnUiThread(); | 173 void StartOnUiThread(); |
| 174 void StopOnUiThread(); | 174 void StopOnUiThread(); |
| 175 | 175 |
| 176 // EventHandler interface. | 176 // EventHandler interface. |
| 177 virtual void OnLocalMouseMoved( | 177 virtual void OnLocalMouseMoved( |
| 178 const webrtc::DesktopVector& position) OVERRIDE; | 178 const webrtc::DesktopVector& position) override; |
| 179 virtual void OnDisconnectShortcut() OVERRIDE; | 179 virtual void OnDisconnectShortcut() override; |
| 180 | 180 |
| 181 // Task runner on which public methods of this class must be called. | 181 // Task runner on which public methods of this class must be called. |
| 182 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; | 182 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; |
| 183 | 183 |
| 184 // Task runner on which |window_| is created. | 184 // Task runner on which |window_| is created. |
| 185 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 185 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 186 | 186 |
| 187 LocalInputMonitorManager* manager_; | 187 LocalInputMonitorManager* manager_; |
| 188 | 188 |
| 189 // Invoked in the |caller_task_runner_| thread to report local mouse events | 189 // Invoked in the |caller_task_runner_| thread to report local mouse events |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create( | 279 scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create( |
| 280 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 280 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 281 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 281 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 282 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 282 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 283 base::WeakPtr<ClientSessionControl> client_session_control) { | 283 base::WeakPtr<ClientSessionControl> client_session_control) { |
| 284 return make_scoped_ptr(new LocalInputMonitorMac( | 284 return make_scoped_ptr(new LocalInputMonitorMac( |
| 285 caller_task_runner, ui_task_runner, client_session_control)); | 285 caller_task_runner, ui_task_runner, client_session_control)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 } // namespace remoting | 288 } // namespace remoting |
| OLD | NEW |