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

Unified Diff: chrome/browser/renderer_host/gtk_im_context_wrapper.h

Issue 6336003: Workaround a nasty ibus issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix MENU key. Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/gtk_im_context_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/renderer_host/gtk_im_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698