| OLD | NEW |
| 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 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 | 11 |
| 9 namespace media { | 12 namespace media { |
| 10 namespace { | 13 namespace { |
| 11 | 14 |
| 12 class UserInputMonitorMac : public UserInputMonitor { | 15 class UserInputMonitorMac : public UserInputMonitor { |
| 13 public: | 16 public: |
| 14 UserInputMonitorMac(); | 17 UserInputMonitorMac(); |
| 15 ~UserInputMonitorMac() override; | 18 ~UserInputMonitorMac() override; |
| 16 | 19 |
| 17 size_t GetKeyPressCount() const override; | 20 size_t GetKeyPressCount() const override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 | 51 |
| 49 } // namespace | 52 } // namespace |
| 50 | 53 |
| 51 scoped_ptr<UserInputMonitor> UserInputMonitor::Create( | 54 scoped_ptr<UserInputMonitor> UserInputMonitor::Create( |
| 52 const scoped_refptr<base::SingleThreadTaskRunner>& input_task_runner, | 55 const scoped_refptr<base::SingleThreadTaskRunner>& input_task_runner, |
| 53 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) { | 56 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) { |
| 54 return scoped_ptr<UserInputMonitor>(new UserInputMonitorMac()); | 57 return scoped_ptr<UserInputMonitor>(new UserInputMonitorMac()); |
| 55 } | 58 } |
| 56 | 59 |
| 57 } // namespace media | 60 } // namespace media |
| OLD | NEW |