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

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

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, 5 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.h
diff --git a/chrome/browser/renderer_host/gtk_im_context_wrapper.h b/chrome/browser/renderer_host/gtk_im_context_wrapper.h
index 5cafa9518070a6005a16fa96319c65e5c747f220..419e13c527632bbba9634d485ffd40fde79b373e 100644
--- a/chrome/browser/renderer_host/gtk_im_context_wrapper.h
+++ b/chrome/browser/renderer_host/gtk_im_context_wrapper.h
@@ -53,6 +53,7 @@ class GtkIMContextWrapper {
const gfx::Rect& caret_rect);
void OnFocusIn();
void OnFocusOut();
+ bool IsFocused() const;
Evan Stade 2011/08/04 04:00:47 simple getters should look_like_this() and can be
kinaba 2011/08/04 04:24:37 Done.
#if !defined(TOOLKIT_VIEWS)
// Not defined for views because the views context menu doesn't

Powered by Google App Engine
This is Rietveld 408576698