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

Issue 2807653002: Ensure default dialog button focus remains after a dialog update. (Closed)

Created:
3 years, 8 months ago by Ackerman
Modified:
3 years, 6 months ago
Reviewers:
ackermanb, Devlin, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure default dialog button focus remains after a dialog update. BUG=709346 Review-Url: https://codereview.chromium.org/2807653002 Cr-Commit-Position: refs/heads/master@{#475165} Committed: https://chromium.googlesource.com/chromium/src/+/db4ba3ee847c91f8d5120757389c96036b01c37d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update DialogClientView to track if a default button focus exists and ensure it remains after dialo… #

Total comments: 4

Patch Set 3 : Addressing Devlin's comments. #

Total comments: 4

Patch Set 4 : Using a view deletion observer to track focus. #

Total comments: 22

Patch Set 5 : Addressing comments. #

Total comments: 4

Patch Set 6 : Addressing sky's comments. #

Patch Set 7 : Updating branch to be in sync with master. #

Patch Set 8 : Showing widget for only the focus tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 4 chunks +41 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
Ackerman
3 years, 8 months ago (2017-04-07 17:53:13 UTC) #2
Devlin
This is probably fine, but I'd like views-guru Sky to take a quick look. In ...
3 years, 8 months ago (2017-04-07 18:13:04 UTC) #4
sky
On 2017/04/07 18:13:04, Devlin wrote: > This is probably fine, but I'd like views-guru Sky ...
3 years, 8 months ago (2017-04-07 19:22:56 UTC) #5
Ackerman
Alright, made some updates to SetupLayout that tracks if there is a default focus and ...
3 years, 8 months ago (2017-04-12 18:45:28 UTC) #6
Devlin
extensions lgtm https://codereview.chromium.org/2807653002/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/20001/ui/views/window/dialog_client_view.cc#newcode405 ui/views/window/dialog_client_view.cc:405: default_focus_->RequestFocus(); Maybe add a comment why we ...
3 years, 8 months ago (2017-04-12 19:36:31 UTC) #8
Devlin
Friendly nudge - I think we want this for M59, right?
3 years, 7 months ago (2017-04-28 16:27:48 UTC) #9
Ackerman
Yes, I believe we do want it for M59, since my other changes that are ...
3 years, 7 months ago (2017-04-28 18:22:59 UTC) #10
sky
https://codereview.chromium.org/2807653002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/40001/ui/views/window/dialog_client_view.cc#newcode322 ui/views/window/dialog_client_view.cc:322: default_focus_ = GetDialogDelegate()->GetInitiallyFocusedView(); There should be no need for ...
3 years, 7 months ago (2017-04-28 20:49:52 UTC) #11
ackermanb
Hey sky, can you take another look?
3 years, 7 months ago (2017-05-17 17:18:57 UTC) #13
ackermanb
https://codereview.chromium.org/2807653002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/40001/ui/views/window/dialog_client_view.cc#newcode322 ui/views/window/dialog_client_view.cc:322: default_focus_ = GetDialogDelegate()->GetInitiallyFocusedView(); On 2017/04/28 20:49:52, sky wrote: > ...
3 years, 7 months ago (2017-05-17 17:20:55 UTC) #14
Devlin
(slgtm, just a few nits) https://codereview.chromium.org/2807653002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://codereview.chromium.org/2807653002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode84 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc:84: int g_install_delay_in_ms = 500; ...
3 years, 7 months ago (2017-05-17 18:13:49 UTC) #15
sky
https://codereview.chromium.org/2807653002/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/60001/ui/views/window/dialog_client_view.cc#newcode25 ui/views/window/dialog_client_view.cc:25: namespace { Move this code to around line 80ish, ...
3 years, 7 months ago (2017-05-17 19:08:30 UTC) #16
ackermanb
PTAL https://codereview.chromium.org/2807653002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://codereview.chromium.org/2807653002/diff/60001/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode84 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc:84: int g_install_delay_in_ms = 500; On 2017/05/17 18:13:49, Devlin ...
3 years, 7 months ago (2017-05-17 22:03:50 UTC) #17
sky
LGTM https://codereview.chromium.org/2807653002/diff/80001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/80001/ui/views/window/dialog_client_view.cc#newcode75 ui/views/window/dialog_client_view.cc:75: View* focused_view() { return observed_view_; } Style guide ...
3 years, 7 months ago (2017-05-18 16:05:29 UTC) #18
Ackerman
Thanks guys! https://codereview.chromium.org/2807653002/diff/80001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2807653002/diff/80001/ui/views/window/dialog_client_view.cc#newcode75 ui/views/window/dialog_client_view.cc:75: View* focused_view() { return observed_view_; } On ...
3 years, 7 months ago (2017-05-18 18:24:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807653002/100001
3 years, 7 months ago (2017-05-18 18:28:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/272706) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-18 18:34:46 UTC) #24
Ackerman
3 years, 7 months ago (2017-05-18 22:05:31 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807653002/140001
3 years, 7 months ago (2017-05-18 22:07:32 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/388171)
3 years, 7 months ago (2017-05-18 23:05:20 UTC) #32
ackermanb
sky, can you take a quick look at dialog_client_view_unittest? I added widget_->Show() during the test ...
3 years, 6 months ago (2017-05-26 21:09:41 UTC) #33
sky
SLGTM
3 years, 6 months ago (2017-05-26 21:25:26 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2807653002/180001
3 years, 6 months ago (2017-05-26 21:29:29 UTC) #38
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 22:33:26 UTC) #41
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/db4ba3ee847c91f8d5120757389c...

Powered by Google App Engine
This is Rietveld 408576698