| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONTENT_KEYBOARD_UI_CONTENT_H_ | 5 #ifndef UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| 6 #define UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ | 6 #define UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 explicit KeyboardUIContent(content::BrowserContext* context); | 54 explicit KeyboardUIContent(content::BrowserContext* context); |
| 55 ~KeyboardUIContent() override; | 55 ~KeyboardUIContent() override; |
| 56 | 56 |
| 57 // Requests the audio input from microphone for speech input. | 57 // Requests the audio input from microphone for speech input. |
| 58 virtual void RequestAudioInput(content::WebContents* web_contents, | 58 virtual void RequestAudioInput(content::WebContents* web_contents, |
| 59 const content::MediaStreamRequest& request, | 59 const content::MediaStreamRequest& request, |
| 60 const content::MediaResponseCallback& callback) = 0; | 60 const content::MediaResponseCallback& callback) = 0; |
| 61 | 61 |
| 62 // Loads system virtual keyboard. Noop if the current virtual keyboard is | |
| 63 // system virtual keyboard. | |
| 64 virtual void LoadSystemKeyboard(); | |
| 65 | |
| 66 // Called when a window being observed changes bounds, to update its insets. | 62 // Called when a window being observed changes bounds, to update its insets. |
| 67 void UpdateInsetsForWindow(aura::Window* window); | 63 void UpdateInsetsForWindow(aura::Window* window); |
| 68 | 64 |
| 69 // Overridden from KeyboardUI: | 65 // Overridden from KeyboardUI: |
| 70 aura::Window* GetKeyboardWindow() override; | 66 aura::Window* GetKeyboardWindow() override; |
| 71 bool HasKeyboardWindow() const override; | 67 bool HasKeyboardWindow() const override; |
| 72 bool ShouldWindowOverscroll(aura::Window* window) const override; | 68 bool ShouldWindowOverscroll(aura::Window* window) const override; |
| 73 void ReloadKeyboardIfNeeded() override; | 69 void ReloadKeyboardIfNeeded() override; |
| 74 void InitInsets(const gfx::Rect& new_bounds) override; | 70 void InitInsets(const gfx::Rect& new_bounds) override; |
| 75 void ResetInsets() override; | 71 void ResetInsets() override; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 std::unique_ptr<wm::Shadow> shadow_; | 122 std::unique_ptr<wm::Shadow> shadow_; |
| 127 | 123 |
| 128 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; | 124 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; |
| 129 | 125 |
| 130 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); | 126 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); |
| 131 }; | 127 }; |
| 132 | 128 |
| 133 } // namespace keyboard | 129 } // namespace keyboard |
| 134 | 130 |
| 135 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ | 131 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| OLD | NEW |