forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DocumentLayout::GetTwoUpViewLayout() and PDFiumEngine::LoadPagesI…
…nTwoUpView(). Currently PDFiumEngine can only generate a single-view layout for documents. This CL adds DocumentLayout::GetTwoUpViewLayout() which takes a vector of pages and returns the pages formatted for two-up view, as well as updates the size of the layout. This helper function makes the two-up view layout testable. This CL also adds PDFiumEngine::LoadPagesInTwoUpView() which calls DocumentLayout::GetTwoUpViewLayout() to format pages in two-up view and appends them to |pages_|. This allows PDFiumEngine to render documents in two-up view. Bug: 51472 Change-Id: I6b65210f32efc205376d53abaeaa0c6eab84ac2d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1733737 Commit-Queue: Jeremy Chinsen <chinsenj@google.com> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#684197}
- Loading branch information
Jeremy Chinsen
authored and
Commit Bot
committed
Aug 6, 2019
1 parent
5ca0e75
commit d6fd27c
Showing
5 changed files
with
111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters