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

Issue 2256753003: MD Settings: Introduce CrScrollableBehavior (Closed)

Created:
4 years, 4 months ago by stevenjb
Modified:
4 years, 4 months ago
Reviewers:
dschuyler, hcarmona
CC:
chromium-reviews, michaelpg+watch-elements_chromium.org, dbeam+watch-elements_chromium.org, 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@issue_638377_selectable_behavior
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Introduce CrScrollableBehavior This CL: * Defines a pattern for using <iron-list> for scrollable lists to get correct keyboard focus behavior. * Introduces styling for scrolling containers. * Introduces CrScrollableBehavior to set styling and update <iron-list> * Converts startup-urls-page to use CrScrollableBehavior and <iron-list> BUG=638377 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/feeb114ee91d6bb97f162f2c05f66f6d3ef84c15 Cr-Commit-Position: refs/heads/master@{#413026}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : Feedback, fix notifyResize #

Total comments: 1

Patch Set 4 : Use setInterval #

Patch Set 5 : Fix scrollable behavior #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -14 lines) Patch
M chrome/browser/resources/settings/on_startup_page/compiled_resources2.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_url_entry.html View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 2 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.js View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_vars_css.html View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/compiled_resources2.gyp View 1 chunk +7 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_scrollable_behavior.html View 1 chunk +1 line, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_scrollable_behavior.js View 1 2 3 4 1 chunk +110 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements/shared_style_css.html View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements_resources.grdp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
stevenjb
4 years, 4 months ago (2016-08-17 22:24:42 UTC) #3
dschuyler
https://codereview.chromium.org/2256753003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2256753003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode52 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:52: }.bind(this)); When/where are these listeners be removed?
4 years, 4 months ago (2016-08-17 23:07:40 UTC) #4
hcarmona
https://codereview.chromium.org/2256753003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2256753003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode65 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:65: ironList.notifyResize(); Are there non-IronListElements that need to be notified ...
4 years, 4 months ago (2016-08-17 23:43:23 UTC) #5
stevenjb
PTAL Note: I added the setTimeout because I noticed that sometimes, mysteriously, the container was ...
4 years, 4 months ago (2016-08-18 00:05:24 UTC) #6
dschuyler
https://codereview.chromium.org/2256753003/diff/40001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2256753003/diff/40001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode67 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:67: // Use setTimeout to avoid initial render / sizing ...
4 years, 4 months ago (2016-08-18 01:25:12 UTC) #7
stevenjb
On 2016/08/18 01:25:12, dschuyler wrote: > https://codereview.chromium.org/2256753003/diff/40001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js > File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): > > https://codereview.chromium.org/2256753003/diff/40001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode67 > ...
4 years, 4 months ago (2016-08-18 16:45:20 UTC) #8
dschuyler
lgtm
4 years, 4 months ago (2016-08-18 22:53:31 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/2256753003/100001
4 years, 4 months ago (2016-08-18 23:40:48 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-19 02:15:42 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 02:18:00 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/feeb114ee91d6bb97f162f2c05f66f6d3ef84c15
Cr-Commit-Position: refs/heads/master@{#413026}

Powered by Google App Engine
This is Rietveld 408576698