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

Issue 2788673003: WebUI: For cr-dialog, make Enter click the action-button, if it exists. (Closed)

Created:
3 years, 8 months ago by tommycli
Modified:
3 years, 8 months ago
Reviewers:
dpapad
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-elements_chromium.org, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, michaelpg+watch-elements_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI: For cr-dialog, make Enter click the action-button, if it exists. Within cr-dialogs, this makes Enter click the action-button, if it exists. It conservatively rejects any Enter from a target other than the dialog. BUG=626420 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2788673003 Cr-Commit-Position: refs/heads/master@{#461585} Committed: https://chromium.googlesource.com/chromium/src/+/0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b

Patch Set 1 #

Total comments: 6

Patch Set 2 : add test #

Total comments: 8

Patch Set 3 : change closure annotations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
M chrome/browser/resources/settings/people_page/people_page.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/powerwash_dialog.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/cr_elements/cr_dialog_test.js View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js View 1 2 3 chunks +28 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (10 generated)
tommycli
dpapad: PTAL, thanks! dbeam: CCing you since this is core WebUI stuff, thanks! https://codereview.chromium.org/2788673003/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js File ...
3 years, 8 months ago (2017-03-31 00:16:55 UTC) #3
dpapad
Can we add a test for this functionality in cr_dialog_tests.js? https://codereview.chromium.org/2788673003/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js File ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js (right): https://codereview.chromium.org/2788673003/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode83 ...
3 years, 8 months ago (2017-03-31 02:08:29 UTC) #4
tommycli
dpapad: thanks! https://codereview.chromium.org/2788673003/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js File ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js (right): https://codereview.chromium.org/2788673003/diff/1/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js#newcode83 ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js:83: var actionButton = this.querySelector('.action-button'); On 2017/03/31 02:08:29, ...
3 years, 8 months ago (2017-04-03 16:53:34 UTC) #5
dpapad
Thanks for the explanations. One comment left unaddressed from previous batch of comments, "Can we ...
3 years, 8 months ago (2017-04-03 18:20:07 UTC) #6
tommycli
dpapad: Thanks! I added a test. The inter-patch changes in cr_dialog.js are due to a ...
3 years, 8 months ago (2017-04-03 19:22:03 UTC) #8
dpapad
Thanks for adding tests. LGTM with optional suggestion. https://codereview.chromium.org/2788673003/diff/20001/chrome/test/data/webui/cr_elements/cr_dialog_test.js File chrome/test/data/webui/cr_elements/cr_dialog_test.js (right): https://codereview.chromium.org/2788673003/diff/20001/chrome/test/data/webui/cr_elements/cr_dialog_test.js#newcode52 chrome/test/data/webui/cr_elements/cr_dialog_test.js:52: dialog, ...
3 years, 8 months ago (2017-04-03 19:30:24 UTC) #10
tommycli
Thanks!! https://codereview.chromium.org/2788673003/diff/20001/chrome/test/data/webui/cr_elements/cr_dialog_test.js File chrome/test/data/webui/cr_elements/cr_dialog_test.js (right): https://codereview.chromium.org/2788673003/diff/20001/chrome/test/data/webui/cr_elements/cr_dialog_test.js#newcode52 chrome/test/data/webui/cr_elements/cr_dialog_test.js:52: dialog, 'keypress', 13, undefined, 'Enter'); On 2017/04/03 19:30:24, ...
3 years, 8 months ago (2017-04-03 22:57:55 UTC) #13
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/2788673003/40001
3 years, 8 months ago (2017-04-03 22:58:41 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 00:12:08 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0be2cd95f834e9ee7c46bcc7cf40...

Powered by Google App Engine
This is Rietveld 408576698