Chromium Code Reviews

Issue 174217: Fix issue 19081: Linux: Not able to switch input method correctly in web page... (Closed)

Created:
11 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Hironori Bono
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google)
Visibility:
Public.

Description

Fix issue 19081: Linux: Not able to switch input method correctly in web page using SCIM This CL fixes issue 19081 by setting im context's client window when host view's native widget is realized rather than focused in. When setting im context's client window, GtkIMMulticontext will destroy and recreate its slave im context, which will cause this issue. BUG=19081 : Linux: Not able to switch input method correctly in web page using SCIM TEST=Export GTK_IM_MODULE=scim then open chrome, open www.google.com and place cursor in search box, hit ctrl-space to open SCIM then click scim bar or tray icon and select another input method, then check if input method was switched correct. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24442

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Stats (+55 lines, -18 lines)
M chrome/browser/renderer_host/gtk_im_context_wrapper.h View 3 chunks +15 lines, -0 lines 0 comments
M chrome/browser/renderer_host/gtk_im_context_wrapper.cc View 5 chunks +36 lines, -15 lines 0 comments
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 3 chunks +4 lines, -3 lines 0 comments

Messages

Total messages: 6 (0 generated)
James Su
Hi, Please help review this CL. Regards James Su
11 years, 4 months ago (2009-08-21 11:03:00 UTC) #1
James Su
Ping. On 2009/08/21 11:03:00, James Su wrote: > Hi, > Please help review this CL. ...
11 years, 3 months ago (2009-08-25 07:09:12 UTC) #2
Hironori Bono
Sorry for my slow review. Unfortunately, I have been working from home without any access ...
11 years, 3 months ago (2009-08-25 09:21:05 UTC) #3
James Su
GtkIMMulticontext will destroy and recreate its slave context instance if client window is changed. And ...
11 years, 3 months ago (2009-08-25 09:29:02 UTC) #4
Hironori Bono
LGTM with a nit. Thank you for your change. Regards, Hironori Bono http://codereview.chromium.org/174217/diff/1/3 File chrome/browser/renderer_host/gtk_im_context_wrapper.cc ...
11 years, 3 months ago (2009-08-26 08:15:19 UTC) #5
James Su
11 years, 3 months ago (2009-08-26 15:16:46 UTC) #6
Thanks. CL submitted.

http://codereview.chromium.org/174217/diff/1/3
File chrome/browser/renderer_host/gtk_im_context_wrapper.cc (right):

http://codereview.chromium.org/174217/diff/1/3#newcode64
Line 64: if (widget->window) {
On 2009/08/26 08:15:19, hbono wrote:
> nit: it may be better to move this 'if (widget->window)' check to
> HandleHostViewRealize() and call the function here?

Done.

Powered by Google App Engine