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

Side by Side Diff: media/base/user_input_monitor_mac.cc

Issue 23702008: Adds the UserInputMonitor implementation for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
OLDNEW
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 <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 8
9 namespace media { 9 namespace media {
10 namespace { 10 namespace {
11 11
12 class UserInputMonitorMac : public UserInputMonitor { 12 class UserInputMonitorMac : public UserInputMonitor {
13 public: 13 public:
14 UserInputMonitorMac(); 14 UserInputMonitorMac();
15 virtual ~UserInputMonitorMac();
16
17 virtual size_t GetKeyPressCount() const OVERRIDE; 15 virtual size_t GetKeyPressCount() const OVERRIDE;
18 16
19 private: 17 private:
18 virtual ~UserInputMonitorMac();
20 virtual void StartMouseMonitoring() OVERRIDE; 19 virtual void StartMouseMonitoring() OVERRIDE;
21 virtual void StopMouseMonitoring() OVERRIDE; 20 virtual void StopMouseMonitoring() OVERRIDE;
22 virtual void StartKeyboardMonitoring() OVERRIDE; 21 virtual void StartKeyboardMonitoring() OVERRIDE;
23 virtual void StopKeyboardMonitoring() OVERRIDE; 22 virtual void StopKeyboardMonitoring() OVERRIDE;
24 23
25 DISALLOW_COPY_AND_ASSIGN(UserInputMonitorMac); 24 DISALLOW_COPY_AND_ASSIGN(UserInputMonitorMac);
26 }; 25 };
27 26
28 UserInputMonitorMac::UserInputMonitorMac() {} 27 UserInputMonitorMac::UserInputMonitorMac() {}
29 28
(...skipping 11 matching lines...) Expand all
41 40
42 // TODO(jiayl): add the impl. 41 // TODO(jiayl): add the impl.
43 void UserInputMonitorMac::StopMouseMonitoring() { NOTIMPLEMENTED(); } 42 void UserInputMonitorMac::StopMouseMonitoring() { NOTIMPLEMENTED(); }
44 43
45 void UserInputMonitorMac::StartKeyboardMonitoring() {} 44 void UserInputMonitorMac::StartKeyboardMonitoring() {}
46 45
47 void UserInputMonitorMac::StopKeyboardMonitoring() {} 46 void UserInputMonitorMac::StopKeyboardMonitoring() {}
48 47
49 } // namespace 48 } // namespace
50 49
51 scoped_ptr<UserInputMonitor> UserInputMonitor::Create( 50 scoped_refptr<UserInputMonitor> UserInputMonitor::Create(
52 const scoped_refptr<base::SingleThreadTaskRunner>& input_task_runner, 51 const scoped_refptr<base::SingleThreadTaskRunner>& input_task_runner,
53 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) { 52 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) {
54 return scoped_ptr<UserInputMonitor>(new UserInputMonitorMac()); 53 return scoped_refptr<UserInputMonitor>(new UserInputMonitorMac());
55 } 54 }
56 55
57 } // namespace media 56 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698