summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* iwyu: Include stringprintf.h where appropriate, part 3.jhawkins@chromium.org2011-05-121-4/+4
| | | | | | | | | | | BUG=82098 TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/7016011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85088 0039d316-1c4b-4281-b951-d872f2087c98
* printing: Replace "using namespace printing;" wrapping the tests around ↵tfarina@chromium.org2011-05-101-1/+3
| | | | | | | | | | | | | "namespace printing { ... }" BUG=82078 TEST=printing_unittests R=thestig@chromium.org Review URL: http://codereview.chromium.org/6995006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84782 0039d316-1c4b-4281-b951-d872f2087c98
* iwyu: Include stringprintf.h where appropriate, part 1.jhawkins@chromium.org2011-05-101-0/+1
| | | | | | | | | | | BUG=82098 TEST=none R=thakis@chromium.org Review URL: http://codereview.chromium.org/6997006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84754 0039d316-1c4b-4281-b951-d872f2087c98
* iwyu: Use callback_old.h where appropriate, part 1.jhawkins@chromium.org2011-05-101-1/+1
| | | | | | | | | | | BUG=none TEST=none R=thakis@chromium.org Review URL: http://codereview.chromium.org/6985009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84725 0039d316-1c4b-4281-b951-d872f2087c98
* Fix LLVM errors/warning in Chrome OS codedpolukhin@chromium.org2011-05-081-1/+1
| | | | | | | | | BUG=none TEST=build Review URL: http://codereview.chromium.org/6932066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84578 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Fix the destination printer list to show printer names rather ↵kmadhusu@chromium.org2011-05-061-11/+11
| | | | | | | | | | | than printer queue ids. BUG=81488 TEST=Please refer to the test case specified in the issue. Review URL: http://codereview.chromium.org/6935011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84479 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC]Update only the orientation settings, if the selected ↵kmadhusu@chromium.org2011-05-051-11/+15
| | | | | | | | | | | printer is "PrintToPDF". BUG=none TEST= Enable print preview. Preview a webpage. Select the destination printer as "PrintToPDF". Observe the preview data. Review URL: http://codereview.chromium.org/6930024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84329 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Make the PrintingContext::UpdatePrintSettings code more consistent ↵thestig@chromium.org2011-05-042-20/+29
| | | | | | | | | | across platfroms. BUG=none TEST=none Review URL: http://codereview.chromium.org/6932021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84154 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Modified code to set the printer using the unique printer id.kmadhusu@chromium.org2011-05-044-13/+34
| | | | | | | | | BUG=79900 TEST=Install a default printer with a dot in the name and preview a webpage. Review URL: http://codereview.chromium.org/6915012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84128 0039d316-1c4b-4281-b951-d872f2087c98
* Update set printer function to be local-only to avoid permission issues.arthurhsu@chromium.org2011-05-031-10/+35
| | | | | | | | | | BUG=80760 TEST=none Review URL: http://codereview.chromium.org/6893149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83964 0039d316-1c4b-4281-b951-d872f2087c98
* Horrible hack to work around PDFKit bug.avi@chromium.org2011-05-022-3/+62
| | | | | | | | | BUG=64641 TEST=attempt to print pdf linked to in comment 4; shouldn't sad-tab. Review URL: http://codereview.chromium.org/6903147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83765 0039d316-1c4b-4281-b951-d872f2087c98
* Fix print preview clipping issues due to scaling.ctguil@chromium.org2011-04-3012-45/+52
| | | | | | | | BUG=79941 TEST=none Review URL: http://codereview.chromium.org/6879098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83657 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: clean up the usage of "use_cups" gyp switch:phajdan.jr@chromium.org2011-04-291-16/+38
| | | | | | | | | | | | | | | | | This CL removes duplication and fixes a build error on system with no CUPS. It uses cups-config instead of hardcoding flags. Also, it removes a superfluous dependency on gcrypt from chrome_browser.gypi. printing uses gcrypt explicitly, but chrome/browser doesn't. It was just blindly copy-pasted. I just extracted libgcrypt target to build/linux/system.gyp, and switched to libgcrypt-config instead of hardcoding flags. BUG=none Review URL: http://codereview.chromium.org/6883221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83489 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [LINUX] Set color and duplex setting values in print job ticket.kmadhusu@chromium.org2011-04-264-8/+8
| | | | | | | | | BUG=79931 TEST=Enable print preview in linux. Preview a webpage. Set the color and duplex settings and print the data. Observe the output. Review URL: http://codereview.chromium.org/6905007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83021 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Print the entire page range since the preview only contains ↵thestig@chromium.org2011-04-232-0/+12
| | | | | | | | | | the user selected pages. BUG=none TEST=Only a 3 page PDF, select page 3, print. Review URL: http://codereview.chromium.org/6895015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82767 0039d316-1c4b-4281-b951-d872f2087c98
* Complete UpdatePrinterSettings so that clicking print in the print preview ↵arthurhsu@chromium.org2011-04-211-49/+120
| | | | | | | | | | | | UI generates an appropriate windows print ticket for the rest of the flow. BUG=69333 TEST=none Review URL: http://codereview.chromium.org/6883105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82551 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Fix some style issues in the printing code. Fix misuse of scoped_ptr.csilv@chromium.org2011-04-212-8/+5
| | | | | | | | | | Patch created by arthurhsu@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6880092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82523 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set duplex binding settings in print ticket.kmadhusu@chromium.org2011-04-205-10/+29
| | | | | | | | | BUG=none TEST=Set duplex binding settings in print preview tab and observe the printed data. Review URL: http://codereview.chromium.org/6879054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82335 0039d316-1c4b-4281-b951-d872f2087c98
* Fix scaling issue in windows print preview.ctguil@chromium.org2011-04-202-4/+3
| | | | | | | | | | | * Use the full page size for pdf print preview. * Scale device by the webkit page shrink for pdf preview. BUG=79518 TEST=none Review URL: http://codereview.chromium.org/6871038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82259 0039d316-1c4b-4281-b951-d872f2087c98
* Updating print preview based on the pages selected by the user.dpapad@chromium.org2011-04-202-4/+4
| | | | | | | | | | BUG=79525 TEST=Open a multi-page document in print preview, select specific pages, the preview should automatically update. Review URL: http://codereview.chromium.org/6882019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82213 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Implement dialog-less printing on Linux.thestig@chromium.org2011-04-193-29/+35
| | | | | | | | BUG=76124 TEST=Printed boarding pass using this code + print preview. Review URL: http://codereview.chromium.org/6835008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82153 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fetch first printer's settings to bootstrap the printing process ↵arthurhsu@chromium.org2011-04-181-4/+40
| | | | | | | | | | | | if there are printers but none is set as default. BUG=21265 TEST=attempt to print with no default printer set. Please refer to bug report about how to setup this. Review URL: http://codereview.chromium.org/6866001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82002 0039d316-1c4b-4281-b951-d872f2087c98
* Include base/win/scoped_comptr.h instead of base/scoped_comptr_win.h.tfarina@chromium.org2011-04-121-6/+3
| | | | | | | | | | | | | | | | | Fix up all the callers to use the new location and namespace. Also, delete the stub file since it isn't included by anyone more. (Note: This was a TODO for brettw). BUG=None TEST=None R=brettw@chromium.org Review URL: http://codereview.chromium.org/6825055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81303 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the color setting in print ticket.kmadhusu@chromium.org2011-04-122-1/+24
| | | | | | | | | BUG=none TEST= Enable print preview on mac. Preview any webpage. Change the color setting. Press the print button. Observe the color in printed output page. Review URL: http://codereview.chromium.org/6821052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81286 0039d316-1c4b-4281-b951-d872f2087c98
* Push the initial transform down into SkPDFDevice. (Chrome side).vandebo@chromium.org2011-04-121-3/+9
| | | | | | | | | | | This change also rolls skis to r1111 to get the Skia side of the change. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6820038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81267 0039d316-1c4b-4281-b951-d872f2087c98
* Connect the right metafiles for print preview on Linux and Windows.vandebo@chromium.org2011-04-1127-225/+150
| | | | | | | | | | | | | | + 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
* Printing: Fix CrOS build.thestig@chromium.org2011-04-111-1/+3
| | | | | | Review URL: http://codereview.chromium.org/6825033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81070 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Refactor PrintDialogGtk in preparation for adding dialog-less printing.thestig@chromium.org2011-04-114-29/+62
| | | | | | | | BUG=none TEST=Printing on Linux still works. Review URL: http://codereview.chromium.org/6811016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81069 0039d316-1c4b-4281-b951-d872f2087c98
* Use EXPECT_DOUBLE_EQ for floating point tests.mmoss@chromium.org2011-04-081-2/+2
| | | | | | | | | | | | | | | | | | This fixes multiple test failures on the new Lucid bots, like: MultiAnimationTest.Basic: ui/base/animation/multi_animation_unittest.cc:32: Failure Value of: animation.GetCurrentValue() Actual: 0.36 Expected: Tween::CalculateValue(Tween::EASE_OUT, .2) Which is: 0.36 BUG= TEST=Fix printing_unittests, app_unittests, and gfx_unittests on new Lucid official builder. Review URL: http://codereview.chromium.org/6811036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80940 0039d316-1c4b-4281-b951-d872f2087c98
* + This CL pulls in all the PDF code (i.e. we are now compiling the PDF ↵vandebo@chromium.org2011-04-083-0/+244
| | | | | | | | | | | | | | | | | backend on Chrome). + Add a Metafile to contain Skia PDF content. + Add a VectorPlatformDevice for use with the Skia PDF backend. BUG=62889 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80841 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=80857 Review URL: http://codereview.chromium.org/6499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80873 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80841 - + This CL pulls in all the PDF code (i.e. we are now ↵vandebo@chromium.org2011-04-073-244/+0
| | | | | | | | | compiling the PDF backend on Chrome).+ Add a Metafile to contain Skia PDF content.+ Add a VectorPlatformDevice for use with the Skia PDF backend.BUG=62889TEST=NONEReview URL: http://codereview.chromium.org/6499024 TBR=vandebo@chromium.org Review URL: http://codereview.chromium.org/6814028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80857 0039d316-1c4b-4281-b951-d872f2087c98
* + This CL pulls in all the PDF code (i.e. we are now compiling the PDF ↵vandebo@chromium.org2011-04-073-0/+244
| | | | | | | | | | | | | | backend on Chrome). + Add a Metafile to contain Skia PDF content. + Add a VectorPlatformDevice for use with the Skia PDF backend. BUG=62889 TEST=NONE Review URL: http://codereview.chromium.org/6499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80841 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the duplex setting in print ticket.kmadhusu@chromium.org2011-04-074-1/+21
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6792061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80789 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the specified orientation in the print ticket.kmadhusu@chromium.org2011-04-052-2/+20
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6764006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80514 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Set number of copies and collate in print ticket.kmadhusu@chromium.org2011-04-058-27/+51
| | | | | | | | | BUG=none TEST=Enable print preview on mac. Print preview a webpage. Change the number of copies and collate setting values. Print the preview data. Review URL: http://codereview.chromium.org/6780001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80499 0039d316-1c4b-4281-b951-d872f2087c98
* Rename some printing classes and minor cleanups.vandebo@chromium.org2011-04-0410-92/+92
| | | | | | | | | | | | | | | | Rename: PdfPsMetafile -> PdfMetafileCairo PdfMetafile -> PdfMetafileCg (Mac) VectorPlatformDevice -> VectorPlatformDeviceEmf/Cairo (Windows/Linux varients) This is in preparation for VectorPlatformDeviceSkia. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6783036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80390 0039d316-1c4b-4281-b951-d872f2087c98
* roll skiareed@google.com2011-04-011-8/+8
| | | | | | Review URL: http://codereview.chromium.org/6771051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80206 0039d316-1c4b-4281-b951-d872f2087c98
* Added a DCHECK to validate the metafile page count while handling alpha ↵kmadhusu@chromium.org2011-04-013-3/+6
| | | | | | | | | | | | | blend transparency. Added a member variable |page_count_| in emf_win.h to track the pages count. BUG=none TEST=windows printing works after code changes. Review URL: http://codereview.chromium.org/6790002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80167 0039d316-1c4b-4281-b951-d872f2087c98
* Preselecting default printer in print preview tab drop down list in Linux, ↵dpapad@chromium.org2011-04-013-0/+10
| | | | | | | | | | | Mac, Win. BUG=76290 TEST=Set default printer. Open chrome with --enable-print-preview, hit ctrl+p, the default printer should appear selected in the drop-down list. Close the print preview tab. Change default printer and hit ctrl+p again. The new default printer should be selected. Review URL: http://codereview.chromium.org/6670099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80111 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added a helper function to get print job settings from dictionary.kmadhusu@chromium.org2011-03-315-12/+31
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6758014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80008 0039d316-1c4b-4281-b951-d872f2087c98
* Adding "Print to PDF" functionality in the print preview tab.dpapad@chromium.org2011-03-312-0/+4
| | | | | | | | | BUG=69508 TEST=Linux, Mac only: Run chrome with flag --enable-print-preview, hit ctrl+p, select Print to PDF from the printer list and hit the print button, select a filename and save. A pdf file should be generated at the specified location. Review URL: http://codereview.chromium.org/6698074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79941 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Add a print job constant for "printerName".kmadhusu@chromium.org2011-03-303-1/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6756016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79843 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Implement basic settings.thestig@chromium.org2011-03-2910-5/+83
| | | | | | | | BUG=57902 TEST=Run with --enable-print-preview, make sure orientation and color settings work. Review URL: http://codereview.chromium.org/6736014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79655 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove NOTIMPLEMENTED() function call in ↵kmadhusu@chromium.org2011-03-281-3/+4
| | | | | | | | | | | | | PrintingContextWin::UpdatePrintSettings(). In r79315, Code changes were made to pass the default options on first preview generation ie., UpdatePrintSettings() function is called while generating the print preview. Because of the NOTIMPLEMENTED() function call in that function, we are seeing a crash in debug builds while generating print preview. BUG=77473 TEST= none Review URL: http://codereview.chromium.org/6727032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79622 0039d316-1c4b-4281-b951-d872f2087c98
* Add the ability to write comments to PNGCodec::Encode.tony@chromium.org2011-03-281-2/+2
| | | | | | | | | I'm going to use this to write layout test checksums to the expected png files. Review URL: http://codereview.chromium.org/6696085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79592 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-2811-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Adding CreateFromData to NativeMetafileFactorydpapad@chromium.org2011-03-263-4/+37
| | | | | | | | | | | | | | Also making Create method calling Init on the metafile before returning it. Usually clients of the NativeMetafileFactory call Create and the Init or InitFromData on the object to initialize it. Now the returned object will already be initialized. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6696076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79475 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove NOTIMPLEMENTED() function call in ↵kmadhusu@chromium.org2011-03-251-2/+3
| | | | | | | | | | | | | PrintingContextCairo::UpdatePrintSettings(). In r79315, Code changes were made to pass the default options on first preview generation ie., UpdatePrintSettings() function is called while generating the print preview. Because of the NOTIMPLEMENTED() function call in that function, we are seeing a crash in debug builds while generating print preview. BUG=none TEST= Enable print preview on linux. Press Ctrl+p on any webpage. Print Preview is generated successfully. Review URL: http://codereview.chromium.org/6747003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79441 0039d316-1c4b-4281-b951-d872f2087c98
* Make PluginInstance::PrintPDFOutput metafile-implementation agnostic on Linux.vandebo@chromium.org2011-03-256-17/+93
| | | | | | | | | | | PluginInstance::PrintPDFOutput wants to set the PDF bits in the metafile. This change makes it agnostic to the implementation of NativeMetafile in use by using the SkRefDict in SkDevice (and removes the old mechanism). BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6733036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79412 0039d316-1c4b-4281-b951-d872f2087c98
* Removing GetData helper from NativeMetafile interface and also renaming it ↵dpapad@chromium.org2011-03-244-10/+12
| | | | | | | | | | | | | to GetDataAsVector to avoid overloading. Also making it private since it is only used internally. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6713081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79343 0039d316-1c4b-4281-b951-d872f2087c98