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

Issue 185193003: Files.app: Change timing to update progress item properties. (Closed)

Created:
6 years, 9 months ago by hirono
Modified:
6 years, 9 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Files.app: Change timing to update progress item properties. This CL adds AnimationFrameCallback class to update the properties of progress center items at the correct timing, and ensure it invokes the CSS animation. Previously, we use setTimeout function to ensure changes of progress items properties are applied to one by one, but if the number of milliseconds is less than the frame inteval, it does not work. BUG=348493 TEST=Make a repro function and call it multiple times. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255349

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed. #

Patch Set 3 : Fixed. #

Patch Set 4 : Fixed comment. #

Total comments: 4

Patch Set 5 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -14 lines) Patch
M chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js View 1 2 3 4 3 chunks +33 lines, -14 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
hirono
PTAL the CL? Thanks!
6 years, 9 months ago (2014-03-04 06:07:05 UTC) #1
mtomasz
https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js File chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js (right): https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js#newcode13 chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js:13: * Wehther the current frame change is applied (rendered) ...
6 years, 9 months ago (2014-03-04 06:17:33 UTC) #2
hirono
Thanks! https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js File chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js (right): https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js#newcode13 chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js:13: * Wehther the current frame change is applied ...
6 years, 9 months ago (2014-03-05 04:19:51 UTC) #3
mtomasz
https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js File chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js (right): https://codereview.chromium.org/185193003/diff/1/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js#newcode198 chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js:198: this.animationFrameCallback_.requestNow(setWidth); On 2014/03/05 04:19:51, hirono wrote: > On 2014/03/04 ...
6 years, 9 months ago (2014-03-06 01:56:14 UTC) #4
hirono
> In Camera app, I have a simple waitForTransitionCompletion() utility function, > which accepts an ...
6 years, 9 months ago (2014-03-06 05:37:55 UTC) #5
hirono
On 2014/03/06 05:37:55, hirono wrote: > > In Camera app, I have a simple waitForTransitionCompletion() ...
6 years, 9 months ago (2014-03-06 06:25:59 UTC) #6
mtomasz
https://codereview.chromium.org/185193003/diff/40002/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js File chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js (right): https://codereview.chromium.org/185193003/diff/40002/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js#newcode53 chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js:53: // And the transition end peroperties set by the ...
6 years, 9 months ago (2014-03-06 06:30:46 UTC) #7
hirono
Thanks! https://codereview.chromium.org/185193003/diff/40002/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js File chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js (right): https://codereview.chromium.org/185193003/diff/40002/chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js#newcode53 chrome/browser/resources/file_manager/foreground/js/ui/progress_center_panel.js:53: // And the transition end peroperties set by ...
6 years, 9 months ago (2014-03-06 06:37:28 UTC) #8
mtomasz
Thanks, LGTM!
6 years, 9 months ago (2014-03-06 06:42:11 UTC) #9
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 9 months ago (2014-03-06 06:44:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/185193003/80001
6 years, 9 months ago (2014-03-06 06:44:43 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 07:46:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 07:46:30 UTC) #13
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 9 months ago (2014-03-06 08:00:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/185193003/80001
6 years, 9 months ago (2014-03-06 08:01:10 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 08:11:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 08:11:57 UTC) #17
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 9 months ago (2014-03-06 12:15:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/185193003/80001
6 years, 9 months ago (2014-03-06 12:15:42 UTC) #19
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 14:32:05 UTC) #20
Message was sent while issue was closed.
Change committed as 255349

Powered by Google App Engine
This is Rietveld 408576698