Files.app: Cache thumbnail DOM of GridView.
commit0972ae879e52fc852898d9bdcdac1a887f3f5ea4
authorhirono <hirono@chromium.org>
Wed, 12 Nov 2014 07:51:24 +0000 (11 23:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Nov 2014 07:51:45 +0000 (12 07:51 +0000)
tree6ab91cf961de2e178fe20a050eabe49b8d3f32de
parentf1e0a471a8d872b7b3992413dc7f07913f2ac55f
Files.app: Cache thumbnail DOM of GridView.

The CL adds a cache to GridView's thumbnail to enable the view to create the
items' DOM synchronously.

The unused cache is removed just after updating the view's DOM in overriden the
mergeItems method.

BUG=316050
TEST=copy files on Download directory and observe thumbnails.

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

Cr-Commit-Position: refs/heads/master@{#303803}
ui/file_manager/file_manager/foreground/js/ui/file_grid.js
ui/file_manager/file_manager/foreground/js/ui/preview_panel.js