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..a12bba0e37f7e0f517639fc1f1860aeb0f9e041e 100644 |
| --- a/ui/base/ime/linux/linux_input_method_context.h |
| +++ b/ui/base/ime/linux/linux_input_method_context.h |
| @@ -9,6 +9,9 @@ |
| #include "ui/base/ime/text_input_type.h" |
| #include "ui/base/ime/ui_base_ime_export.h" |
| +// X forward decls to avoid including Xlib.h in a header file. |
| +typedef unsigned long Window; |
|
Seigo Nonaka
2015/04/08 07:14:58
Who use this?
Shu Chen
2015/04/08 08:24:12
That is useless, removed.
|
| + |
| namespace gfx { |
| class Rect; |
| } |
| @@ -29,16 +32,19 @@ class UI_BASE_IME_EXPORT LinuxInputMethodContext { |
| // before dispatching a key event. |
| virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) = 0; |
| + // 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; |
| + // Focus the context. |
|
Seigo Nonaka
2015/04/08 07:14:58
nit: Focuses
Shu Chen
2015/04/08 08:24:12
Done.
|
| + 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. |