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

Issue 2749513004: MD Settings: adjust iron-list focus row behaviors. (Closed)

Created:
3 years, 9 months ago by scottchen
Modified:
3 years, 9 months ago
Reviewers:
Dan Beam, hcarmona
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: adjust iron-list focus row behaviors. In an effort to bring iron-list focus behaviors closer to other webUIs, this CL extracts code relating to "cr.ui.FocusRow" from MD history's <history-item>, and encapsulates it in a new FocusRowBehavior to be reused by other iron-list row custom elements. BUG=700608 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2749513004 Cr-Commit-Position: refs/heads/master@{#458930} Committed: https://chromium.googlesource.com/chromium/src/+/12e779b85deea4e5752fc02631aa9c3718aeb63e

Patch Set 1 #

Patch Set 2 : apply focusRowBehavior to startup pages #

Patch Set 3 : format #

Patch Set 4 : add tests for new focusRowBehavior #

Total comments: 40

Patch Set 5 : fixes based on comments; move test to interactive test suite. #

Patch Set 6 : format and add left-out file #

Total comments: 24

Patch Set 7 : fixes based on comments #

Total comments: 2

Patch Set 8 : fixes based on comments #

Total comments: 5

Patch Set 9 : change type to focus-type #

Patch Set 10 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -169 lines) Patch
M chrome/browser/resources/settings/compiled_resources2.gyp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/resources/settings/focus_row_behavior.html View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/focus_row_behavior.js View 1 2 3 4 5 6 7 8 1 chunk +172 lines, -0 lines 0 comments Download
D chrome/browser/resources/settings/focusable_iron_list_item_behavior.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/resources/settings/focusable_iron_list_item_behavior.js View 1 2 3 1 chunk +0 lines, -61 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/compiled_resources2.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_url_entry.html View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_url_entry.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/compiled_resources2.gyp View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.html View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_list.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_list.js View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -24 lines 0 comments Download
A chrome/test/data/webui/settings/cr_settings_interactive_ui_tests.js View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/focus_row_behavior_test.js View 1 2 3 4 5 6 7 8 9 1 chunk +76 lines, -0 lines 0 comments Download
D chrome/test/data/webui/settings/focusable_iron_list_item_behavior_test.js View 1 2 3 1 chunk +0 lines, -62 lines 0 comments Download
M ui/webui/resources/js/cr/ui/focus_row.js View 1 2 3 4 5 6 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (21 generated)
scottchen
I'm going to add unit tests, but wanted to kick off the review process since ...
3 years, 9 months ago (2017-03-14 23:37:00 UTC) #4
scottchen
tests added along with minor cleanup in the focusRowBehavior code itself.
3 years, 9 months ago (2017-03-15 23:49:09 UTC) #5
hcarmona
https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js#newcode46 chrome/browser/resources/settings/focus_row_behavior.js:46: function VirtualFocusRow(root, boundary, delegate) { boundary is not used. ...
3 years, 9 months ago (2017-03-16 21:31:54 UTC) #6
scottchen
https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js#newcode46 chrome/browser/resources/settings/focus_row_behavior.js:46: function VirtualFocusRow(root, boundary, delegate) { On 2017/03/16 21:31:54, hcarmona ...
3 years, 9 months ago (2017-03-17 21:26:59 UTC) #8
hcarmona
https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js#newcode83 chrome/browser/resources/settings/focus_row_behavior.js:83: ironListTabIndex: { On 2017/03/17 21:26:58, scottchen wrote: > On ...
3 years, 9 months ago (2017-03-17 23:55:51 UTC) #15
Dan Beam
https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js#newcode6 chrome/browser/resources/settings/focus_row_behavior.js:6: * @param {{lastFocused: Object}} listItem why {lastFocused: Object} instead ...
3 years, 9 months ago (2017-03-18 00:09:57 UTC) #16
scottchen
https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/60001/chrome/browser/resources/settings/focus_row_behavior.js#newcode83 chrome/browser/resources/settings/focus_row_behavior.js:83: ironListTabIndex: { On 2017/03/17 23:55:50, hcarmona wrote: > On ...
3 years, 9 months ago (2017-03-18 01:05:47 UTC) #17
hcarmona
https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js#newcode142 chrome/browser/resources/settings/focus_row_behavior.js:142: else { On 2017/03/18 01:05:47, scottchen wrote: > On ...
3 years, 9 months ago (2017-03-20 18:32:50 UTC) #18
scottchen
https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/100001/chrome/browser/resources/settings/focus_row_behavior.js#newcode142 chrome/browser/resources/settings/focus_row_behavior.js:142: else { On 2017/03/20 18:32:50, hcarmona wrote: > On ...
3 years, 9 months ago (2017-03-20 21:42:08 UTC) #19
Dan Beam
lgtm https://codereview.chromium.org/2749513004/diff/140001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/140001/chrome/browser/resources/settings/focus_row_behavior.js#newcode134 chrome/browser/resources/settings/focus_row_behavior.js:134: controls[i].getAttribute('type'), can we make this focus-type instead of ...
3 years, 9 months ago (2017-03-21 07:11:53 UTC) #20
scottchen
https://codereview.chromium.org/2749513004/diff/140001/chrome/browser/resources/settings/focus_row_behavior.js File chrome/browser/resources/settings/focus_row_behavior.js (right): https://codereview.chromium.org/2749513004/diff/140001/chrome/browser/resources/settings/focus_row_behavior.js#newcode134 chrome/browser/resources/settings/focus_row_behavior.js:134: controls[i].getAttribute('type'), On 2017/03/21 07:11:52, Dan Beam wrote: > can ...
3 years, 9 months ago (2017-03-21 20:10:34 UTC) #21
Dan Beam
lgtm https://codereview.chromium.org/2749513004/diff/140001/ui/webui/resources/js/cr/ui/focus_row.js File ui/webui/resources/js/cr/ui/focus_row.js (right): https://codereview.chromium.org/2749513004/diff/140001/ui/webui/resources/js/cr/ui/focus_row.js#newcode119 ui/webui/resources/js/cr/ui/focus_row.js:119: element = selectorOrElement; On 2017/03/21 20:10:33, scottchen wrote: ...
3 years, 9 months ago (2017-03-21 20:51:56 UTC) #22
hcarmona
LGTM
3 years, 9 months ago (2017-03-21 22:55:50 UTC) #23
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/2749513004/160001
3 years, 9 months ago (2017-03-22 03:57:40 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/388505)
3 years, 9 months ago (2017-03-22 04:39:40 UTC) #27
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/2749513004/180001
3 years, 9 months ago (2017-03-22 23:18:43 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 23:30:18 UTC) #38
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/12e779b85deea4e5752fc02631aa...

Powered by Google App Engine
This is Rietveld 408576698