summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Revert 96567 - Reland 96406 - Print preview page selection should not ↵kmadhusu@chromium.org2011-08-122-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | require a rerendering of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| Review URL: http://codereview.chromium.org/7544018 Original Commit: http://src.chromium.org/viewvc/chrome?view=rev&revision=96406 Revert Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96414 BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7628019 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7639023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96581 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 96406 - Print preview page selection should not require a rerendering ↵kmadhusu@chromium.org2011-08-122-0/+4
| | | | | | | | | | | | | | | | | | | | | | of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| Review URL: http://codereview.chromium.org/7544018 Original Commit: http://src.chromium.org/viewvc/chrome?view=rev&revision=96406 Revert Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96414 BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7628019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96567 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 96406 - Print preview page selection should not require a rerendering ↵kmadhusu@chromium.org2011-08-112-4/+0
| | | | | | | | | | | | | | | | | | | of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7544018 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7618014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96414 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview page selection should not require a rerendering of draft pages.kmadhusu@chromium.org2011-08-112-0/+4
| | | | | | | | | | | | | | On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7544018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96406 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Remove unused PageOverlay since header/footers are drawn in ↵thestig@chromium.org2011-08-0912-637/+2
| | | | | | | | | | | PrintWebViewHelper. BUG=none TEST=none Review URL: http://codereview.chromium.org/7585015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95951 0039d316-1c4b-4281-b951-d872f2087c98
* CUPS printing: Do not add scanners to the printer list.thestig@chromium.org2011-08-091-4/+24
| | | | | | | | | BUG=91755 TEST=see bug Review URL: http://codereview.chromium.org/7569028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95949 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove |page_number| from StartPageForVectorCanvas function ↵kmadhusu@chromium.org2011-08-029-28/+20
| | | | | | | | | | | | | and |page_slot| from PrintMsg_PrintPage_Params. We will not add preview pages to the complete metafile in out of order fashion. BUG=none TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7549001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95092 0039d316-1c4b-4281-b951-d872f2087c98
* Added SetDraftMode() and GetDraftMode() functions to |MetafileSkiaWrapper| ↵kmadhusu@chromium.org2011-08-022-1/+21
| | | | | | | | | | | | class. BUG=none TEST=none Review URL: http://codereview.chromium.org/7537042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95033 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bug in which the margin sizes vary (depending on the scale factor) ↵aayushkumar@chromium.org2011-07-261-3/+3
| | | | | | | | | | | | while printing on the mac. BUG=none TEST=Ensure that the margin sizes while printing are consistent across different web pages on mac. Review URL: http://codereview.chromium.org/7471052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94144 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: backend changes to support pipelining.vandebo@chromium.org2011-07-262-0/+10
| | | | | | | | | | | | | Previous review comments: http://codereview.chromium.org/7395016/ http://codereview.chromium.org/7210042/ BUG=88762 TEST=NONE Review URL: http://codereview.chromium.org/7495003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94066 0039d316-1c4b-4281-b951-d872f2087c98
* Make Metafile::StartPageForVectorCanvas take the page number as an argument.vandebo@chromium.org2011-07-239-25/+30
| | | | | | | | | | | | | This will let us add pages to a metafile out of order for print preview. Also, make PdfMetafileSkia::GetMetafileForCurrentPage use draft mode, now that it's available. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7481019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93763 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issues with cloud printers only getting first page of a doc in print ↵abodenha@chromium.org2011-07-233-3/+17
| | | | | | | | | | | | | | | | | | preview. Restructures settings handling code to share more code with the traditional print path. Modifies backends to treat cloud printers the same as printing to PDF. This change also (incidently) causes parsing of page ranges to work correctly. BUG=http://code.google.com/p/chromium-os/issues/detail?id=16082 TEST=Load print preview dialog with cloud print enabled on a document with multiple pages. All pages should appear in the preview when a GCP printer is selected. Review URL: http://codereview.chromium.org/7490001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93750 0039d316-1c4b-4281-b951-d872f2087c98
* roll skia to 1919reed@google.com2011-07-211-2/+2
| | | | | | Review URL: http://codereview.chromium.org/7459008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93394 0039d316-1c4b-4281-b951-d872f2087c98
* some cleanup for base/stl_utildilmah@chromium.org2011-07-191-2/+3
| | | | | | | | | | | | | removed unused/irrelevant functions removed irrelevant comments Moved stl_util-inl.h => stl_util.h BUG=None TEST=None Review URL: http://codereview.chromium.org/7342047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93110 0039d316-1c4b-4281-b951-d872f2087c98
* base: Put md5.* into base namespace.tfarina@chromium.org2011-07-181-2/+2
| | | | | | | | | | | BUG=89274 TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7395021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92861 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce ui.dll / libui.so for the component build.darin@chromium.org2011-07-171-1/+1
| | | | | | | R=ben@chromium.org Review URL: http://codereview.chromium.org/7328011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92819 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Associating preview requests and responses using an identifierdpapad@chromium.org2011-07-132-0/+4
| | | | | | | | | | BUG=88807, 89106 TEST=NONE Review URL: http://codereview.chromium.org/7313035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92402 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for cloudprint in print preview.abodenha@chromium.org2011-07-134-0/+74
| | | | | | | | | | | | | | | | | | | | | | To enable in Windows/Mac/Linux pass "--enable-cloud-print --enable-print-preview" on the command line. To enable in ChromeOS open about:flags and enable print preview. This first pass extends the print preview UI to retrieve a printer list from cloud print and to allow printing to a cloud print printer. Limitations/known issues: Sign in opens a new tab and requires the print preview page to be refreshed after sign in. Only pulls the first 10 GCP printers. Job settings are very limited. Only sets color and only for a limited set of printers. BUG=80004 TEST= When running with default flags the only visible change should be that "Manage Printers" is now "Manage Local Printers" With flags set as above there should be new entries in the printer selection dropdown allowing the use of cloud printers. It should be possible to sign in to cloud print, open the management page, and be able to print documents to cloud printers. Review URL: http://codereview.chromium.org/7038028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92275 0039d316-1c4b-4281-b951-d872f2087c98
* Add printing/OWNERSthakis@chromium.org2011-07-121-0/+4
| | | | | | | | | | BUG=88315 TEST=none Review URL: http://codereview.chromium.org/7349018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92262 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/values.h into the base namespace. This includes a cros DEPS rolldmazzoni@chromium.org2011-07-128-7/+16
| | | | | | | | | | with a minor change to that code since libcros also uses base/values.h. BUG=88666 TEST=none Review URL: http://codereview.chromium.org/7259019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92208 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the comments setting emands and vim tab width and expansion variables.tony@chromium.org2011-07-111-6/+0
| | | | | | | | | | | | | | | | | These were added in r28089 (http://codereview.chromium.org/256059) but are unnecessary bloat for everyone to carry around, even those that don't use emacs or vim. In an earlier change, I added editor config files in src/tools/emacs/ and src/tools/vim/ so users of the appropriate editor can source those instead. BUG=none TEST=none Review URL: http://codereview.chromium.org/7310019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92046 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using deprecated factory API for SkDevicereed@google.com2011-07-052-4/+4
| | | | | | | Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91504 Review URL: http://codereview.chromium.org/7273013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91508 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 91504 - Stop using deprecated factory API for SkDevicereed@google.com2011-07-052-4/+4
| | | | | | | | | Review URL: http://codereview.chromium.org/7273013 TBR=reed@google.com Review URL: http://codereview.chromium.org/7193040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91505 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using deprecated factory API for SkDevicereed@google.com2011-07-052-4/+4
| | | | | | Review URL: http://codereview.chromium.org/7273013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91504 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Implement GetMetafileForCurrentPage() function in PdfMetafileSkia.kmadhusu@chromium.org2011-07-012-4/+31
| | | | | | | | | | | | This function is required for print preview pipeline sequence. BUG=none TEST=none Review URL: http://codereview.chromium.org/7274026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91269 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Remove unused draft mode code.thestig@chromium.org2011-06-298-20/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7275030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90919 0039d316-1c4b-4281-b951-d872f2087c98
* roll skiareed@google.com2011-06-271-6/+13
| | | | | | Review URL: http://codereview.chromium.org/7235024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90595 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to use Skia printing from Mac.caryclark@chromium.org2011-06-223-3/+48
| | | | | | | | | | | | | | | | | | | | Reference the CG metafile from the Skia version, so CG can be used to pass the PDF data to the OS X pipeline. If Skia is enabled as the Mac rendering engine, generate Skia PDF files instead of CG ones. This change adds a code path that will be enabled in the future, but does not modify any existing code, so there is no functional change. BUG=79463 TEST=none Review URL: http://codereview.chromium.org/7120006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90023 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize a variable in PrinterBasicInfo.thestig@chromium.org2011-06-221-2/+4
| | | | | | | | | | BUG=none TEST=none CID=16140 Review URL: http://codereview.chromium.org/7218029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89992 0039d316-1c4b-4281-b951-d872f2087c98
* Add Skia on Chrome for Mac gyp rulescaryclark@chromium.org2011-06-211-3/+4
| | | | | | | | | | | | | | | | In addition to these rules, to build the USE_SKIA_ON_MAC_CHROME variation, define: gyp_defines='use_skia=1' As is, this does not change any existing platform, and has no new tests. BUG=79463 TEST=none Review URL: http://codereview.chromium.org/7219009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89877 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix regressions for net.dllrvargas@google.com2011-06-171-0/+1
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7111060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89558 0039d316-1c4b-4281-b951-d872f2087c98
* Remove msvs_guids from ipc, media, net, ppapi, printing, sandbox,tony@chromium.org2011-06-161-2/+0
| | | | | | | | | | sdch, skia, and testing. BUG=28727 Review URL: http://codereview.chromium.org/7165009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89369 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview should use draft PDFs until it is ready to print to improve speed.kmadhusu@chromium.org2011-06-158-1/+27
| | | | | | | | | BUG=85767 TEST=none Review URL: http://codereview.chromium.org/7149020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89198 0039d316-1c4b-4281-b951-d872f2087c98
* Issue 85963 crash when uninstalling printer while preview tab is openarthurhsu@chromium.org2011-06-141-1/+1
| | | | | | | | | | BUG=85963 TEST=none Review URL: http://codereview.chromium.org/7150001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89039 0039d316-1c4b-4281-b951-d872f2087c98
* Improve and unify Mac OS X run-time version checks.mark@chromium.org2011-06-141-14/+2
| | | | | | | | | | | | Don't use base::SysInfo::OperatingSystemVersionNumbers, because it calls Gestalt, which has a few bad properties. Introduce new functions that perform specific version checks. BUG=85972 TEST=base_unittests MacUtilTest.IsOSEllipsis Review URL: http://codereview.chromium.org/7144007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89028 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Remembering last used printer.dpapad@chromium.org2011-06-081-4/+5
| | | | | | | | | | BUG=85081 TEST=Open print preview tab, print a doc. Reopen, the last used printer should be pre-selected. Review URL: http://codereview.chromium.org/7042034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88399 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Modified PrintingContextMac code to use the copy of ↵kmadhusu@chromium.org2011-06-032-12/+18
| | | | | | | | | | | | sharedPrintInfo object. BUG=82739 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7074051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87828 0039d316-1c4b-4281-b951-d872f2087c98
* Files that are in src/ui/base should be compiled into libui_base.a.tony@chromium.org2011-06-021-1/+1
| | | | | | | | | | | | | | Move files that are still in app_base over to ui_base. Take 2: Relanding after fixing a dependency in leveldb. Original change at http://codereview.chromium.org/7082017 BUG=72317 Review URL: http://codereview.chromium.org/7077034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87671 0039d316-1c4b-4281-b951-d872f2087c98
* Do all the font UMA work in PdfMetafileSkia::FinishDocument.vandebo@chromium.org2011-06-021-20/+16
| | | | | | | | | | BUG=80918 TEST=NONE Review URL: http://codereview.chromium.org/7057041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87624 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87369 - Files that are in src/ui/base should be compiled into ↵tony@chromium.org2011-06-011-1/+1
| | | | | | | | | | | | | | | libui_base.a. Move files that are still in app_base over to ui_base. BUG=72317 Review URL: http://codereview.chromium.org/7082017 TBR=tony@chromium.org Review URL: http://codereview.chromium.org/7020015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87399 0039d316-1c4b-4281-b951-d872f2087c98
* Files that are in src/ui/base should be compiled into libui_base.a.tony@chromium.org2011-05-311-1/+1
| | | | | | | | | | Move files that are still in app_base over to ui_base. BUG=72317 Review URL: http://codereview.chromium.org/7082017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87369 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87351 - Do all the font UMA work in PdfMetafileSkia::FinishDocument.vandebo@chromium.org2011-05-311-16/+20
| | | | | | | | | | | | BUG=80918 TEST=NONE Review URL: http://codereview.chromium.org/7057041 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/7104001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87353 0039d316-1c4b-4281-b951-d872f2087c98
* Do all the font UMA work in PdfMetafileSkia::FinishDocument.vandebo@chromium.org2011-05-311-20/+16
| | | | | | | | | BUG=80918 TEST=NONE Review URL: http://codereview.chromium.org/7057041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87351 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics to determine what font types are being used with print preview.vandebo@chromium.org2011-05-301-0/+27
| | | | | | | | | | | | | | This depends on Skia r1444. BUG=80918 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87242 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=87248 Review URL: http://codereview.chromium.org/7084021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87257 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87242 - Add metrics to determine what font types are being used with ↵vandebo@chromium.org2011-05-301-27/+0
| | | | | | | | | | | | | | | | print preview. This depends on Skia r1444. BUG=80918 TEST=NONE Review URL: http://codereview.chromium.org/7084021 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/7084036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87248 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics to determine what font types are being used with print preview.vandebo@chromium.org2011-05-301-0/+27
| | | | | | | | | | | This depends on Skia r1444. BUG=80918 TEST=NONE Review URL: http://codereview.chromium.org/7084021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87242 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Add ability to get the default printer from the print backend.thestig@chromium.org2011-05-283-9/+25
| | | | | | | | | BUG=84126 TEST=none Review URL: http://codereview.chromium.org/7087011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87187 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-2612-16/+16
| | | | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86625 - This change implements a first pass in the effort to remove ↵vandebo@chromium.org2011-05-2512-16/+16
| | | | | | | | | | | | | | | the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/6987019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86629 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-2512-16/+16
| | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86625 0039d316-1c4b-4281-b951-d872f2087c98