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

Issue 8786: Fix default focused button in dialogs (Closed)

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

Description

Some code in MessageBoxView was focusing the first focusable element in the view, overidding the focus set from the DialogDelegate. We now only rely on the dialog delegate. Also changed dialog delegate so the default button is also the focused button. BUG=98 TEST=Open a javascript alert then confirm dialog. A button should be focused. Open all dialogs in Chrome. A button should be focused by default. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4334

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -25 lines) Patch
M chrome/browser/views/constrained_window_impl.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/views/dialog_delegate.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/views/dialog_delegate.cc View 1 chunk +22 lines, -3 lines 0 comments Download
M chrome/views/message_box_view.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/views/message_box_view.cc View 1 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jcampan
12 years, 1 month ago (2008-10-31 21:54:32 UTC) #1
Ben Goodger (Google)
12 years, 1 month ago (2008-10-31 22:16:34 UTC) #2
hooray! LG

Powered by Google App Engine
This is Rietveld 408576698