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

Side by Side Diff: media/audio/audio_input_controller.h

Issue 22801007: Adds the UserInputMonitor implementation for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 (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
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_input_controller.cc » ('j') | media/audio/audio_input_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698