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

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

Issue 174217: Fix issue 19081: Linux: Not able to switch input method correctly in web page... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« 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
===================================================================
--- chrome/browser/renderer_host/gtk_im_context_wrapper.h (revision 24439)
+++ chrome/browser/renderer_host/gtk_im_context_wrapper.h (working copy)
@@ -17,6 +17,7 @@
class RenderWidgetHostViewGtk;
class NativeWebKeyboardEvent;
typedef struct _GtkIMContext GtkIMContext;
+typedef struct _GtkWidget GtkWidget;
// This class is a convenience wrapper for GtkIMContext.
// It creates and manages two GtkIMContext instances, one is GtkIMMulticontext,
@@ -68,6 +69,14 @@
// Real code of "preedit-end" signal handler.
void HandlePreeditEnd();
+ // Real code of "realize" signal handler, used for setting im context's client
+ // window.
+ void HandleHostViewRealize(GtkWidget* widget);
+
+ // Real code of "unrealize" signal handler, used for unsetting im context's
+ // client window.
+ void HandleHostViewUnrealize();
+
// Signal handlers of GtkIMContext object.
static void HandleCommitThunk(GtkIMContext* context, gchar* text,
GtkIMContextWrapper* self);
@@ -78,6 +87,12 @@
static void HandlePreeditEndThunk(GtkIMContext* context,
GtkIMContextWrapper* self);
+ // Signal handlers connecting to |host_view_|'s native view widget.
+ static void HandleHostViewRealizeThunk(GtkWidget* widget,
+ GtkIMContextWrapper* self);
+ static void HandleHostViewUnrealizeThunk(GtkWidget* widget,
+ GtkIMContextWrapper* self);
+
// The parent object.
RenderWidgetHostViewGtk* host_view_;
« 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