OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "media/audio/key_press_monitor.h" |
| 6 |
| 7 namespace media { |
| 8 |
| 9 KeyPressMonitor::KeyPressMonitor() {} |
| 10 |
| 11 KeyPressMonitor::~KeyPressMonitor() {} |
| 12 |
| 13 void KeyPressMonitor::AddKeyPressListener(KeyPressListener* listener) { |
| 14 base::AutoLock auto_lock(listeners_lock_); |
| 15 listeners_.AddObserver(listener); |
| 16 } |
| 17 |
| 18 void KeyPressMonitor::RemoveKeyPressListener(KeyPressListener* listener) { |
| 19 base::AutoLock auto_lock(listeners_lock_); |
| 20 listeners_.RemoveObserver(listener); |
| 21 } |
| 22 |
| 23 } // namespace media |
OLD | NEW |