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

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

Issue 7548008: Use input method's context for tracking focus states in OnGrabNotify. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Retrieve the focus state from IM wrapper. Created 9 years, 4 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: chrome/browser/renderer_host/gtk_im_context_wrapper.cc
diff --git a/chrome/browser/renderer_host/gtk_im_context_wrapper.cc b/chrome/browser/renderer_host/gtk_im_context_wrapper.cc
index 529e5b1f5f26a819795c359c3778b1685c78d032..bee68897f4482aa489073eed956bdefde0f8d5bf 100644
--- a/chrome/browser/renderer_host/gtk_im_context_wrapper.cc
+++ b/chrome/browser/renderer_host/gtk_im_context_wrapper.cc
@@ -316,6 +316,10 @@ void GtkIMContextWrapper::OnFocusOut() {
host_view_->GetRenderWidgetHost()->SetInputMethodActive(false);
}
+bool GtkIMContextWrapper::IsFocused() const {
+ return is_focused_;
+}
+
#if !defined(TOOLKIT_VIEWS)
// Not defined for views because the views context menu doesn't
// implement input methods yet.

Powered by Google App Engine
This is Rietveld 408576698