diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 11:59:03 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 11:59:03 +0000 |
commit | 6a7746dbcef8cfcef182887a337eb297d476f98e (patch) | |
tree | 2ef8870775cd910bc965bbd98b3a01c5627d67ec /chrome/chrome_browser.gypi | |
parent | 32a99f81432bcc1a8ee515b34e6dfdf81c3fa090 (diff) | |
download | chromium_src-6a7746dbcef8cfcef182887a337eb297d476f98e.zip chromium_src-6a7746dbcef8cfcef182887a337eb297d476f98e.tar.gz chromium_src-6a7746dbcef8cfcef182887a337eb297d476f98e.tar.bz2 |
Displays a speech input UI bubble during speech recognition.
The webkit code passes in display rect of the input element requesting speech input
and we create a UI bubble pointing at this element when starting speech input. The
user can click outside the bubble to close it, which aborts recognition if we were
still recording audio. The user can also click the cancel link in the bubble which
aborts recognition irrespective of what state it is in now.
Added a SpeechInputBubbleController class to take care of marshalling the requests
between the speech input code in IO thread and the UI bubble in the UI thread. Also
added a unit test for this class.
BUG=none
TEST=unit_tests --gtest_filter=SpeechInputBubbleControllerTest.*
Review URL: http://codereview.chromium.org/3156048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_browser.gypi')
-rw-r--r-- | chrome/chrome_browser.gypi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index b1f14b2..f5ee2d2 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -2445,6 +2445,9 @@ 'browser/speech/endpointer/energy_endpointer.h', 'browser/speech/endpointer/energy_endpointer_params.h', 'browser/speech/speech_input_bubble.h', + 'browser/speech/speech_input_bubble.cc', + 'browser/speech/speech_input_bubble_controller.cc', + 'browser/speech/speech_input_bubble_controller.h', 'browser/speech/speech_input_dispatcher_host.cc', 'browser/speech/speech_input_dispatcher_host.h', 'browser/speech/speech_input_manager.cc', @@ -2953,7 +2956,7 @@ 'browser/views/sad_tab_view.h', 'browser/views/select_file_dialog.cc', 'browser/views/shell_dialogs_win.cc', - 'browser/views/speech_input_bubble.cc', + 'browser/views/speech_input_bubble_view.cc', 'browser/views/ssl_client_certificate_selector_win.cc', 'browser/views/status_bubble_views.cc', 'browser/views/status_bubble_views.h', |