Index: chrome/browser/ui/input_method/input_method_engine_base.h |
diff --git a/chrome/browser/ui/input_method/input_method_engine_base.h b/chrome/browser/ui/input_method/input_method_engine_base.h |
index 1ca4a1620fb024d3bc189230e01c677ea323bae4..bdd2f40d88a385f5042c8e0268f710cd822339f7 100644 |
--- a/chrome/browser/ui/input_method/input_method_engine_base.h |
+++ b/chrome/browser/ui/input_method/input_method_engine_base.h |
@@ -154,8 +154,7 @@ class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface { |
bool IsInterestedInKeyEvent() const override; |
// Send the sequence of key events. |
- virtual bool SendKeyEvents(int context_id, |
- const std::vector<KeyboardEvent>& events) = 0; |
+ bool SendKeyEvents(int context_id, const std::vector<KeyboardEvent>& events); |
// Set the current composition and associated properties. |
bool SetComposition(int context_id, |
@@ -186,6 +185,9 @@ class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface { |
// Notifies InputContextHanlder to commit |text|. |
virtual void CommitTextToInputContext(int context_id, |
const std::string& text) = 0; |
+ // Sends the key event to the window tree host. |
+ virtual bool SendKeyEvent(ui::KeyEvent* ui_event, |
+ const std::string& code) = 0; |
ui::TextInputType current_input_type_; |