Chromium Code Reviews| Index: ui/base/ime/linux/linux_input_method_context.h |
| diff --git a/ui/base/ime/linux/linux_input_method_context.h b/ui/base/ime/linux/linux_input_method_context.h |
| index 09fc04bce03b3ec84981d742e19c4ee242e8b733..4611501d0629385cebd3c16f7fdd8d77ec146aad 100644 |
| --- a/ui/base/ime/linux/linux_input_method_context.h |
| +++ b/ui/base/ime/linux/linux_input_method_context.h |
| @@ -29,16 +29,19 @@ class UI_BASE_IME_EXPORT LinuxInputMethodContext { |
| // before dispatching a key event. |
| virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) = 0; |
|
James Su
2015/04/09 08:40:02
This class should accept NativeEvent rather than u
Shu Chen
2015/04/10 05:26:52
Done.
|
| + // Tells the system IME for the cursor rect which is relative to the |
| + // client window rect. |
| + virtual void SetCursorLocation(const gfx::Rect& rect) = 0; |
| + |
| // Resets the context. A client needs to call OnTextInputTypeChanged() again |
| // before calling DispatchKeyEvent(). |
| virtual void Reset() = 0; |
| - // Notifies the context that the text input type has changed. |
| - virtual void OnTextInputTypeChanged(TextInputType text_input_type) = 0; |
| + // Focuses the context. |
| + virtual void Focus() = 0; |
| - // Notifies the context that the caret bounds have changed. |caret_bounds| is |
| - // relative to screen coordinates. |
| - virtual void OnCaretBoundsChanged(const gfx::Rect& caret_bounds) = 0; |
| + // Blurs the context. |
| + virtual void Blur() = 0; |
| }; |
| // An interface of callback functions called from LinuxInputMethodContext. |