| 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..ef9f2426232d70ad6f00c0961080e412d2a221fc 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;
|
| +
|
| + // 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 NotifyKeyboardBoundsUnchanged() = 0;
|
| +
|
| // Management of the observer list.
|
| virtual void AddObserver(InputMethodObserver* observer) = 0;
|
| virtual void RemoveObserver(InputMethodObserver* observer) = 0;
|
|
|