Index: chrome/browser/renderer_host/gtk_im_context_wrapper.h |
diff --git a/chrome/browser/renderer_host/gtk_im_context_wrapper.h b/chrome/browser/renderer_host/gtk_im_context_wrapper.h |
index 94d6bfaeb29fb5efe5497628bac692b2d4534001..efc0875d2f43b6743b0e34693f47f77fcecf3420 100644 |
--- a/chrome/browser/renderer_host/gtk_im_context_wrapper.h |
+++ b/chrome/browser/renderer_host/gtk_im_context_wrapper.h |
@@ -70,7 +70,10 @@ class GtkIMContextWrapper { |
// Check if a text needs commit by forwarding a char event instead of |
// by confirming as a composition text. |
- bool NeedCommitByForwardingCharEvent(); |
+ bool NeedCommitByForwardingCharEvent() const; |
+ |
+ // Check if the input method returned any result, eg. preedit and commit text. |
+ bool HasInputMethodResult() const; |
void ProcessFilteredKeyPressEvent(NativeWebKeyboardEvent* wke); |
void ProcessUnfilteredKeyPressEvent(NativeWebKeyboardEvent* wke); |
@@ -206,6 +209,12 @@ class GtkIMContextWrapper { |
// TODO(suzhe): Remove it after input methods get fixed. |
bool suppress_next_commit_; |
+ // Information of the last key event, for working around |
+ // http://crosbug.com/6582 |
+ int last_key_code_; |
+ bool last_key_was_up_; |
+ bool last_key_filtered_no_result_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GtkIMContextWrapper); |
}; |