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

Issue 5988010: focus reverse traversal was not working for TextfieldViews. (Closed)

Created:
9 years, 11 months ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
Jay Civelli, sky
CC:
chromium-reviews, Paweł Hajdan Jr., Jay Civelli, Ben Goodger (Google)
Visibility:
Public.

Description

focus reverse traversal was not working for TextfieldViews. Both Textfield and TextfieldViews were focusable and alt-tab was setting the focus back to the Textfield, which sets the focus to the its TextfieldViews. This fixes the issue by making Textfield non focusable. BUG=none TEST=FocusTest is added to unittest. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70624

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : explicitly forward key/focus event to TextfieldViews #

Total comments: 4

Patch Set 4 : " #

Patch Set 5 : " #

Patch Set 6 : " #

Patch Set 7 : updated comment #

Total comments: 6

Patch Set 8 : " #

Patch Set 9 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -63 lines) Patch
M views/controls/textfield/native_textfield_gtk.h View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M views/controls/textfield/native_textfield_gtk.cc View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -5 lines 0 comments Download
M views/controls/textfield/native_textfield_views.h View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M views/controls/textfield/native_textfield_views.cc View 1 2 3 4 5 6 7 8 7 chunks +57 lines, -36 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +52 lines, -4 lines 0 comments Download
M views/controls/textfield/native_textfield_win.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -1 line 0 comments Download
M views/controls/textfield/native_textfield_wrapper.h View 1 2 3 4 5 6 7 3 chunks +21 lines, -2 lines 0 comments Download
M views/controls/textfield/textfield.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 3 chunks +29 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
oshima
9 years, 11 months ago (2011-01-05 00:28:25 UTC) #1
sky
If you do this, what happens if you invoke RequestFocus on textfield?
9 years, 11 months ago (2011-01-05 00:34:06 UTC) #2
oshima
On 2011/01/05 00:34:06, sky wrote: > If you do this, what happens if you invoke ...
9 years, 11 months ago (2011-01-05 18:37:44 UTC) #3
sky
On Wed, Jan 5, 2011 at 10:37 AM, <oshima@chromium.org> wrote: > On 2011/01/05 00:34:06, sky ...
9 years, 11 months ago (2011-01-05 19:13:46 UTC) #4
oshima
On Wed, Jan 5, 2011 at 11:13 AM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
9 years, 11 months ago (2011-01-05 19:46:46 UTC) #5
oshima
I uploaded the patch that uses 2nd approach. Scott, please take a look and let ...
9 years, 11 months ago (2011-01-05 22:23:56 UTC) #6
sky
This approach seems fine to me. -Scott http://codereview.chromium.org/5988010/diff/22001/views/controls/textfield/native_textfield_gtk.h File views/controls/textfield/native_textfield_gtk.h (right): http://codereview.chromium.org/5988010/diff/22001/views/controls/textfield/native_textfield_gtk.h#newcode51 views/controls/textfield/native_textfield_gtk.h:51: virtual bool ...
9 years, 11 months ago (2011-01-05 22:57:35 UTC) #7
oshima
On 2011/01/05 22:57:35, sky wrote: > This approach seems fine to me. > > -Scott ...
9 years, 11 months ago (2011-01-05 23:43:05 UTC) #8
sky
LGTM
9 years, 11 months ago (2011-01-06 00:01:56 UTC) #9
Jay Civelli
Some minor comments. I guess another fix would have been to have some sort of ...
9 years, 11 months ago (2011-01-06 00:55:54 UTC) #10
oshima
http://codereview.chromium.org/5988010/diff/37001/views/controls/textfield/native_textfield_views.cc File views/controls/textfield/native_textfield_views.cc (right): http://codereview.chromium.org/5988010/diff/37001/views/controls/textfield/native_textfield_views.cc#newcode100 views/controls/textfield/native_textfield_views.cc:100: // gain a focus. On 2011/01/06 00:55:54, Jay Civelli ...
9 years, 11 months ago (2011-01-06 01:31:22 UTC) #11
oshima
On 2011/01/06 00:55:54, Jay Civelli wrote: > Some minor comments. > I guess another fix ...
9 years, 11 months ago (2011-01-06 01:35:19 UTC) #12
oshima
9 years, 11 months ago (2011-01-06 01:35:32 UTC) #13
Jay Civelli
LGTM
9 years, 11 months ago (2011-01-06 01:52:04 UTC) #14
oshima
On 2011/01/06 01:52:04, Jay Civelli wrote: > LGTM I'm going to commit it for now. ...
9 years, 11 months ago (2011-01-06 02:24:22 UTC) #15
sky
9 years, 11 months ago (2011-01-06 18:05:59 UTC) #16
I like Jay's proposal. It has the advantage that it would work in
other places that have a similar problem, and focus remains where we
want it. When you have time, it would be great to look into it more
deeply.

  -Scott

On Wed, Jan 5, 2011 at 6:24 PM,  <oshima@chromium.org> wrote:
> On 2011/01/06 01:52:04, Jay Civelli wrote:
>>
>> LGTM
>
>
> I'm going to commit it for now. Please let me know if I should try Jay's
> proposal.
>
> http://codereview.chromium.org/5988010/
>

Powered by Google App Engine
This is Rietveld 408576698