summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/speech_input_dispatcher.h
Commit message (Collapse)AuthorAgeFilesLines
* Part 1 of repairing regressions to my old clang check plugins so Nico canerg@google.com2011-01-271-1/+1
| | | | | | | | | | | deploy the clang plugins to the waterfall/trybots. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6366019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72846 0039d316-1c4b-4281-b951-d872f2087c98
* If user had consented for metrics reporting, send speech input request ↵satish@chromium.org2011-01-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | origin to the server. This is the chromium side of the webkit patch https://bugs.webkit.org/show_bug.cgi?id=52718. Suggested reviewer split: wtc@ - the 2 url_fetcher.* files hans@ - rest of the files I needed to add a URLFetcher::set_referrer() method to send the origin url in the Referer header. Also I had to create a new IPC params struct for startRecognition since the number of parameters exceed what is provided by the macros. And in the process I also moved the speech input IPC messages to their own source files. BUG=none TEST=No change in functionality except additional debug info sent to server. Review URL: http://codereview.chromium.org/6308009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71949 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-1/+1
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71585 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce RenderView::Observer interface so that RenderView doesn't have to ↵jam@chromium.org2011-01-151-10/+6
| | | | | | | | know about the details of every feature. Observers get to filter and send IPC messages, and basic notifications of frame related events.I've moved over AutoFill related classes, and also made AutoFillManager implement the new WebAutoFillClient interface. For the rest of the classes, they implement the interface just for message filtering. Review URL: http://codereview.chromium.org/6151011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71517 0039d316-1c4b-4281-b951-d872f2087c98
* Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ↵jam@chromium.org2010-12-241-4/+4
| | | | | | | | | whether a message was processed or not. TBR=brettw Review URL: http://codereview.chromium.org/5978003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70139 0039d316-1c4b-4281-b951-d872f2087c98
* Add the "virtual" keyword on method overrides that are missing it.erg@google.com2010-12-081-6/+6
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5648004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68606 0039d316-1c4b-4281-b951-d872f2087c98
* Language tag for speech.leandrogracia@chromium.org2010-11-011-6/+1
| | | | | | | | | | | | | | | | | | | | This is the 3rd in a 4-sided patch to add language attribute support to speech input. The other patches can be found here: 1st - http://codereview.chromium.org/3615005/show 2nd - https://bugs.webkit.org/show_bug.cgi?id=47089 4th - https://bugs.webkit.org/show_bug.cgi?id=47420 This patch will be submitted once the webkit change has been rolled into chromium DEPS. Also, a last webkit cleanup patch will be submitted at any point after the 2nd patch. BUG=53598 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64466 Review URL: http://codereview.chromium.org/3595018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64596 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64466 - Language tag for speech.nirnimesh@chromium.org2010-10-291-1/+6
| | | | | | | | | | | | | | | | | | | | | This is the 3rd in a 4-sided patch to add language attribute support to speech input. The other patches can be found here: 1st - http://codereview.chromium.org/3615005/show 2nd - https://bugs.webkit.org/show_bug.cgi?id=47089 4th - https://bugs.webkit.org/show_bug.cgi?id=47420 This patch will be submitted once the webkit change has been rolled into chromium DEPS. Also, a last webkit cleanup patch will be submitted at any point after the 2nd patch. BUG=53598 TEST= Review URL: http://codereview.chromium.org/3595018 TBR=leandrogracia@chromium.org Review URL: http://codereview.chromium.org/4163005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64469 0039d316-1c4b-4281-b951-d872f2087c98
* Language tag for speech.leandrogracia@chromium.org2010-10-291-6/+1
| | | | | | | | | | | | | | | | | | This is the 3rd in a 4-sided patch to add language attribute support to speech input. The other patches can be found here: 1st - http://codereview.chromium.org/3615005/show 2nd - https://bugs.webkit.org/show_bug.cgi?id=47089 4th - https://bugs.webkit.org/show_bug.cgi?id=47420 This patch will be submitted once the webkit change has been rolled into chromium DEPS. Also, a last webkit cleanup patch will be submitted at any point after the 2nd patch. BUG=53598 TEST= Review URL: http://codereview.chromium.org/3595018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64466 0039d316-1c4b-4281-b951-d872f2087c98
* Argument order modification to make code more readable.leandrogracia@chromium.org2010-10-291-1/+2
| | | | | | | | | | | Fix to patch in http://codereview.chromium.org/3615005/show since startRecognition calls now include a grammar string parameter. BUG=53598 TEST=none Review URL: http://codereview.chromium.org/4140009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64405 0039d316-1c4b-4281-b951-d872f2087c98
* Added grammar attribute to speech input.satish@chromium.org2010-10-281-2/+4
| | | | | | | | | | | | | | | | | | In https://bugs.webkit.org/show_bug.cgi?id=48339 we added support for a 'x-webkit-grammar' attribute for speech input. In this CL we receive that as a parameter to SpeechInputDispatcher::startRecognition() and pass it up to the SpeechRecognitionRequest object which encodes and sends it as a url parameter to the server. To aid in this I also moved the speech server URL from SpeechRecognizer.cc to SpeechRecognitionRequest.cc. Also added a browser test for this attribute. It is marked as FLAKY now because the code is exactly the same as with the TestBasicRecognition test in that file and that test is FLAKY now. Both are marked with the same bug and I will remove the FLAKY_ prefix on both when the bug is closed. BUG=none TEST=browser_tests --gtest_filter=SpeechInputBrowserTest.GrammarAttribute Review URL: http://codereview.chromium.org/4183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64213 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to parse multiple recognition results and send them to WebKit.satish@chromium.org2010-10-261-1/+3
| | | | | | | | | | | | The relevant Webkit change was submitted earlier: http://bugs.webkit.org/show_bug.cgi?id=48068 The unit tests have been updated for the multi-results case as well. BUG=none TEST=unit_tests --gtest_filter=Speech* Review URL: http://codereview.chromium.org/4119004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63891 0039d316-1c4b-4281-b951-d872f2087c98
* This is the first CL in a 4-sided patch to add language attribute support to ↵satish@chromium.org2010-10-151-0/+7
| | | | | | | | | | | | | | | | speech input. The webkit change is at https://bugs.webkit.org/show_bug.cgi?id=47089 and will be submitted after this CL. Once the webkit change has been rolled into chromium DEPS the remaining chromium changes will be submitted by http://codereview.chromium.org/3595018/show . A last webkit patch will be submitted too to remove temporary fixes introduced to avoid test_shell breaking: https://bugs.webkit.org/show_bug.cgi?id=47420 . This patch implements the incoming changes in the WebKit::SpeechInputDispatcher interface. Landing for Leandro Gracia Gil <leandrogracia@google.com>. Original code review: http://codereview.chromium.org/3615005/show BUG=53598 TEST=none Review URL: http://codereview.chromium.org/3750011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62717 0039d316-1c4b-4281-b951-d872f2087c98
* Displays a speech input UI bubble during speech recognition.satish@chromium.org2010-08-271-1/+2
| | | | | | | | | | | | | | | | | | | 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
* Support for multiple speech enabled elements in same page.satish@chromium.org2010-08-171-6/+6
| | | | | | | | | | | | | | | This is the chromium side of https://bugs.webkit.org/show_bug.cgi?id=43922. For all speech input requests WebKit now sends a 'requestId' which identifies the input element within the page. This requestId is returned back to WebKit in all the speech input callbacks/events. Within chromium, the pair (render view id, request id) uniquely identifies a caller and we introduce the SpeechInputCallerId to hold this data. All code which was previously using render view id now uses this caller id. Once this is working fully on both ends I'll add relevant browser tests. BUG=none TEST=manually Review URL: http://codereview.chromium.org/3130018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56333 0039d316-1c4b-4281-b951-d872f2087c98
* Adds chromium side plumbing to pass speech input calls back and forth with ↵satish@chromium.org2010-08-041-0/+46
WebKit. Please advise if any of the code needs to be within "#if ENABLE_INPUT_SPEECH", since most of the speech input code in webkit is under "#if ENABLE(INPUT_SPEECH)" - Created renderer/SpeechInputDispatcher, implements WebKit::WebSpeechInputController which is used by WebView for invoking speech input. - Created browser/speech/SpeechInputDispatcherHost to receive IPC messages from the above SpeechInputDispatcher. Nothing done yet apart from receiving the messages. - Creates new directory chrome/browser/speech, this will be used for SpeechInputDispatcherHost, network based speech recognizer, speech audio recording/buffering code as well as speech output (Text-to-speech) code in future. BUG=none TEST=no functionality to test yet. Review URL: http://codereview.chromium.org/3035035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54981 0039d316-1c4b-4281-b951-d872f2087c98