summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 17:51:10 +0000
committerbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 17:51:10 +0000
commit9fa9b2a457b0e0854a5aa958dfa7566c1c463256 (patch)
tree5fc6b7cc0589efdde11051493c161ba49bf55a50 /ui/keyboard/keyboard_controller_proxy.h
parentcef49836ac72092482edab557acc1274bb54c5e1 (diff)
downloadchromium_src-9fa9b2a457b0e0854a5aa958dfa7566c1c463256.zip
chromium_src-9fa9b2a457b0e0854a5aa958dfa7566c1c463256.tar.gz
chromium_src-9fa9b2a457b0e0854a5aa958dfa7566c1c463256.tar.bz2
Allow virtual keyboard window to access audio stream and speech api for voice input
BUG=238350 TEST= 1. navigate to chrome://flags 2. turn on virtual keyboard flag 3. login again. focus on any input box (virtual keyboard should show up) 4. press "mic" button, it should turn to green. 5. speak 6. result should be displayed in the input box Review URL: https://chromiumcodereview.appspot.com/14646041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index 09e88cd..e88e52b 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -6,6 +6,7 @@
#define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
#include "base/memory/scoped_ptr.h"
+#include "content/public/common/media_stream_request.h"
#include "ui/keyboard/keyboard_export.h"
namespace aura {
@@ -40,6 +41,11 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// text input context.
virtual ui::InputMethod* GetInputMethod() = 0;
+ // Requests the audio input from microphone for speech input.
+ virtual void RequestAudioInput(content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback) = 0;
+
// Shows the container window of the keyboard. The default implementation
// simply shows the container. An overridden implementation can set up
// necessary animation, or delay the visibility change as it desires.