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

Unified Diff: content/renderer/media/webrtc_local_audio_track.cc

Issue 21183002: Adding key press detection in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_local_audio_track.cc
diff --git a/content/renderer/media/webrtc_local_audio_track.cc b/content/renderer/media/webrtc_local_audio_track.cc
index fc89468536be3eb6f41e135086b49e8738d248c8..6b6ea98ef69c020bdb28742cc6b80dabb0867e16 100644
--- a/content/renderer/media/webrtc_local_audio_track.cc
+++ b/content/renderer/media/webrtc_local_audio_track.cc
@@ -48,7 +48,8 @@ void WebRtcLocalAudioTrack::CaptureData(const int16* audio_data,
int number_of_channels,
int number_of_frames,
int audio_delay_milliseconds,
- double volume) {
+ double volume,
+ bool key_pressed) {
SinkList sinks;
{
base::AutoLock auto_lock(lock_);
@@ -65,8 +66,12 @@ void WebRtcLocalAudioTrack::CaptureData(const int16* audio_data,
for (SinkList::const_iterator it = sinks.begin();
it != sinks.end();
++it) {
- (*it)->CaptureData(audio_data, number_of_channels, number_of_frames,
- audio_delay_milliseconds, volume);
+ (*it)->CaptureData(audio_data,
+ number_of_channels,
+ number_of_frames,
+ audio_delay_milliseconds,
+ volume,
+ key_pressed);
}
}

Powered by Google App Engine
This is Rietveld 408576698