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

Issue 2784903002: Fix initial focus of Task Manager for ChromeOS. (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix initial focus of Task Manager for ChromeOS. The current code appeared to work because a DialogDelegate actually defaults to focusing the default button ("End Task") rather than nothing (like a default WidgetDelegate). Thus when you press Shift+Escape the row for the active tab is selected, and "End Task" is focused. This "fixed" the blue line around the table. But on ChromeOS it's possible to have no windows open and press Shift+Escape, and then the Browser row is selected initially. You're not allowed to end that task, so the button is disabled. Widget::SetInitialFocus has code to advance focus if the initial focus View can't actually receive focus, hence the table winds up receiving focus. BUG=702489 Review-Url: https://codereview.chromium.org/2784903002 Cr-Commit-Position: refs/heads/master@{#460611} Committed: https://chromium.googlesource.com/chromium/src/+/b554454239ebb239fc7da684b70b6be8ae860c8b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/browser/ui/views/task_manager_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Evan Stade
see CL desc for a good laugh.
3 years, 8 months ago (2017-03-29 18:34:39 UTC) #2
sky
Is this bug saying they don't want the table to have focus? Why is it ...
3 years, 8 months ago (2017-03-29 20:35:13 UTC) #7
Evan Stade
On 2017/03/29 20:35:13, sky wrote: > Is this bug saying they don't want the table ...
3 years, 8 months ago (2017-03-29 23:37:35 UTC) #8
sky
LGTM
3 years, 8 months ago (2017-03-30 00:07:48 UTC) #9
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/2784903002/1
3 years, 8 months ago (2017-03-30 00:58:36 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 01:08:36 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b554454239ebb239fc7da684b70b...

Powered by Google App Engine
This is Rietveld 408576698