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.
Let users to print a webpage into pdf through PrintToPDF devtools com…
…mand under headless chrome. This patch includes: 1) adding a new print manager, i.e., HeadlessPrintManager to handle all the printing related IPCs for headless. 2) plumbing through the pdf data from HeadlessPrintManager to HeadlessDevToolsManagerDelegate to handle the PrintToPDF command. 3) adding a new option to PrintWebViewHelper on Mac to return all the printed pages in the first PrintHostMsg_DidPrintPage message as a single file. This makes it conform to Linux and Windows, which simplify the logic in HeadlessPrintManager. This patch guarantees that HeadlessPrintManager is the only IPC entry point. In the future, if there are requirements to support the same devtools command in regular chrome, we may consider a framework to ensure multiple print managers to work properly under a content embedder. BUG=603559 Review-Url: https://codereview.chromium.org/2780433002 Cr-Commit-Position: refs/heads/master@{#463105}
- Loading branch information
jzfeng
authored and
Commit bot
committed
Apr 8, 2017
1 parent
56d5720
commit 0cbec8b
Showing
24 changed files
with
685 additions
and
78 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
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
Oops, something went wrong.