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

Issue 902513002: Add loadAsDataUrl to ThumbnailLoader. (Closed)

Created:
5 years, 10 months ago by yawano
Modified:
5 years, 10 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add loadAsDataUrl to ThumbnailLoader. loadAsDataUrl loads thumbnail as data url instead of attaching it to a box. While loadAsDataUrl does not fit image to the box, it returns dataUrl of thumbnail which transform is applied when it is necessary. BUG=438050 TEST=out/Release --gtest_filter=FileManagerJsTest.ThumbnailLoader Committed: https://crrev.com/921c21162c175fe9e1bd6a46afff1d541d8d88a7 Cr-Commit-Position: refs/heads/master@{#314525}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 12

Patch Set 3 : Add assertions for transformation. #

Patch Set 4 : Fix type annotation. #

Total comments: 2

Patch Set 5 : Move assertions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -1 line) Patch
M ui/file_manager/file_manager/foreground/js/thumbnail_loader.js View 1 2 3 4 2 chunks +96 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js View 2 chunks +125 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
yawano
PTAL. Thank you!
5 years, 10 months ago (2015-02-04 06:39:50 UTC) #2
hirono
https://codereview.chromium.org/902513002/diff/20001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/902513002/diff/20001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode244 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:244: * Load thumbnail as data url. If data url ...
5 years, 10 months ago (2015-02-04 07:25:13 UTC) #3
yawano
Thank you for the review. PTAL. https://codereview.chromium.org/902513002/diff/20001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/902513002/diff/20001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode244 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:244: * Load thumbnail ...
5 years, 10 months ago (2015-02-04 07:50:43 UTC) #4
hirono
Thanks! lgtm with a nit. https://codereview.chromium.org/902513002/diff/60001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/902513002/diff/60001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode311 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:311: assert(scaleX === 1 || ...
5 years, 10 months ago (2015-02-04 08:00:33 UTC) #5
yawano
Thank you! https://codereview.chromium.org/902513002/diff/60001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js File ui/file_manager/file_manager/foreground/js/thumbnail_loader.js (right): https://codereview.chromium.org/902513002/diff/60001/ui/file_manager/file_manager/foreground/js/thumbnail_loader.js#newcode311 ui/file_manager/file_manager/foreground/js/thumbnail_loader.js:311: assert(scaleX === 1 || scaleX === -1); ...
5 years, 10 months ago (2015-02-04 08:06:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902513002/80001
5 years, 10 months ago (2015-02-04 08:07:14 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-04 08:54:58 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 08:56:58 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/921c21162c175fe9e1bd6a46afff1d541d8d88a7
Cr-Commit-Position: refs/heads/master@{#314525}

Powered by Google App Engine
This is Rietveld 408576698