summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Virtual destructors should have virtual keyword.hans@chromium.org2011-05-252-2/+2
| | | | | | | | | | | | | | | | | Make sure user-declared virtual destructors always have the virtual keyword. The Clang style-check plugin will check for this soon. No functionality change: virtual is only added to destructors that are already implicitly virtual. Also fix a couple of in-line destructor definitions. BUG=83408 TEST=none Review URL: http://codereview.chromium.org/7064033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Allow NSExceptions in certain cases.shess@chromium.org2011-05-241-0/+11
| | | | | | | | | | | | | | | | | | Thirdy-party print drivers seem to be a source of NSExceptions which Chromium will never be able to fix. ScopedNSExceptionEnabler causes the code which makes throwing an NSException fatal to allow throws. The flag will be reset in -reportException: in most cases. For now, allow exceptions to be thrown for -selectPDE: (bug 80686) and PrintingContextMac::AskUserForSettings() (bug 82589). BUG=80686, 82589 TEST=Monitor crash server. Review URL: http://codereview.chromium.org/7038010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86503 0039d316-1c4b-4281-b951-d872f2087c98
* Change printing of PDFs for preview on Windows to not rasterize.vandebo@chromium.org2011-05-241-6/+6
| | | | | | | | | | | Also cleaned up a few hacks. BUG=80220 TEST=Navigate to a PDF and start print preview. Review URL: http://codereview.chromium.org/7065011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86431 0039d316-1c4b-4281-b951-d872f2087c98
* Final gyp patch to make use of the new cross-platform POSIX defines ↵tony@chromium.org2011-05-231-10/+8
| | | | | | | | toolkit_uses_gtk, os_posix, and use_x11. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. Solaris was made to use ALSA also, as libasound has been ported to FreeBSD and Solaris as a wrapper around the native OSS. Review URL: http://codereview.chromium.org/7055003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86352 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir and scoped_native_library back from base/memory to base.thakis@chromium.org2011-05-191-1/+1
| | | | | | | | | | | It looks like they got moved accidentally in http://codereview.chromium.org/6714032 BUG=none TEST=none Review URL: http://codereview.chromium.org/7048007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86010 0039d316-1c4b-4281-b951-d872f2087c98
* Globally replace <(library) with static_libraryevan@chromium.org2011-05-191-1/+1
| | | | | | | | | | | We provided <(library) as a variable to support a peculiar build configuration on Linux. We no longer support that build configuration, so we can simplify this code to no longer use a variable. Review URL: http://codereview.chromium.org/7051014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86004 0039d316-1c4b-4281-b951-d872f2087c98
* 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