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

Issue 1690133003: DialogClientView: Correct the order in which subviews are focused. (Closed)

Created:
4 years, 10 months ago by karandeepb
Modified:
4 years, 10 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DialogClientView: Correct the order in which subviews are focused. Currently, the child views of DialogClientView are not focused in the correct order. This CL explicitly sets the next focusable view of each child view, whenever the view hierarchy changes, thereby ensuring that the child views are focused in the correct order. BUG=586419 TEST=Open Edit Bookmark Dialog. Press Tab to move focus. Observe that the views are focused in the correct order. Committed: https://crrev.com/54989662f0ab36fe50b79a27abc362216f8eb85d Cr-Commit-Position: refs/heads/master@{#376888}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 6

Patch Set 3 : Addressed review comments. #

Total comments: 2

Patch Set 4 : Address review comments. #

Total comments: 2

Patch Set 5 : Address review comments. Add tests. #

Total comments: 2

Patch Set 6 : Address review comments. #

Patch Set 7 : Fix failing test. #

Total comments: 2

Patch Set 8 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -3 lines) Patch
M ui/views/window/client_view.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 2 chunks +35 lines, -3 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
karandeepb
Before I send it for owner's review, can you PTAL Trent. Thanks.
4 years, 10 months ago (2016-02-15 00:24:06 UTC) #3
tapted
lgtm https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc#newcode118 ui/views/window/dialog_client_view.cc:118: // Add buttons in left to right order, ...
4 years, 10 months ago (2016-02-15 06:24:14 UTC) #4
karandeepb
+sky for ui/views/window/ review. https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc#newcode118 ui/views/window/dialog_client_view.cc:118: // Add buttons in left ...
4 years, 10 months ago (2016-02-15 06:59:15 UTC) #6
tapted
(still lgtm) https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc#newcode118 ui/views/window/dialog_client_view.cc:118: // Add buttons in left to right ...
4 years, 10 months ago (2016-02-15 10:22:21 UTC) #7
karandeepb
Thanks Trent. https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/20001/ui/views/window/dialog_client_view.cc#newcode118 ui/views/window/dialog_client_view.cc:118: // Add buttons in left to right ...
4 years, 10 months ago (2016-02-15 23:29:33 UTC) #8
sky
Also, test coverage would be nice here. https://codereview.chromium.org/1690133003/diff/60001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/60001/ui/views/window/dialog_client_view.cc#newcode83 ui/views/window/dialog_client_view.cc:83: void DialogClientView::UpdateDialogButtons() ...
4 years, 10 months ago (2016-02-16 16:47:28 UTC) #9
karandeepb
PTAL sky. Have added a test which fails on master and my earlier patch. Thanks. ...
4 years, 10 months ago (2016-02-17 09:16:14 UTC) #11
sky
https://codereview.chromium.org/1690133003/diff/100001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/100001/ui/views/window/dialog_client_view.cc#newcode406 ui/views/window/dialog_client_view.cc:406: child_views.push_back(nullptr); I actually prefer you don't do this. Otherwise ...
4 years, 10 months ago (2016-02-17 18:18:26 UTC) #12
karandeepb
PTAL sky. https://codereview.chromium.org/1690133003/diff/100001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1690133003/diff/100001/ui/views/window/dialog_client_view.cc#newcode406 ui/views/window/dialog_client_view.cc:406: child_views.push_back(nullptr); On 2016/02/17 18:18:26, sky wrote: > ...
4 years, 10 months ago (2016-02-18 01:44:59 UTC) #13
sky
Thanks, LGTM
4 years, 10 months ago (2016-02-18 17:04:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690133003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690133003/120001
4 years, 10 months ago (2016-02-18 23:15:20 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/118317)
4 years, 10 months ago (2016-02-19 01:10:39 UTC) #21
karandeepb
PTAL sky. Tests on the asan trybot had failed since the deletion of the contents_view ...
4 years, 10 months ago (2016-02-22 03:47:05 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690133003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690133003/140001
4 years, 10 months ago (2016-02-22 06:40:38 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-22 06:47:03 UTC) #26
sky
LGTM https://codereview.chromium.org/1690133003/diff/140001/ui/views/window/client_view.cc File ui/views/window/client_view.cc (right): https://codereview.chromium.org/1690133003/diff/140001/ui/views/window/client_view.cc#newcode95 ui/views/window/client_view.cc:95: } else if (!details.is_add && details.child == contents_view_) ...
4 years, 10 months ago (2016-02-22 16:38:57 UTC) #27
karandeepb
https://codereview.chromium.org/1690133003/diff/140001/ui/views/window/client_view.cc File ui/views/window/client_view.cc (right): https://codereview.chromium.org/1690133003/diff/140001/ui/views/window/client_view.cc#newcode95 ui/views/window/client_view.cc:95: } else if (!details.is_add && details.child == contents_view_) On ...
4 years, 10 months ago (2016-02-22 23:40:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690133003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690133003/160001
4 years, 10 months ago (2016-02-22 23:43:14 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 10 months ago (2016-02-23 01:08:48 UTC) #33
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 01:10:05 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/54989662f0ab36fe50b79a27abc362216f8eb85d
Cr-Commit-Position: refs/heads/master@{#376888}

Powered by Google App Engine
This is Rietveld 408576698