diff options
Diffstat (limited to 'chromium/ui/base/ime/input_method.h')
-rw-r--r-- | chromium/ui/base/ime/input_method.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/chromium/ui/base/ime/input_method.h b/chromium/ui/base/ime/input_method.h index 33c7beaed5d..462e0b0a64e 100644 --- a/chromium/ui/base/ime/input_method.h +++ b/chromium/ui/base/ime/input_method.h @@ -9,7 +9,6 @@ #include "base/basictypes.h" #include "base/event_types.h" -#include "base/i18n/rtl.h" #include "ui/base/ime/text_input_mode.h" #include "ui/base/ime/text_input_type.h" @@ -43,11 +42,11 @@ class TextInputClient; // - Keeps track of the focused TextInputClient to see which client can call // APIs, OnTextInputTypeChanged, OnCaretBoundsChanged, and CancelComposition, // that change the state of the input method. -// In Aura environment, aura::RootWindowHost creates an instance of +// In Aura environment, aura::WindowTreeHost creates an instance of // ui::InputMethod and owns it. class InputMethod { public: - // TODO(yukawa): Move these typedef into ime_constants.h or somewhere. + #if defined(OS_WIN) typedef LRESULT NativeEventResult; #else @@ -126,10 +125,6 @@ class InputMethod { // tag, or an empty string if the input method cannot provide it. virtual std::string GetInputLocale() = 0; - // Returns the text direction of current keyboard layout or input method, or - // base::i18n::UNKNOWN_DIRECTION if the input method cannot provide it. - virtual base::i18n::TextDirection GetInputTextDirection() = 0; - // Checks if the input method is active, i.e. if it's ready for processing // keyboard event and generate composition or text result. // If the input method is inactive, then it's not necessary to inform it the @@ -159,6 +154,9 @@ class InputMethod { // of IME popups is not supported. virtual bool IsCandidatePopupOpen() const = 0; + // Displays an on screen keyboard if enabled. + virtual void ShowImeIfNeeded() = 0; + // Management of the observer list. virtual void AddObserver(InputMethodObserver* observer) = 0; virtual void RemoveObserver(InputMethodObserver* observer) = 0; |