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

Issue 45042: Fix for native button focus bug (Closed)

Created:
11 years, 9 months ago by jcampan
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Focusing a native button through a RequestFocus call would not result in the actual button showing as focused. This is because the NativeButton is the one getting focused not the NativeControl wrapper. This CL adds forwarding the focus to the NativeControl so the HWND really gets focused. It also associates the NativeButton view with the NativeControl, so that when the HWND is focused (through a click for example), the focus manager has the NativeButton as the focused view (not the NativeControl wrapper). BUG=9253 TEST=Open the option panel. Press tab several times. The focus should move as expected to the different buttons and views in the page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12420

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -3 lines) Patch
M chrome/views/controls/button/native_button.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/views/controls/button/native_button.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/views/controls/button/native_button_win.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/views/controls/button/native_button_win.cc View 1 2 4 chunks +14 lines, -1 line 0 comments Download
M chrome/views/controls/button/native_button_wrapper.h View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jcampan
11 years, 9 months ago (2009-03-24 21:51:40 UTC) #1
Ben Goodger (Google)
11 years, 9 months ago (2009-03-24 23:58:29 UTC) #2
LGTM. Thanks for fixing this!

Powered by Google App Engine
This is Rietveld 408576698