Chromium Code Reviews| Index: ui/base/ime/input_method.h |
| diff --git a/ui/base/ime/input_method.h b/ui/base/ime/input_method.h |
| index 164b1f1a7e80ceb53cb0d8a66f877a353341bb65..0b73eff345057feb23e93d1a68cf3b778b8b63e8 100644 |
| --- a/ui/base/ime/input_method.h |
| +++ b/ui/base/ime/input_method.h |
| @@ -78,7 +78,7 @@ class InputMethod { |
| // Sets the text input client which receives text input events such as |
| // SetCompositionText(). |client| can be NULL. A gfx::NativeWindow which |
| - // implementes TextInputClient interface, e.g. NWA and RWHVA, should register |
| + // implements TextInputClient interface, e.g. NWA and RWHVA, should register |
| // itself by calling the method when it is focused, and unregister itself by |
| // calling the method with NULL when it is unfocused. |
| virtual void SetFocusedTextInputClient(TextInputClient* client) = 0; |
| @@ -136,7 +136,7 @@ class InputMethod { |
| // TODO(yoichio): Following 3 methods(GetTextInputType, GetTextInputMode and |
| // CanComposeInline) calls client's same method and returns its value. It is |
| - // not InputMethod itself's infomation. So rename these to |
| + // not InputMethod itself's information. So rename these to |
| // GetClientTextInputType and so on. |
| // Gets the text input type of the focused text input client. Returns |
| // ui::TEXT_INPUT_TYPE_NONE if there is no focused client. |
| @@ -161,6 +161,18 @@ class InputMethod { |
| // Displays an on screen keyboard if enabled. |
| virtual void ShowImeIfNeeded() = 0; |
| + // Called by an on screen keyboard controller to specify whether focusing a |
| + // text input element will show the on screen keyboard. |
| + virtual void SetSupportsOnScreenKeyboard(bool supported) = 0; |
|
Shu Chen
2015/01/06 02:19:51
As commented by yukawa@, this looks strange.
I sup
Shu Chen
2015/01/06 02:35:25
A solution just came to my mind to leverage ui::in
Shu Chen
2015/01/06 02:38:39
Hold on, there is no platform specific implementat
|
| + |
| + // Returns true if focusing a text input element will show an on screen |
| + // keyboard. |
| + virtual bool SupportsOnScreenKeyboard() const = 0; |
| + |
| + // Called by an on screen keyboard controller when the on screen keyboard was |
| + // requested to be shown, but was already showing. |
| + virtual void OnKeyboardBoundsUnchanged() = 0; |
|
Shu Chen
2015/01/06 02:19:51
The naming may cause confusion as InputMethodObser
|
| + |
| // Management of the observer list. |
| virtual void AddObserver(InputMethodObserver* observer) = 0; |
| virtual void RemoveObserver(InputMethodObserver* observer) = 0; |