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

Issue 1958283002: DevTools: restore pause all that suspended all animations into the animations timeline. (Closed)

Created:
4 years, 7 months ago by pfeldman
Modified:
4 years, 7 months ago
Reviewers:
paulirish, dgozman, samli
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, Eric Willigers, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, rjwright, sergeyv+blink_chromium.org, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: restore pause all that suspended all animations into the animations timeline. BUG=608073 Committed: https://crrev.com/933e2b64178778ad63eadcf560129400c7f273d9 Cr-Commit-Position: refs/heads/master@{#392483}

Patch Set 1 : #

Patch Set 2 : reflect button state after resume #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -23 lines) Patch
M third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js View 1 2 3 6 chunks +25 lines, -23 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
pfeldman
4 years, 7 months ago (2016-05-09 21:58:50 UTC) #2
pfeldman
4 years, 7 months ago (2016-05-09 22:00:42 UTC) #5
paulirish
lgtm on the UI side of this. not sure about nuking _updateAnimationsPlaybackRate tho
4 years, 7 months ago (2016-05-09 22:04:01 UTC) #6
dgozman
This assumes single client :-) lgtm https://codereview.chromium.org/1958283002/diff/60001/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js File third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js (left): https://codereview.chromium.org/1958283002/diff/60001/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js#oldcode263 third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js:263: WebInspector.AnimationModel.fromTarget(target).playbackRatePromise().then(syncPlaybackRate.bind(this)); Remove playbackRatePromise ...
4 years, 7 months ago (2016-05-09 22:20:27 UTC) #7
pfeldman
https://codereview.chromium.org/1958283002/diff/60001/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js File third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js (right): https://codereview.chromium.org/1958283002/diff/60001/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js#newcode131 third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js:131: this._pauseButton = new WebInspector.ToolbarButton(WebInspector.UIString("Pause all"), "pause-toolbar-item"); On 2016/05/09 22:20:27, ...
4 years, 7 months ago (2016-05-09 22:55:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958283002/80001
4 years, 7 months ago (2016-05-09 22:56:59 UTC) #11
samli
BTW, this is broken and I'm a bit concerned about UX. * double pause button, ...
4 years, 7 months ago (2016-05-09 23:23:33 UTC) #13
pfeldman
On 2016/05/09 23:23:33, samli wrote: > BTW, this is broken and I'm a bit concerned ...
4 years, 7 months ago (2016-05-09 23:32:58 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 7 months ago (2016-05-10 00:09:19 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/933e2b64178778ad63eadcf560129400c7f273d9 Cr-Commit-Position: refs/heads/master@{#392483}
4 years, 7 months ago (2016-05-10 00:10:52 UTC) #17
samli
On 2016/05/09 at 23:32:58, pfeldman wrote: > On 2016/05/09 23:23:33, samli wrote: > > BTW, ...
4 years, 7 months ago (2016-05-10 00:13:17 UTC) #18
samli
4 years, 7 months ago (2016-05-10 00:13:17 UTC) #19
Message was sent while issue was closed.
On 2016/05/09 at 23:32:58, pfeldman wrote:
> On 2016/05/09 23:23:33, samli wrote:
> > BTW, this is broken and I'm a bit concerned about UX.
> > 
> >  * double pause button, with up to 3 pause signals which are different
(global
> > vs local), which isn't clear.
> >  * doesn't sync with scrubber
> > 
> > I think the simplest thing to do would be to add a 0% playback rate, which
will
> > already work with the syncing of the scrubber.
> 
> I don't think people use scrubber much and 0% is not as intuitive as the
"Pause"....

But the animation still 'plays' when its paused..

Powered by Google App Engine
This is Rietveld 408576698