summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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