Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: ui/base/ime/linux/linux_input_method_context.h

Issue 1068093002: Refactoring for InputMethodAuraLinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed interactive_ui_tests failure. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ // 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.
« no previous file with comments | « ui/base/ime/linux/fake_input_method_context_factory.cc ('k') | ui/base/ime/linux/linux_input_method_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698