Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: remoting/host/local_input_monitor_mac.mm

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/input_injector_mac.cc ('k') | remoting/host/policy_hack/policy_watcher_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/input_injector_mac.cc ('k') | remoting/host/policy_hack/policy_watcher_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698