summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_parameters.h
diff options
context:
space:
mode:
authorjiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-15 07:41:01 +0000
committerjiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-15 07:41:01 +0000
commit781a1daa27f00ccb0749535b037d363618c781cf (patch)
tree9ec40fc06d0f711183ebf9b55d1f3586e97ea797 /media/audio/audio_parameters.h
parent84d07c149f8a67a6af8be270d78e9d25718d444c (diff)
downloadchromium_src-781a1daa27f00ccb0749535b037d363618c781cf.zip
chromium_src-781a1daa27f00ccb0749535b037d363618c781cf.tar.gz
chromium_src-781a1daa27f00ccb0749535b037d363618c781cf.tar.bz2
Adding key press detection in the browser process.
It works like this on the browser side: A new object KeyPressMonitor is created on BrowserMainLoop and passed to AudioInputRendererHost to pass to AudioInputController. AudioInputController::DoRecord calls KeyPressMonitor::AddKeyPressListener --> KeyPressMonitor listens to system key events through UserInputMonitor(only implemented on Linux) --> AudioInputController::OnKeyPressed is called and sets key_pressed_ --> When AudioInputController::OnData called, it writes key_pressed_ to shared memory along with the audio data buffer. On the renderer side a new param "key_pressed" is added through the code path of passing the flag to the webrtc voice engine. This CL includes all these changes except the implementation of UserInputMonitor for Windows and Mac. The impl of UserInputMonitor is mostly copied from remoting/host/local_input_monitor_linux.cc BUG= Review URL: https://chromiumcodereview.appspot.com/21183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_parameters.h')
-rw-r--r--media/audio/audio_parameters.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index 2817cd2..bc629a7 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -14,6 +14,7 @@ namespace media {
struct MEDIA_EXPORT AudioInputBufferParameters {
double volume;
uint32 size;
+ bool key_pressed;
};
// Use a struct-in-struct approach to ensure that we can calculate the required