add customized printing setting for headless

1) Add parameters to printToPDF command, which let the user to specify printing
   settings like paper size, margin size, etc.
2) PrintWebViewHelper::PrintPageInternal and PrintWebViewHelper::RenderPage feed
   print_preview_context_.total_page_count() to PrintHeaderAndFooter. However,
   HeadlessPrintManager issues PrintMsg_PrintPages IPC message, which leaves
   print_preview_context_ uninitialized. To solve the problem, add page_count as
   an arg to these two methods.
3) Added unit test and browser test for print to pdf.

BUG=603559
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2829973002
Cr-Commit-Position: refs/heads/master@{#470159}
21 files changed