summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Clarify that the custom margin value is not validated and add tests.vandebo@chromium.org2011-10-203-17/+51
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8342059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106429 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded namespaces.thestig@chromium.org2011-10-1812-105/+95
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8334007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106129 0039d316-1c4b-4281-b951-d872f2087c98
* Some extra cflags are needed for cups on OpenBSD.robert.nagy@gmail.com2011-10-181-0/+5
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8345001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106115 0039d316-1c4b-4281-b951-d872f2087c98
* For no margins, or printable area margins, don't factor in the header/footer ↵vandebo@chromium.org2011-10-183-10/+15
| | | | | | | | | | | size. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8328001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105973 0039d316-1c4b-4281-b951-d872f2087c98
* When printing a PDF, query and use the print scaling disabled option. Also, ↵vandebo@chromium.org2011-10-172-0/+3
| | | | | | | | | | | | some general clean ups. BUG=67091, 92045, 92218 TEST=Print a PDF with print scaling disabled and see that it takes up the entire page. Review URL: http://codereview.chromium.org/8312003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105893 0039d316-1c4b-4281-b951-d872f2087c98
* Move margin processing code to the browser process.vandebo@chromium.org2011-10-159-70/+174
| | | | | | | | | | | | It seems that this is where it is supposed to live and it was erroneously added to PrintWebViewHelper. BUG=67091, 92045, 91880, 92000, 92218, 95905 TEST=NONE Review URL: http://codereview.chromium.org/8201027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105688 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added code to honor the grayscale color model.kmadhusu@chromium.org2011-10-141-0/+1
| | | | | | | | | | | BUG=None TEST=Add a printer which supports grayscale and cmyk color models. Preview a color webpage. Observe that the color options is displayed to the user. Review URL: http://codereview.chromium.org/8280002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105528 0039d316-1c4b-4281-b951-d872f2087c98
* Excludes printing aura files on windows as the windows ones worksky@chromium.org2011-10-131-0/+9
| | | | | | | | | | | | fine. BUG=none TEST=none R=thestig@chromium.org Review URL: http://codereview.chromium.org/8290001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105411 0039d316-1c4b-4281-b951-d872f2087c98
* More options for the types of margins to add.vandebo@chromium.org2011-10-132-8/+16
| | | | | | | | | | | | | | Original (broken) CL: http://codereview.chromium.org/8227034 Already approved by dpapad@ TBR=dpapad@chromium.org BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8261005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105281 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 105087: PrintPreview: Fix printer color settings issues based on ↵kmadhusu@chromium.org2011-10-135-13/+172
| | | | | | | | | | | | | | | | printer ppd/schema info. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 Review URL: http://codereview.chromium.org/8226024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105217 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 105087 - PrintPreview: Fix printer color settings issues based on ↵kmadhusu@chromium.org2011-10-125-171/+13
| | | | | | | | | | | | | | | | printer ppd/schema information. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/8245012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105096 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Fix printer color settings issues based on printer ppd/schema ↵kmadhusu@chromium.org2011-10-125-13/+171
| | | | | | | | | | | | | information. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105087 0039d316-1c4b-4281-b951-d872f2087c98
* More Aura fixes to build with chromeos==1saintlou@chromium.org2011-10-122-3/+1
| | | | | | | | | | | | | This is not enough to build without stubs for WmIpc, Bubble and ScreenLocker. TBR=sky@chromium.org BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8233029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105012 0039d316-1c4b-4281-b951-d872f2087c98
* 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