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

Issue 1826433002: DialogClientView: Fix regression in Chrome Task Manager focusing. (Closed)

Created:
4 years, 9 months ago by karandeepb
Modified:
4 years, 8 months ago
Reviewers:
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: Fix regression in Chrome Task Manager focusing. This CL fixes a regression introduced in https://codereview.chromium.org/1690133003/. The regression is caused since the TaskManagerView, adds child views to the DialogClientView. However, DialogClientView::SetupFocusChain does not account for externally added child views. This CL uses View::ReorderChildView to reorder child views and ensure that appropriate focus order is maintained. Also the redundant contents_ view in DialogClientViewTest is removed. BUG=596045, 586419 Committed: https://crrev.com/e5b001fd75dc0fc7dbe265020ffbd84be9916d5c Cr-Commit-Position: refs/heads/master@{#386324}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Back to old approach. #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Address review comments. #

Total comments: 2

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -24 lines) Patch
M ui/views/window/dialog_client_view.cc View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 4 6 chunks +23 lines, -17 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
karandeepb
PTAL sky@. Thanks.
4 years, 9 months ago (2016-03-22 10:53:59 UTC) #6
sky
https://codereview.chromium.org/1826433002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (left): https://codereview.chromium.org/1826433002/diff/40001/ui/views/window/dialog_client_view.cc#oldcode345 ui/views/window/dialog_client_view.cc:345: void DialogClientView::SetupFocusChain() { This code seems simpler to me. ...
4 years, 9 months ago (2016-03-22 16:19:24 UTC) #7
karandeepb
PTAL sky@. Thanks. https://codereview.chromium.org/1826433002/diff/40001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (left): https://codereview.chromium.org/1826433002/diff/40001/ui/views/window/dialog_client_view.cc#oldcode345 ui/views/window/dialog_client_view.cc:345: void DialogClientView::SetupFocusChain() { On 2016/03/22 16:19:23, ...
4 years, 8 months ago (2016-04-06 23:06:53 UTC) #13
sky
https://codereview.chromium.org/1826433002/diff/160001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1826433002/diff/160001/ui/views/window/dialog_client_view.cc#newcode364 ui/views/window/dialog_client_view.cc:364: // Setup focus by reordering views. You should document ...
4 years, 8 months ago (2016-04-07 19:09:38 UTC) #14
karandeepb
PTAL sky@. Thanks. https://codereview.chromium.org/1826433002/diff/160001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/1826433002/diff/160001/ui/views/window/dialog_client_view.cc#newcode364 ui/views/window/dialog_client_view.cc:364: // Setup focus by reordering views. ...
4 years, 8 months ago (2016-04-08 01:40:43 UTC) #16
sky
LGTM https://codereview.chromium.org/1826433002/diff/180001/ui/views/window/dialog_client_view_unittest.cc File ui/views/window/dialog_client_view_unittest.cc (right): https://codereview.chromium.org/1826433002/diff/180001/ui/views/window/dialog_client_view_unittest.cc#newcode20 ui/views/window/dialog_client_view_unittest.cc:20: TestDialogClientView(DialogDelegateView* dialog_delegate_view) explicit
4 years, 8 months ago (2016-04-08 16:14:59 UTC) #17
karandeepb
https://codereview.chromium.org/1826433002/diff/180001/ui/views/window/dialog_client_view_unittest.cc File ui/views/window/dialog_client_view_unittest.cc (right): https://codereview.chromium.org/1826433002/diff/180001/ui/views/window/dialog_client_view_unittest.cc#newcode20 ui/views/window/dialog_client_view_unittest.cc:20: TestDialogClientView(DialogDelegateView* dialog_delegate_view) On 2016/04/08 16:14:59, sky wrote: > explicit ...
4 years, 8 months ago (2016-04-11 00:36:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826433002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826433002/200001
4 years, 8 months ago (2016-04-11 00:37:11 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:200001)
4 years, 8 months ago (2016-04-11 01:21:59 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 01:23:54 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e5b001fd75dc0fc7dbe265020ffbd84be9916d5c
Cr-Commit-Position: refs/heads/master@{#386324}

Powered by Google App Engine
This is Rietveld 408576698