DescriptionGallery: Add items to GalleryDataModel before loading their metadata.
Previously Gallery adds image items to its model after fetching the
metadata. Because items are added by chunk, users cannot see all the items
before load completes. It causes strange behavior e.g. users may move from the
last item of the current chunk to the first item when the next chunk has not
been loaded.
The CL lets Gallery add all items to the model without fetching metadata. And
then, lets Gallery dispatch 'content' event to update thumbnails after fetching
metadata.
BUG=chrome-os-partner:33931
TEST=manually
Committed: https://crrev.com/0552d1680db5318d9e16708678a284037a19e4b8
Cr-Commit-Position: refs/heads/master@{#323898}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Fixed. #Messages
Total messages: 12 (6 generated)
|