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

Issue 1736733003: MD Settings: Custom expand/collapse section animations. (Closed)

Created:
4 years, 10 months ago by michaelpg
Modified:
4 years, 9 months ago
Reviewers:
tommycli, Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org, tommycli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Custom expand/collapse section animations. Adds a behavior to expand and collapse a list of sections. Co-exists with the sliding animations in settings-animated-pages for switching between main pages and sub-pages, so there is a bit of hackery and several TODOs involved. This fixes a couple problems: * Width changing drastically while collapsing/expanding * Duplicate scrollbar showing on top of original scrollbar when expanding/collapsing Known issues to be addressed in follow-up patches: * pressing forward after closing a section resizes to the new subpage before expanding * starting an animation while another is in progress resizes to the new subpage dimensions before expanding BUG=589681 Committed: https://crrev.com/e74d6b39b3e7b31ebdb451341ab923b3c8faed07 Cr-Commit-Position: refs/heads/master@{#381390}

Patch Set 1 #

Total comments: 39

Patch Set 2 : feedback #

Patch Set 3 : now 100% more american #

Patch Set 4 : rebase #

Total comments: 8

Patch Set 5 : comments #

Patch Set 6 : #

Total comments: 11

Patch Set 7 : externs #

Patch Set 8 : rebase #

Total comments: 6

Patch Set 9 : function/rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+726 lines, -206 lines) Patch
M chrome/browser/resources/settings/advanced_page/advanced_page.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/advanced_page/advanced_page.js View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/advanced_page/compiled_resources2.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/basic_page/basic_page.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/basic_page/basic_page.js View 1 2 3 4 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/basic_page/compiled_resources2.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.css View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 3 4 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/browser/resources/settings/settings_page.css View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_page/compiled_resources2.gyp View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/main_page_behavior.html View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/main_page_behavior.js View 1 2 3 4 1 chunk +379 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_section.css View 1 2 chunks +15 lines, -24 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_section.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_section.js View 1 2 3 4 2 chunks +1 line, -146 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/transition_behavior.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/settings_page/transition_behavior.js View 1 2 3 4 5 1 chunk +86 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/compiled_resources2.gyp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/closure_compiler/externs/web_animations.js View 1 2 3 4 5 6 7 8 1 chunk +142 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
michaelpg
PTAL. if this is too big, I can land the two behaviors first and follow ...
4 years, 10 months ago (2016-02-25 03:22:59 UTC) #2
Dan Beam
lookin' pretty good! https://codereview.chromium.org/1736733003/diff/1/chrome/browser/resources/settings/settings_page/compiled_resources.gyp File chrome/browser/resources/settings/settings_page/compiled_resources.gyp (right): https://codereview.chromium.org/1736733003/diff/1/chrome/browser/resources/settings/settings_page/compiled_resources.gyp#newcode29 chrome/browser/resources/settings/settings_page/compiled_resources.gyp:29: 'target_name': 'main_page_behavior', On 2016/02/25 03:22:59, michaelpg ...
4 years, 10 months ago (2016-02-26 19:18:24 UTC) #3
michaelpg
ptal. lemme know about externs, but everything else *seems* to compile OK except for the ...
4 years, 9 months ago (2016-03-01 00:18:29 UTC) #6
Dan Beam
will get to this tomororw
4 years, 9 months ago (2016-03-01 02:10:15 UTC) #7
Dan Beam
lgtm, let's land this puppy and fix anything we find afterward also +tommycli@ as FYI ...
4 years, 9 months ago (2016-03-04 19:24:24 UTC) #8
tommycli
No issues on my end. (Moar compiled_resources.gyp changes... nooo plz no)
4 years, 9 months ago (2016-03-04 19:34:17 UTC) #10
michaelpg
dbeam: ptal at externs, then we'll commit https://codereview.chromium.org/1736733003/diff/100001/chrome/browser/resources/settings/settings_page/compiled_resources.gyp File chrome/browser/resources/settings/settings_page/compiled_resources.gyp (right): https://codereview.chromium.org/1736733003/diff/100001/chrome/browser/resources/settings/settings_page/compiled_resources.gyp#newcode29 chrome/browser/resources/settings/settings_page/compiled_resources.gyp:29: 'target_name': 'main_page_behavior', ...
4 years, 9 months ago (2016-03-14 18:57:44 UTC) #12
michaelpg
dbeam: ptal at externs, then we'll commit https://codereview.chromium.org/1736733003/diff/100001/chrome/browser/resources/settings/settings_page/compiled_resources.gyp File chrome/browser/resources/settings/settings_page/compiled_resources.gyp (right): https://codereview.chromium.org/1736733003/diff/100001/chrome/browser/resources/settings/settings_page/compiled_resources.gyp#newcode29 chrome/browser/resources/settings/settings_page/compiled_resources.gyp:29: 'target_name': 'main_page_behavior', ...
4 years, 9 months ago (2016-03-14 18:57:44 UTC) #13
Dan Beam
https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js File third_party/closure_compiler/externs/web_animations.js (right): https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js#newcode9 third_party/closure_compiler/externs/web_animations.js:9: * web-animations-js polyfill for the time being. can you ...
4 years, 9 months ago (2016-03-14 21:27:53 UTC) #14
michaelpg
https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js File third_party/closure_compiler/externs/web_animations.js (right): https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js#newcode9 third_party/closure_compiler/externs/web_animations.js:9: * web-animations-js polyfill for the time being. On 2016/03/14 ...
4 years, 9 months ago (2016-03-15 00:06:50 UTC) #16
michaelpg
dbeam: slgty?
4 years, 9 months ago (2016-03-16 00:01:59 UTC) #17
Dan Beam
still lgtm as long as you remove the closure compile fixes https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js File third_party/closure_compiler/externs/web_animations.js (right): ...
4 years, 9 months ago (2016-03-16 00:23:15 UTC) #18
michaelpg
thanks, submitting now https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js File third_party/closure_compiler/externs/web_animations.js (right): https://codereview.chromium.org/1736733003/diff/160001/third_party/closure_compiler/externs/web_animations.js#newcode57 third_party/closure_compiler/externs/web_animations.js:57: KeyframeEffectOptions.prototype.delay = 0; On 2016/03/16 00:23:14, ...
4 years, 9 months ago (2016-03-16 03:11:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736733003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736733003/240001
4 years, 9 months ago (2016-03-16 03:12:21 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 9 months ago (2016-03-16 05:21:01 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 05:22:47 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e74d6b39b3e7b31ebdb451341ab923b3c8faed07
Cr-Commit-Position: refs/heads/master@{#381390}

Powered by Google App Engine
This is Rietveld 408576698