Implement refreshing logic in Files app.
commit3e8fc7ac642049732a2beceb4b6b33b7db19272d
authormtomasz <mtomasz@chromium.org>
Tue, 7 Jul 2015 09:22:12 +0000 (7 02:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Jul 2015 09:22:49 +0000 (7 09:22 +0000)
tree3fa17e1b55a6ff2880a8a984916833ef5ead247d
parentd09236f2021dd957adf6184383ffe69341717434
Implement refreshing logic in Files app.

This CL adds an implementation for the refresh button for volumes which do not
support file watching.

Since refreshing is often fast and seems like not doing anything, a blink method
on the spinner controller has been added, so the spinner always shows for at
least one second when refreshing, so users have feedback that the refreshing
is completed.

TEST=Tested manually.
BUG=501864

Review URL: https://codereview.chromium.org/1222563005

Cr-Commit-Position: refs/heads/master@{#337573}
ui/file_manager/file_manager/foreground/js/file_manager.js
ui/file_manager/file_manager/foreground/js/file_manager_commands.js
ui/file_manager/file_manager/foreground/js/scan_controller.js
ui/file_manager/file_manager/foreground/js/spinner_controller.js