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

Issue 7548008: Use input method's context for tracking focus states in OnGrabNotify. (Closed)

Created:
9 years, 4 months ago by kinaba
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Use input method's context for tracking focus states in OnGrabNotify. Current implementation of RenderWidgetViewHostGtk::OnGrabNotify() records the focus state obtained by gtk_widget_is_focus() when other window get a grab, and set the stored state to the input context on ungrab notification. This CL changes to store the focus state of input context rather than gtk_widget_is_focus(), and resolves the inconsistency issue. BUG=chromium-os:15773 TEST=http://crosbug.com/15773#c20 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95573

Patch Set 1 #

Patch Set 2 : Retrieve the focus state from IM wrapper. #

Total comments: 4

Patch Set 3 : Change getter and variable names. #

Total comments: 2

Patch Set 4 : Correction in a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M chrome/browser/renderer_host/gtk_im_context_wrapper.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kinaba
Hi Evan, can you share some time to review this patch? The change solves an ...
9 years, 4 months ago (2011-08-02 10:25:20 UTC) #1
Evan Stade
even after some investigation, I'm not entirely sure. It looks like the use in GrabNotify ...
9 years, 4 months ago (2011-08-02 18:13:17 UTC) #2
kinaba
On 2011/08/02 18:13:17, Evan Stade wrote: > even after some investigation, I'm not entirely sure. ...
9 years, 4 months ago (2011-08-03 03:44:23 UTC) #3
Evan Stade
because (I think) by the time you get the grab notify event, is_focus will always ...
9 years, 4 months ago (2011-08-03 16:22:25 UTC) #4
kinaba
On 2011/08/03 16:22:25, Evan Stade wrote: > i.e. it is called when the widget has ...
9 years, 4 months ago (2011-08-03 17:20:25 UTC) #5
kinaba
Ah, but, well, now I began to think that the best way is to introduce ...
9 years, 4 months ago (2011-08-03 17:24:51 UTC) #6
Evan Stade
ok
9 years, 4 months ago (2011-08-03 19:48:24 UTC) #7
kinaba
On 2011/08/03 19:48:24, Evan Stade wrote: > ok Done. Could you please review it?
9 years, 4 months ago (2011-08-04 03:58:47 UTC) #8
Evan Stade
just nits http://codereview.chromium.org/7548008/diff/8001/chrome/browser/renderer_host/gtk_im_context_wrapper.h File chrome/browser/renderer_host/gtk_im_context_wrapper.h (right): http://codereview.chromium.org/7548008/diff/8001/chrome/browser/renderer_host/gtk_im_context_wrapper.h#newcode56 chrome/browser/renderer_host/gtk_im_context_wrapper.h:56: bool IsFocused() const; simple getters should look_like_this() ...
9 years, 4 months ago (2011-08-04 04:00:47 UTC) #9
kinaba
http://codereview.chromium.org/7548008/diff/8001/chrome/browser/renderer_host/gtk_im_context_wrapper.h File chrome/browser/renderer_host/gtk_im_context_wrapper.h (right): http://codereview.chromium.org/7548008/diff/8001/chrome/browser/renderer_host/gtk_im_context_wrapper.h#newcode56 chrome/browser/renderer_host/gtk_im_context_wrapper.h:56: bool IsFocused() const; On 2011/08/04 04:00:47, Evan Stade wrote: ...
9 years, 4 months ago (2011-08-04 04:24:37 UTC) #10
kinaba
Changed the summary and description text of the issue.
9 years, 4 months ago (2011-08-04 04:29:37 UTC) #11
Evan Stade
lgtm http://codereview.chromium.org/7548008/diff/12001/chrome/browser/renderer_host/render_widget_host_view_gtk.h File chrome/browser/renderer_host/render_widget_host_view_gtk.h (right): http://codereview.chromium.org/7548008/diff/12001/chrome/browser/renderer_host/render_widget_host_view_gtk.h#newcode214 chrome/browser/renderer_host/render_widget_host_view_gtk.h:214: // Whether or not this widget's input context ...
9 years, 4 months ago (2011-08-04 16:47:28 UTC) #12
kinaba
http://codereview.chromium.org/7548008/diff/12001/chrome/browser/renderer_host/render_widget_host_view_gtk.h File chrome/browser/renderer_host/render_widget_host_view_gtk.h (right): http://codereview.chromium.org/7548008/diff/12001/chrome/browser/renderer_host/render_widget_host_view_gtk.h#newcode214 chrome/browser/renderer_host/render_widget_host_view_gtk.h:214: // Whether or not this widget's input context was ...
9 years, 4 months ago (2011-08-05 03:35:33 UTC) #13
commit-bot: I haz the power
9 years, 4 months ago (2011-08-05 04:08:32 UTC) #14
Change committed as 95573

Powered by Google App Engine
This is Rietveld 408576698