-
Dana Fried authored
ThumbnailTabHelper now captures the entire contents of a web page (within the bounds of the window) as the raw thumbnail instead of an image specifically cropped for tab hover cards. The image is scaled down to a size that can be used by both the touch- only tabstrip and hover cards, even when it must be cropped. Observers can now specify a size hint for uncompressed images; so that when the image is received by the observer it is pre-cropped appropriately. We use this new system to ensure that tab hover cards are still getting appropriately-sized thumbnails, but the touch-only tabstrip gets the entire compressed image of the webpage, at approximately the original aspect ratio. Bug: 1013646 Change-Id: If63dc7e13f8ddef09e991fcb20f5bef8cacad302 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1887734 Commit-Queue: Dana Fried <dfried@chromium.org> Reviewed-by:
Collin Baker <collinbaker@chromium.org> Cr-Commit-Position: refs/heads/master@{#710974}
7d177a2b