|
Adding key press detection in the browser process.
It works like this on the browser side:
A new object UserInputMonitor is created on BrowserMainLoop and passed to AudioInputRendererHost to pass to AudioInputController.
AudioInputController::DoRecord calls UserInputMonitor::AddKeyStrokeListener --> UserInputMonitor listens to system key events (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=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217768
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217844
Total comments: 6
Total comments: 4
Total comments: 5
Total comments: 1
Total comments: 15
Total comments: 21
Total comments: 19
Total comments: 16
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+931 lines, -159 lines) |
Patch |
 |
M |
content/browser/browser_main_loop.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_renderer_host.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_renderer_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+17 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_sync_writer.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_sync_writer.cc
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognizer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webaudio_capturer_source.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_capturer.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_capturer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+14 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_capturer_sink_owner.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_capturer_sink_owner.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_device_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_device_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_audio_device_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_renderer.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_renderer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_track.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_track.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webrtc_local_audio_track_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+89 lines, -43 lines |
0 comments
|
Download
|
 |
M |
content/test/webrtc_audio_device_test.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_controller.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
9 chunks |
+35 lines, -11 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_controller.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
10 chunks |
+37 lines, -16 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_controller_unittest.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+36 lines, -14 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_device.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_parameters.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/test_audio_input_controller_factory.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/audio/test_audio_input_controller_factory.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/audio_capturer_source.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
media/base/user_input_monitor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+99 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/base/user_input_monitor.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+87 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/base/user_input_monitor_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+338 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/base/user_input_monitor_mac.mm
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/base/user_input_monitor_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/media.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
6 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
Total messages: 69 (0 generated)
|