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

Issue 11421111: Fixed button focusing in OOBE screens. (Closed)

Created:
8 years ago by mtomasz
Modified:
8 years ago
Reviewers:
Nikita (slow), dmazzoni
CC:
chromium-reviews, arv (Not doing code reviews), stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

Fixed button focusing in OOBE screens. Before focusing did not work, which was especially noticeable for users using ChromeVox or those using keyboard only. This patch resolves following issues: * Automatically focus the default button (depending on the screen). * Focus the cancel button by default in the reset screen. Besides, now it is possible to focus any control by default, not only buttons. TEST=Turn on ChromeVox and navigate through the oobe screens. BUG=161896 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170524

Patch Set 1 #

Patch Set 2 : Cleaned up the code. #

Total comments: 15

Patch Set 3 : Addressed comments. #

Patch Set 4 : Rewritten. #

Patch Set 5 : Removed debug stuff. #

Total comments: 9

Patch Set 6 : Addressed comments. #

Total comments: 2

Patch Set 7 : Removed old code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M chrome/browser/resources/chromeos/login/display_manager.js View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_eula.js View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_network.js View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_reset.js View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mtomasz
@nkostylev: PTAL.
8 years ago (2012-11-27 23:17:58 UTC) #1
Nikita (slow)
I've executed cros_* trybots which run CrOS smoke tests on virtual machines.
8 years ago (2012-11-28 18:17:36 UTC) #2
Nikita (slow)
https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/display_manager.js File chrome/browser/resources/chromeos/login/display_manager.js (right): https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/display_manager.js#newcode175 chrome/browser/resources/chromeos/login/display_manager.js:175: var buttons = document.querySelectorAll( I think this should be ...
8 years ago (2012-11-28 18:26:26 UTC) #3
mtomasz
https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/display_manager.js File chrome/browser/resources/chromeos/login/display_manager.js (right): https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/display_manager.js#newcode175 chrome/browser/resources/chromeos/login/display_manager.js:175: var buttons = document.querySelectorAll( On 2012/11/28 18:26:26, Nikita Kostylev ...
8 years ago (2012-11-28 21:57:42 UTC) #4
mtomasz
Hi Nikita, I've rewritten it since I think that the previous approach wasn't good. Now ...
8 years ago (2012-11-28 23:50:25 UTC) #5
Nikita (slow)
Btw, I've tested your patch. One thing that is regressed - TPM dialog on EULA ...
8 years ago (2012-11-29 16:08:11 UTC) #6
mtomasz
https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js (right): https://codereview.chromium.org/11421111/diff/2001/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js#newcode113 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js:113: cancelButton.autofocus = true; On 2012/11/29 16:08:11, Nikita Kostylev wrote: ...
8 years ago (2012-11-29 19:04:28 UTC) #7
Nikita (slow)
lgtm https://codereview.chromium.org/11421111/diff/2004/chrome/browser/resources/chromeos/login/oobe_screen_reset.js File chrome/browser/resources/chromeos/login/oobe_screen_reset.js (right): https://codereview.chromium.org/11421111/diff/2004/chrome/browser/resources/chromeos/login/oobe_screen_reset.js#newcode60 chrome/browser/resources/chromeos/login/oobe_screen_reset.js:60: cancelButton.autofocus = true; nit: is this still needed?
8 years ago (2012-11-30 14:47:05 UTC) #8
Nikita (slow)
I've executed trybots.
8 years ago (2012-11-30 14:47:26 UTC) #9
mtomasz
https://codereview.chromium.org/11421111/diff/2004/chrome/browser/resources/chromeos/login/oobe_screen_reset.js File chrome/browser/resources/chromeos/login/oobe_screen_reset.js (right): https://codereview.chromium.org/11421111/diff/2004/chrome/browser/resources/chromeos/login/oobe_screen_reset.js#newcode60 chrome/browser/resources/chromeos/login/oobe_screen_reset.js:60: cancelButton.autofocus = true; On 2012/11/30 14:47:05, Nikita Kostylev wrote: ...
8 years ago (2012-11-30 18:35:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/11421111/9002
8 years ago (2012-11-30 18:36:10 UTC) #11
commit-bot: I haz the power
8 years ago (2012-11-30 20:25:47 UTC) #12
Message was sent while issue was closed.
Change committed as 170524

Powered by Google App Engine
This is Rietveld 408576698