commit | 08beb48cb405bad33ba7ee38ec413456da70163e | [log] [tgz] |
---|---|---|
author | Jeremy Chinsen <chinsenj@google.com> | Wed Aug 07 01:58:54 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 07 01:58:54 2019 |
tree | 97171fd04e23aac147874f4cf7c460563ddc4ccf | |
parent | c70212ee4a5838f10af318d5b77eaf47aa57863d [diff] |
Add Document::GetSingleViewLayout() and draw_utils::GetRectForSingleView(). Currently the generation of the single-view layout in PDFiumEngine is untested. To make the generation of these layouts testable the following helper functions are being added: draw_utils::GetRectForSingleView(), given the current document size and a page's size, returns a page rect formatted for single-view. Document::GetSingleViewLayout(), given a vector of page sizes, returns a vector of page rects formatted for single-view and updates the size of the document. Bug: 51472 Change-Id: Ie9e746cc4fedda551ccfb22aab4b3b64822c6b89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739666 Commit-Queue: Jeremy Chinsen <chinsenj@google.com> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#684616}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .