summaryrefslogtreecommitdiffstats
path: root/printing/printed_page.cc
Commit message (Collapse)AuthorAgeFilesLines
* Global conversion of Pass()→std::move() on OS==linuxdcheng2015-12-281-1/+3
| | | | | | | | | | | | ❆(੭ु ◜◡‾)੭ु⁾☃❆ BUG=557422 R=avi@chromium.org TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1550693002 Cr-Commit-Position: refs/heads/master@{#366956}
* Extracted MetafilePlayer interface from printing::MetafilePlayer.vitalybuka2014-09-121-3/+3
| | | | | | | | | | | | | Removed some unused code. Updated interfaces from plain pointers to scoped_ptr<> SaveTo(base::FilePath) replaced with SaveTo(base::File). BUG=408184 TBR=sgurun@chromium.org Review URL: https://codereview.chromium.org/568633002 Cr-Commit-Position: refs/heads/master@{#294556}
* Guarded shrink setting with ifdefs to make clear where it is used.vitalybuka@chromium.org2014-06-121-4/+5
| | | | | | | | | | | | | | Shrink value passed over IPC only in if defined (OS_WIN && !WIN_PDF_METAFILE_FOR_PRINTING) This build config should be gone in near future. PrintedPage::shrink_factor_ is used only for OS_WIN. BUG=379961 NOTRY=true Review URL: https://codereview.chromium.org/335473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276610 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Honor the print media page size and margin values.kmadhusu@chromium.org2012-01-101-2/+4
| | | | | | | | | BUG=104210, 100819 TEST=Added PrintWebViewHelperPreviewTests. Review URL: http://codereview.chromium.org/8585017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117102 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unused has_visible_overlays variable.thestig@chromium.org2011-09-231-4/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7970021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102611 0039d316-1c4b-4281-b951-d872f2087c98
* Connect the right metafiles for print preview on Linux and Windows.vandebo@chromium.org2011-04-111-5/+5
| | | | | | | | | | | | | | + Remove the NativeMetafileFactory since we can't just use preview flag. + Update each Metafile constructor site to use PreviewMetafile or NativeMetafileImpl. + Fix misc. problems blocking pdf generation on Windows. + Rename the metafile interface. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6826027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81161 0039d316-1c4b-4281-b951-d872f2087c98
* Add PrintedPage::GetCenteredPageContentRect so Mac and Win can share code.hamaji@chromium.org2010-07-051-0/+13
| | | | | | | | | BUG=47277 TEST=printed_page_unittest Review URL: http://codereview.chromium.org/2878022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51626 0039d316-1c4b-4281-b951-d872f2087c98
* Implement limited paged media support for win.hamaji@chromium.org2010-07-021-2/+4
| | | | | | | | | BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2859040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51501 0039d316-1c4b-4281-b951-d872f2087c98
* Implement limited paged media support for mac.hamaji@chromium.org2010-07-011-2/+4
| | | | | | | | | BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2876020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51347 0039d316-1c4b-4281-b951-d872f2087c98
* Move printing related stuff to the root printing project from the browser ↵sverrir@google.com2009-07-071-0/+24
project. This simplifies further refactoring and eases understanding of the printing part of Chrome. Also renamed win_printing_context to printing_context_win (correct naming convention) and added stub implementations for _linux and mac. Now all but one file is compiling on all platforms. TEST=none (no functional change). BUG=none Review URL: http://codereview.chromium.org/149212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20086 0039d316-1c4b-4281-b951-d872f2087c98