OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/public/common/media_stream_request.h" |
9 #include "ui/keyboard/keyboard_export.h" | 10 #include "ui/keyboard/keyboard_export.h" |
10 | 11 |
11 namespace aura { | 12 namespace aura { |
12 class Window; | 13 class Window; |
13 } | 14 } |
14 namespace content { | 15 namespace content { |
15 class BrowserContext; | 16 class BrowserContext; |
16 class SiteInstance; | 17 class SiteInstance; |
17 class WebContents; | 18 class WebContents; |
18 } | 19 } |
(...skipping 14 matching lines...) Expand all Loading... |
33 virtual ~KeyboardControllerProxy(); | 34 virtual ~KeyboardControllerProxy(); |
34 | 35 |
35 // Gets the virtual keyboard window. Ownership of the returned Window remains | 36 // Gets the virtual keyboard window. Ownership of the returned Window remains |
36 // with the proxy. | 37 // with the proxy. |
37 virtual aura::Window* GetKeyboardWindow(); | 38 virtual aura::Window* GetKeyboardWindow(); |
38 | 39 |
39 // Gets the InputMethod that will provide notifications about changes in the | 40 // Gets the InputMethod that will provide notifications about changes in the |
40 // text input context. | 41 // text input context. |
41 virtual ui::InputMethod* GetInputMethod() = 0; | 42 virtual ui::InputMethod* GetInputMethod() = 0; |
42 | 43 |
| 44 // Requests the audio input from microphone for speech input. |
| 45 virtual void RequestAudioInput(content::WebContents* web_contents, |
| 46 const content::MediaStreamRequest& request, |
| 47 const content::MediaResponseCallback& callback) = 0; |
| 48 |
43 // Shows the container window of the keyboard. The default implementation | 49 // Shows the container window of the keyboard. The default implementation |
44 // simply shows the container. An overridden implementation can set up | 50 // simply shows the container. An overridden implementation can set up |
45 // necessary animation, or delay the visibility change as it desires. | 51 // necessary animation, or delay the visibility change as it desires. |
46 virtual void ShowKeyboardContainer(aura::Window* container); | 52 virtual void ShowKeyboardContainer(aura::Window* container); |
47 | 53 |
48 // Hides the container window of the keyboard. The default implementation | 54 // Hides the container window of the keyboard. The default implementation |
49 // simply hides the container. An overridden implementation can set up | 55 // simply hides the container. An overridden implementation can set up |
50 // necesasry animation, or delay the visibility change as it desires. | 56 // necesasry animation, or delay the visibility change as it desires. |
51 virtual void HideKeyboardContainer(aura::Window* container); | 57 virtual void HideKeyboardContainer(aura::Window* container); |
52 | 58 |
(...skipping 10 matching lines...) Expand all Loading... |
63 | 69 |
64 private: | 70 private: |
65 scoped_ptr<content::WebContents> keyboard_contents_; | 71 scoped_ptr<content::WebContents> keyboard_contents_; |
66 | 72 |
67 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); | 73 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); |
68 }; | 74 }; |
69 | 75 |
70 } // namespace keyboard | 76 } // namespace keyboard |
71 | 77 |
72 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 78 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
OLD | NEW |