summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Sanity check the printable area returned by windows.vandebo@chromium.org2011-10-082-2/+8
| | | | | | | | | | BUG=96063 TEST=NONE Review URL: http://codereview.chromium.org/8200010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104615 0039d316-1c4b-4281-b951-d872f2087c98
* No need for Aura stubs under ChromeOS since we already have a sans-GTK impl.saintlou@chromium.org2011-10-072-1/+3
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8205015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104596 0039d316-1c4b-4281-b951-d872f2087c98
* scoped_ptr and new[] don't mix.thakis@chromium.org2011-10-071-1/+1
| | | | | | | | | | BUG=99261 TEST=none Review URL: http://codereview.chromium.org/8207004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104592 0039d316-1c4b-4281-b951-d872f2087c98
* make browser_tests compile and link under use_aura=1 chromeos=0.alicet@chromium.org2011-10-072-0/+17
| | | | | | | | | | BUG=99362 TEST=None Review URL: http://codereview.chromium.org/8190012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104574 0039d316-1c4b-4281-b951-d872f2087c98
* Patch up excessive margins until we can get the real fix plumbed through.vandebo@chromium.org2011-10-072-5/+6
| | | | | | | | | BUG=92000 TEST=NONE Review URL: http://codereview.chromium.org/8173016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104442 0039d316-1c4b-4281-b951-d872f2087c98
* * Rename ScopedHDC to ScopedCreateDCyosin@chromium.org2011-10-071-1/+3
| | | | | | | | | | * Use ScopedSelectObject for changed files BUG=99139 TEST=no user visible change Review URL: http://codereview.chromium.org/8139022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
* Get Chrome to build & link with USE_AURA on Windows again.BUG=noneTEST=noneben@chromium.org2011-10-061-2/+4
| | | | | | Review URL: http://codereview.chromium.org/8174005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104382 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing build.gene@chromium.org2011-10-061-1/+1
| | | | | | Review URL: http://codereview.chromium.org/8174015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104373 0039d316-1c4b-4281-b951-d872f2087c98
* Added autorotate flag in PDF rendering and wiring it through service-utility ↵gene@chromium.org2011-10-061-0/+44
| | | | | | | | channel. Review URL: http://codereview.chromium.org/8146004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104371 0039d316-1c4b-4281-b951-d872f2087c98
* We will need to support printing under Aura + ChromeOS (and we will have to ↵saintlou@chromium.org2011-10-063-0/+39
| | | | | | | | | | | | remove Gtk too). BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8165004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104244 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove dead code - printing::PrintedPagesSource::RenderSourceName() ↵thestig@chromium.org2011-10-043-16/+2
| | | | | | | | | | | and printing::PrintedDocument::url(). They were only used by the old headers/footers code. BUG=none TEST=none Review URL: http://codereview.chromium.org/8113029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103970 0039d316-1c4b-4281-b951-d872f2087c98
* Fix lack of preview when GCP printer is selected.abodenha@chromium.org2011-10-042-4/+8
| | | | | | | | | | | | Add handling for the cloud print dialog to update settings code on Mac and Windows. BUG=98929 TEST= Review URL: http://codereview.chromium.org/8122006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103937 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Always set the crop box rectangle as print source rectangle.kmadhusu@chromium.org2011-09-281-1/+1
| | | | | | | | | | BUG=97431 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/8072007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103190 0039d316-1c4b-4281-b951-d872f2087c98
* Gives default PDF settings when no printer is installed.arthurhsu@chromium.org2011-09-281-1/+45
| | | | | | | | | | | | When there's no printer in system, invalid empty settings will be provided for Print to PDF. This patch fixes it. BUG=95975 TEST=none Review URL: http://codereview.chromium.org/8044008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103187 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored code to move cloudprint specific code into print_preview_cloud.js.abodenha@google.com2011-09-282-0/+4
| | | | | | | | | | | | | | | | | Removed "Local" and "Cloud" labels from dropdown The "More printers" label is now more clear and shares behavior with the cloud print printer option in Chrome. The system print dialog link is replaced with a similar link referencing cloud print in chrome os. Choosing cloud print from the printers dropdown now requires the user to hit print before opening the cloud print dialog. Fixed broken tests. BUG=88098, 97175, http://code.google.com/p/chromium-os/issues/detail?id=16082, http://code.google.com/p/chromium-os/issues/detail?id=20121, http://code.google.com/p/chromium-os/issues/detail?id=20119 TEST=Enable print preview in about:flags. Printing should work with cloud print printers in much the same way as local printers in Chrome Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103010 Review URL: http://codereview.chromium.org/7976017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103173 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Add ToString() function to Rect class.tfarina@chromium.org2011-09-281-18/+23
| | | | | | | | | | So we don't need to override operator<< for Rect class. R=sky@chromium.org Review URL: http://codereview.chromium.org/8066006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103158 0039d316-1c4b-4281-b951-d872f2087c98
* Add check to debug issue 96063vandebo@chromium.org2011-09-281-0/+2
| | | | | | | | | | BUG=96063 TEST=NONE Review URL: http://codereview.chromium.org/8054031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103083 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 103021: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-282-35/+7
| | | | | | | | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103021 Original review URL: codereview.chromium.org/7719014 Please refer to trybot results in the last patch of original review url. Review URL: http://codereview.chromium.org/8059034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103082 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103010 - Refactored code to move cloudprint specific code into ↵thestig@chromium.org2011-09-282-4/+0
| | | | | | | | | | | | | | | | | | | | print_preview_cloud.js. Removed "Local" and "Cloud" labels from dropdown The "More printers" label is now more clear and shares behavior with the cloud print printer option in Chrome. The system print dialog link is replaced with a similar link referencing cloud print in chrome os. Choosing cloud print from the printers dropdown now requires the user to hit print before opening the cloud print dialog. Fixed broken tests. BUG=88098, 97175, http://code.google.com/p/chromium-os/issues/detail?id=16082, http://code.google.com/p/chromium-os/issues/detail?id=20121, http://code.google.com/p/chromium-os/issues/detail?id=20119 TEST=Enable print preview in about:flags. Printing should work with cloud print printers in much the same way as local printers in Chrome Review URL: http://codereview.chromium.org/7976017 TBR=abodenha@google.com Review URL: http://codereview.chromium.org/8055036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103067 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103021 - PrintPreview: Printing preview of a PDF on Mac with Skia ↵kmadhusu@chromium.org2011-09-272-7/+35
| | | | | | | | | | | | | | only previews the last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/8052020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103026 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-272-35/+7
| | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103021 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored code to move cloudprint specific code into print_preview_cloud.js.abodenha@google.com2011-09-272-0/+4
| | | | | | | | | | | | | | | Removed "Local" and "Cloud" labels from dropdown The "More printers" label is now more clear and shares behavior with the cloud print printer option in Chrome. The system print dialog link is replaced with a similar link referencing cloud print in chrome os. Choosing cloud print from the printers dropdown now requires the user to hit print before opening the cloud print dialog. Fixed broken tests. BUG=88098, 97175, http://code.google.com/p/chromium-os/issues/detail?id=16082, http://code.google.com/p/chromium-os/issues/detail?id=20121, http://code.google.com/p/chromium-os/issues/detail?id=20119 TEST=Enable print preview in about:flags. Printing should work with cloud print printers in much the same way as local printers in Chrome Review URL: http://codereview.chromium.org/7976017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103010 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue with print preview on Chrome OS just displaying an error message.abodenha@google.com2011-09-271-0/+3
| | | | | | | | | | | | Default settings were not getting set up after a recent change to settings handling. BUG=http://code.google.com/p/chromium-os/issues/detail?id=20787 TEST= Review URL: http://codereview.chromium.org/8046028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103005 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Add ToString() function to Size class.tfarina@chromium.org2011-09-271-24/+36
| | | | | | | | | | So we don't need to override operator<< for Size class. R=sky@chromium.org Review URL: http://codereview.chromium.org/8038024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102998 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unused has_visible_overlays variable.thestig@chromium.org2011-09-235-32/+14
| | | | | | | | | 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
* Cleanup: Remove dead code - PageRange::GetTotalPages.thestig@chromium.org2011-09-233-14/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8002013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102610 0039d316-1c4b-4281-b951-d872f2087c98
* CUPS printing: Define CUPS_PRINTER_SCANNER for Linux if CUPS is < 1.4chrelad@gmail.com2011-09-221-5/+8
| | | | | | | | | | BUG=97409 TEST=Try compiling on Linux with CUPS < 1.4 Review URL: http://codereview.chromium.org/7980036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102248 0039d316-1c4b-4281-b951-d872f2087c98
* Fix print preview workflow to reflect settings of selected printer.arthurhsu@chromium.org2011-09-222-2/+7
| | | | | | | | | | BUG=95110 TEST=none Review URL: http://codereview.chromium.org/7831041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102242 0039d316-1c4b-4281-b951-d872f2087c98
* printing: Convert some wstrings to string16s.thestig@chromium.org2011-09-203-14/+13
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7967004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101915 0039d316-1c4b-4281-b951-d872f2087c98
* Remove dead cairo code.abodenha@chromium.org2011-09-085-437/+0
| | | | | | | | | | BUG= TEST=No visible changes. Review URL: http://codereview.chromium.org/7847002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100281 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 100233 PrintPreview: Added code to identify the printer default ↵kmadhusu@chromium.org2011-09-083-2/+7
| | | | | | | | | | | | | | | | | | duplex value. Added code to identify the printer default duplex value. If we are unable to get the default value, hide the two sided option in the preview tab. BUG=89204 TEST=Please refer to bug description. Original Commit: http://src.chromium.org/viewvc/chrome?view=rev&revision=100233 Try bot results are in http://codereview.chromium.org/7817013/ patch set 13. Original Review URL: http://codereview.chromium.org/7817013/ Review URL: http://codereview.chromium.org/7859007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100256 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100233 - PrintPreview: Added code to identify the printer default ↵kmadhusu@chromium.org2011-09-083-7/+2
| | | | | | | | | | | | | | | | | duplex value. Added code to identify the printer default duplex value. If we are unable to get the default value, hide the two sided option in the preview tab. BUG=89204 TEST=Please refer to bug description. Review URL: http://codereview.chromium.org/7817013 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7828106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100234 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added code to identify the printer default duplex value.kmadhusu@chromium.org2011-09-083-2/+7
| | | | | | | | | | | | Added code to identify the printer default duplex value. If we are unable to get the default value, hide the two sided option in the preview tab. BUG=89204 TEST=Please refer to bug description. Review URL: http://codereview.chromium.org/7817013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100233 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak in unit testarthurhsu@chromium.org2011-09-081-0/+1
| | | | | | | | | | BUG=70388 TEST=PrintingContextTest.PrintAll Review URL: http://codereview.chromium.org/7795031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100102 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove unwanted member variable initializations.kmadhusu@chromium.org2011-09-081-3/+0
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7737029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100077 0039d316-1c4b-4281-b951-d872f2087c98
* Fix handle leak and unfreed global locksarthurhsu@chromium.org2011-09-071-13/+48
| | | | | | | | | | BUG=70389 TEST=PrintingContextTest.PrintAll Review URL: http://codereview.chromium.org/7795033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100048 0039d316-1c4b-4281-b951-d872f2087c98
* Get chrome to link with USE_AURAben@chromium.org2011-09-072-6/+2
| | | | | | | | | | http://crbug.com/93947 TEST=none R=sadrul TBR=jabdelmalek for the content/webkit stubs Review URL: http://codereview.chromium.org/7841012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99993 0039d316-1c4b-4281-b951-d872f2087c98
* Get the rest of the chrome target to build (but not link) with USE_AURA.ben@chromium.org2011-09-062-1/+7
| | | | | | | | | | http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 Review URL: http://codereview.chromium.org/7839002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99830 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 99810 - Get the rest of the chrome target to build (but not link) ↵ben@chromium.org2011-09-062-7/+1
| | | | | | | | | | | | | with USE_AURA. http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/7840010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99813 0039d316-1c4b-4281-b951-d872f2087c98
* Get the rest of the chrome target to build (but not link) with USE_AURA.ben@chromium.org2011-09-062-1/+7
| | | | | | | | http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99810 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Fixed RICOH MP C3501 color print job issues.kmadhusu@chromium.org2011-09-044-9/+25
| | | | | | | | | BUG=92358 TEST=Please refer to bug description. Review URL: http://codereview.chromium.org/7826040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99615 0039d316-1c4b-4281-b951-d872f2087c98
* Switch the native print path on Linux and ChromeOS to use Skia instead of Cairoabodenha@chromium.org2011-09-021-1/+1
| | | | | | | | | | BUG= TEST=Pages printed via cloud print to raster based printers should successfully print images. Review URL: http://codereview.chromium.org/7817007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99318 0039d316-1c4b-4281-b951-d872f2087c98
* Add printing.dll to the component build.darin@chromium.org2011-09-0130-93/+146
| | | | | | | R=rvargas,thestig Review URL: http://codereview.chromium.org/7799003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99144 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview page selection should not require a rerendering of draft pages.kmadhusu@chromium.org2011-08-312-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. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7647010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98926 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@google.com2011-08-281-7/+4
| | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98230 Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98585 0039d316-1c4b-4281-b951-d872f2087c98
* Printing Backend: Check the results from a DocumentProperties() call.thestig@chromium.org2011-08-251-2/+3
| | | | | | | | | BUG=94138 TEST=Print preview works again on vandebo's machine. Review URL: http://codereview.chromium.org/7741003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98330 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98230 - CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-251-4/+7
| | | | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 TBR=twiz@chromium.org,jbates@chromium.org, dpolukhin@chromium.org, sanjeevr@chromium.org Review URL: http://codereview.chromium.org/7754001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98233 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-251-7/+4
| | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98230 0039d316-1c4b-4281-b951-d872f2087c98
* Backend changes for custom margins.aayushkumar@chromium.org2011-08-234-0/+58
| | | | | | | | | | | | The UI for margin options are hidden by default. BUG=69337 TEST= There is currently minimal UI for testing this. The custom margins option does nothing. You can however click the no margins option to see the page print without margins. Review URL: http://codereview.chromium.org/7552033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97901 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Go from event driven print preview back to print preview with ↵thestig@chromium.org2011-08-232-4/+5
| | | | | | | | | | sync messages. The sync messages now go to the IO thread to avoid the potential deadlock on Windows. BUG=91057, and probably a few more. TEST=included. Review URL: http://codereview.chromium.org/7621087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97820 0039d316-1c4b-4281-b951-d872f2087c98