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 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 | 280 |
281 // SyncWriter is used only in low-latency mode for synchronous writing. | 281 // SyncWriter is used only in low-latency mode for synchronous writing. |
282 SyncWriter* sync_writer_; | 282 SyncWriter* sync_writer_; |
283 | 283 |
284 static Factory* factory_; | 284 static Factory* factory_; |
285 | 285 |
286 double max_volume_; | 286 double max_volume_; |
287 | 287 |
288 UserInputMonitor* user_input_monitor_; | 288 UserInputMonitor* user_input_monitor_; |
289 | 289 |
290 uint32_t prev_key_down_count_; | |
Mark Mentovai
2013/08/22 19:00:25
I think you should put this in #if defined(OS_MACO
| |
291 | |
290 // True if any key has been pressed after the last OnData call. | 292 // True if any key has been pressed after the last OnData call. |
291 bool key_pressed_; | 293 bool key_pressed_; |
292 | 294 |
293 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 295 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
294 }; | 296 }; |
295 | 297 |
296 } // namespace media | 298 } // namespace media |
297 | 299 |
298 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 300 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |