| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorMac); | 53 DISALLOW_COPY_AND_ASSIGN(LocalInputMonitorMac); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace | 56 } // namespace |
| 57 } // namespace remoting | 57 } // namespace remoting |
| 58 | 58 |
| 59 @interface LocalInputMonitorManager : NSObject { | 59 @interface LocalInputMonitorManager : NSObject { |
| 60 @private | 60 @private |
| 61 GTMCarbonHotKey* hotKey_; | 61 GTMCarbonHotKey* hotKey_; |
| 62 CFRunLoopSourceRef mouseRunLoopSource_; | 62 CFRunLoopSourceRef mouseRunLoopSource_; |
| 63 base::mac::ScopedCFTypeRef<CFMachPortRef> mouseMachPort_; | 63 base::ScopedCFTypeRef<CFMachPortRef> mouseMachPort_; |
| 64 remoting::LocalInputMonitorMac::EventHandler* monitor_; | 64 remoting::LocalInputMonitorMac::EventHandler* monitor_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 - (id)initWithMonitor:(remoting::LocalInputMonitorMac::EventHandler*)monitor; | 67 - (id)initWithMonitor:(remoting::LocalInputMonitorMac::EventHandler*)monitor; |
| 68 | 68 |
| 69 // Called when the hotKey is hit. | 69 // Called when the hotKey is hit. |
| 70 - (void)hotKeyHit:(GTMCarbonHotKey*)hotKey; | 70 - (void)hotKeyHit:(GTMCarbonHotKey*)hotKey; |
| 71 | 71 |
| 72 // Called when the local mouse moves | 72 // Called when the local mouse moves |
| 73 - (void)localMouseMoved:(const SkIPoint&)mousePos; | 73 - (void)localMouseMoved:(const SkIPoint&)mousePos; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 268 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 269 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 269 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 270 base::WeakPtr<ClientSessionControl> client_session_control) { | 270 base::WeakPtr<ClientSessionControl> client_session_control) { |
| 271 return scoped_ptr<LocalInputMonitor>( | 271 return scoped_ptr<LocalInputMonitor>( |
| 272 new LocalInputMonitorMac(caller_task_runner, | 272 new LocalInputMonitorMac(caller_task_runner, |
| 273 ui_task_runner, | 273 ui_task_runner, |
| 274 client_session_control)); | 274 client_session_control)); |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace remoting | 277 } // namespace remoting |
| OLD | NEW |