summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Convert printing ui_tests to browser_tests.jam@chromium.org2012-04-091-1/+1
| | | | | | | BUG=121574 Review URL: https://chromiumcodereview.appspot.com/10033001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131436 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete chromeos specific codeoshima@chromium.org2012-04-091-3/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/10008058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131423 0039d316-1c4b-4281-b951-d872f2087c98
* Remove workaround for fixed skia bug.vandebo@chromium.org2012-03-281-2/+0
| | | | | | | | | | | | Bug was fixed in skia r3499, which we've now rolled past. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9858031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129523 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed null pointer exception.vitalybuka@chromium.org2012-03-231-3/+5
| | | | | | | | | | TBR=gene@chromium.org BUG=119852 TEST=none Review URL: https://chromiumcodereview.appspot.com/9839077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128606 0039d316-1c4b-4281-b951-d872f2087c98
* Roll Skia DEPS to 3470epoger@google.com2012-03-231-18/+13
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9834048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128523 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Roll Skia to 3470, which changes most of the pdf includes to be ↵vandebo@chromium.org2012-03-231-13/+18
| | | | | | | | | | | | | | | private." This reverts r128408 tbr=thakis@chromium.org BUG=NONE TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9835042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128410 0039d316-1c4b-4281-b951-d872f2087c98
* Roll Skia to 3470, which changes most of the pdf includes to be private.vandebo@chromium.org2012-03-231-18/+13
| | | | | | | | | | | TBR=thakis BUG=NONE TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9792001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128408 0039d316-1c4b-4281-b951-d872f2087c98
* Removed trailing ;vitalybuka@chromium.org2012-03-231-1/+2
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9842003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128392 0039d316-1c4b-4281-b951-d872f2087c98
* Driver related info would be included into PrinterBasicInfo::options so it ↵vitalybuka@chromium.org2012-03-226-63/+149
| | | | | | | | | | | would be uploaded to cloud print backend. BUG=118797 TEST=none Review URL: http://codereview.chromium.org/9812002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128141 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Hide/Show the header footer option based on print frame margins.kmadhusu@chromium.org2012-03-202-2/+12
| | | | | | | | | | BUG=104080 TEST= Please refer to bug report. Review URL: http://codereview.chromium.org/9699040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127631 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Do not use the deprecated SkBitmap::getConfig() function.tfarina@chromium.org2012-03-191-1/+1
| | | | | | | | | | | Instead this patch uses SkBitmap::config() which is the preferred way. R=asvitkine@chromium.org TBR=brettw@chromium.org,thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/9720040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127468 0039d316-1c4b-4281-b951-d872f2087c98
* Fix invalid return value.vitalybuka@chromium.org2012-03-181-4/+4
| | | | | | | | | | BUG=118797 TEST=none TBR=abodenha@chromium.org Review URL: https://chromiumcodereview.appspot.com/9720029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127401 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed return value.vitalybuka@chromium.org2012-03-161-2/+2
| | | | | | | | | | BUG=108194 TEST=none TBR=gene@chromium.org Review URL: https://chromiumcodereview.appspot.com/9704079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127135 0039d316-1c4b-4281-b951-d872f2087c98
* ScopedPrinterInfoSetter sets printer related information to be available for ↵vitalybuka@chromium.org2012-03-164-21/+33
| | | | | | | | | | | breakpad. This CL inserts ScopedPrinterInfoSetter in places where Cloud print accesses printers and crash is possible. BUG=108194 TEST=none Review URL: http://codereview.chromium.org/9693064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127131 0039d316-1c4b-4281-b951-d872f2087c98
* Add base::StaticAtomicSequenceNumber.pliard@chromium.org2012-03-131-2/+2
| | | | | | | | | | | | This patch also replaces the global AtomicSequenceNumber variables with StaticAtomicSequenceNumber in order to remove static initializers. BUG=94925 Review URL: http://codereview.chromium.org/9415039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126376 0039d316-1c4b-4281-b951-d872f2087c98
* GetPrinterDriverInfo returns string.vitalybuka@chromium.org2012-03-075-27/+21
| | | | | | | | | | BUG=108194 TEST=none Review URL: http://codereview.chromium.org/9618032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125326 0039d316-1c4b-4281-b951-d872f2087c98
* Added PrinterDriverInfo and PrintBackend::GetPrinterDriverInfo for windows.vitalybuka@chromium.org2012-03-055-5/+86
| | | | | | | | | | BUG=108194 TEST=none Review URL: http://codereview.chromium.org/9516010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125020 0039d316-1c4b-4281-b951-d872f2087c98
* Making GenericScopedHandle capable of handling handle types other than HANDLE.alexeypa@chromium.org2012-03-051-0/+13
| | | | | | Review URL: http://codereview.chromium.org/9582045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124980 0039d316-1c4b-4281-b951-d872f2087c98
* Improved resource management by using ScopedPrinterHandle.vitalybuka@chromium.org2012-03-022-29/+15
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9569029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124755 0039d316-1c4b-4281-b951-d872f2087c98
* Added ScopedPrinterHandlevitalybuka@chromium.org2012-03-021-1/+12
| | | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/9480026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124640 0039d316-1c4b-4281-b951-d872f2087c98
* Remove histograms from printing/emf_win.cc.thestig@chromium.org2012-02-231-10/+1
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9428046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123185 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: implement "print selection".peter@pcc.me.uk2012-02-142-3/+4
| | | | | | | | | | | | | BUG=83481 TEST=mouse select text from http://en.wikipedia.org/wiki/Main_Page Toolbox -> Print -> Print to File -> Selection -> Print, verify that PDF contains only selection. Toolbox -> Print -> Print to File -> All Pages -> Print, verify that PDF contains all pages. Toolbox -> Print -> Print to File -> Pages: 1 -> Print, verify that PDF contains only page 1. Review URL: http://codereview.chromium.org/9379039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121844 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 121840 - Make scoped dc objects smartercpu@chromium.org2012-02-141-4/+4
| | | | | | | | | | | | | | So we don't destroy the dc with gdi objects selected. Also remove implicit conversion to HDC. BUG=110113,113683 TEST=chrome runs, base unittests green. Review URL: https://chromiumcodereview.appspot.com/9212020 TBR=cpu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9387027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121843 0039d316-1c4b-4281-b951-d872f2087c98
* Make scoped dc objects smartercpu@chromium.org2012-02-141-4/+4
| | | | | | | | | | | So we don't destroy the dc with gdi objects selected. Also remove implicit conversion to HDC. BUG=110113,113683 TEST=chrome runs, base unittests green. Review URL: https://chromiumcodereview.appspot.com/9212020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121840 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove static storage for variables in an unnamed namespace.jhawkins@chromium.org2012-01-283-6/+8
| | | | | | | | | | BUG=none TEST=none R=binji Review URL: https://chromiumcodereview.appspot.com/9271061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119535 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Try several different paths to the GnuTls library when trying to ↵thestig@chromium.org2012-01-261-15/+23
| | | | | | | | | | | dynamically load and call gnutls_global_init(). BUG=96734 TEST=none Review URL: http://codereview.chromium.org/9290036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119283 0039d316-1c4b-4281-b951-d872f2087c98
* Add a convenience typedef LazyInstance<T>::Leaky to avoid repeating T.fischman@chromium.org2012-01-231-5/+3
| | | | | | | | | | | | | Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to demonstrate the benefit at callsites. The real change is base/lazy_instance.h; everything else is example. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9192024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Honor the print media page size and margin values.kmadhusu@chromium.org2012-01-107-28/+30
| | | | | | | | | BUG=104210, 100819 TEST=Added PrintWebViewHelperPreviewTests. Review URL: http://codereview.chromium.org/8585017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117102 0039d316-1c4b-4281-b951-d872f2087c98
* Change signature of |ui::ElideText()|. Add a truncate mode.asvitkine@chromium.org2011-12-121-2/+3
| | | | | | | | | | | | | | | The new truncate mode is needed by my upcoming changes to rewrite CanvasSkia::DrawText(). Part of the change is changing the binary search code to a more traditional form that also makes the truncate mode work correctly. This is covered by the new unit tests. BUG=105550 TEST=New and existing tests in text_elider_unittest.cc. Review URL: http://codereview.chromium.org/8917011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114063 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up cloud printing aura stub code.jennyz@chromium.org2011-12-066-47/+10
| | | | | | | | | | BUG=102144 TEST=NONE Review URL: http://codereview.chromium.org/8763007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113072 0039d316-1c4b-4281-b951-d872f2087c98
* Fix many* python scripts in src/maruel@chromium.org2011-11-231-32/+41
| | | | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. * Do not fix them all at once otherwise the CL would be too large. TBR=jamiewalch@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8665013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111427 0039d316-1c4b-4281-b951-d872f2087c98
* replace platform conditions with os_posix and os_bsd where applicablerobert.nagy@gmail.com2011-11-221-1/+1
| | | | | | | | | | | | | this patch also adds a comment that describes why EAI_NODATA is disabled on FreeBSD BUG= TEST= TBR=wtc Review URL: http://codereview.chromium.org/8598010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111253 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Make the gtk port compile with GTK_DISABLE_SINGLE_INCLUDES.erg@chromium.org2011-11-222-2/+2
| | | | | | | | | | BUG=79722 TEST=none TBR=tony Review URL: http://codereview.chromium.org/8586044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111090 0039d316-1c4b-4281-b951-d872f2087c98
* compositor_unittests target is unimplmented on Macdhollowa@chromium.org2011-11-212-1/+9
| | | | | | | | | | | | | | | | Adds necessary pieces to get the WebKit compositor working with compositor_unittests target on Mac. Required gyp build flags are: 'use_aura': 1, 'use_webkit_compositor': 1, 'use_skia': 1, BUG=104390, 104555 TEST=compositor_unittests --gtest_filter=LayerWithRealCompositorTest.* passes and shows correct visual results. Review URL: http://codereview.chromium.org/8486020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110875 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert PrintingContext::PrintSettingsCallback.jhawkins@chromium.org2011-11-1911-62/+64
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8549031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110813 0039d316-1c4b-4281-b951-d872f2087c98
* More OWNERS for various printing directories.thestig@chromium.org2011-11-181-0/+4
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8600002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110736 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview:[MAC] Added "Open PDF In Preview" option to open the pdf in ↵kmadhusu@chromium.org2011-11-174-0/+29
| | | | | | | | | | | | native preview app. BUG=101724 TEST=Preview a webpage. Click "Open PDF In Preview" option Observe that the pdf is displayed in native preview app. Complete the printing workflow by clicking "Print" or "Cancel" button at the bottom of the preview app. Review URL: http://codereview.chromium.org/8425008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110398 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to printing/.avi@chromium.org2011-11-166-72/+78
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8468031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110317 0039d316-1c4b-4281-b951-d872f2087c98
* Allow linker initialization of lazy instancejoth@chromium.org2011-11-153-5/+5
| | | | | | | | | | | | | | Using the initializer list construct = {0} allows the object to be linker initialized. Modify the LazyInstance class design to make it a pod aggregate type that can be linker initialized this way. Also combines the instance and state members, in line with the Singleton<> class design. Introduces a new LAZY_INSTANCE_INITIALIZER macro specifically for using to init all lazy instances + modify all existing callsites to use it. (Old code would no longer compile) BUG=94925 TEST=existing tests pass. http://build.chromium.org/f/chromium/perf/linux-release/sizes/report.html?history=150&header=chrome-si&graph=chrome-si&rev=-1 should step downward. TBR=jam@chromium.org,rvargas@chromium.org,darin@chromium.org,ben@chromium.org,apatrick@chromium.org,akalin@chromium.org Review URL: http://codereview.chromium.org/8491043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110076 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Making margin selection sticky (part 2/2, again)dpapad@chromium.org2011-11-154-20/+47
| | | | | | | | | | | | This is a reland of http://codereview.chromium.org/8351048/ with minor changes to fix the compilation errors on the shared builders. BUG=102446 TEST=See bug description. Review URL: http://codereview.chromium.org/8528053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110055 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110035 - Print Preview: Making margin selection sticky (part 2/2)dpapad@chromium.org2011-11-154-45/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes "Custom" margins sticky across different preview sessions but also within the same preview session. Here is a summary of all changes. - Within same preview session: So far selecting "Custom" was picking up from whatever the previous selected option was. Now, "Custom" remembers the specified margins. To test this select "Custom", do some dragging, then change to another option and back to "Custom". - Across preview sessions: Select "Custom", do some dragging, then print. Open print preview again, the last used custom margins are remembered. - There was a bunch of messages sent from JS to get various info/settings (initiator tab title, measurement system and number format, last used margin settings, default printer). I created a single message "getInitialSettings" to get all at once (they are needed before the 1st preview is is requested). BUG=102446 TEST=See bug description. Review URL: http://codereview.chromium.org/8351048 TBR=dpapad@chromium.org Review URL: http://codereview.chromium.org/8564040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110040 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Making margin selection sticky (part 2/2)dpapad@chromium.org2011-11-154-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes "Custom" margins sticky across different preview sessions but also within the same preview session. Here is a summary of all changes. - Within same preview session: So far selecting "Custom" was picking up from whatever the previous selected option was. Now, "Custom" remembers the specified margins. To test this select "Custom", do some dragging, then change to another option and back to "Custom". - Across preview sessions: Select "Custom", do some dragging, then print. Open print preview again, the last used custom margins are remembered. - There was a bunch of messages sent from JS to get various info/settings (initiator tab title, measurement system and number format, last used margin settings, default printer). I created a single message "getInitialSettings" to get all at once (they are needed before the 1st preview is is requested). BUG=102446 TEST=See bug description. Review URL: http://codereview.chromium.org/8351048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110035 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in printing, sandbox, and skia.thestig@chromium.org2011-11-146-12/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8538001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109961 0039d316-1c4b-4281-b951-d872f2087c98
* use toolkit_uses_gtk==1 instead of OS==linux for printing_context_gtk.{cc,h}robert.nagy@gmail.com2011-11-141-1/+1
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8560001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109959 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [LINUX] While flipping the orientation, do not rotate the ↵kmadhusu@chromium.org2011-11-093-26/+12
| | | | | | | | | | | | margins values. BUG=103465 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/8505024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109286 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Don't call printing::GetColorModelForMode() when USE_CUPS is not defined.thestig@chromium.org2011-11-082-8/+8
| | | | | | | | | BUG=103183 TEST=none Review URL: http://codereview.chromium.org/8496004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109091 0039d316-1c4b-4281-b951-d872f2087c98
* Get printing working in Aura.abodenha@chromium.org2011-11-089-289/+409
| | | | | | | | | | | | Splits printing_context_cairo into gtk and no system dialog versions. No system dialog versions are used in Chrome OS and Aura. BUG=http://code.google.com/p/chromium-os/issues/detail?id=13915 TEST=Build Chrome with Aura. Hit ctrl-p from any web page. Print preview page should come up and should be able to print via Cloud Print. Review URL: http://codereview.chromium.org/8372030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109059 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 13 exit time constructors and 3 static initializersthakis@chromium.org2011-11-072-10/+14
| | | | | | | | | | BUG=101600,94925 TEST=none TBR=vandebo,viettrungluu Review URL: http://codereview.chromium.org/8487001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108838 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [LINUX] Update the margin values after flipping the paper ↵kmadhusu@chromium.org2011-11-044-10/+124
| | | | | | | | | | | | orientation. BUG=101419 TEST=Please refer to bug description. Review URL: http://codereview.chromium.org/8351063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108598 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Making margin selection sticky (part 1/2).dpapad@chromium.org2011-11-021-1/+1
| | | | | | | | | | | This CL makes sticky default, minimum and no margins selections. Selecting custom margins is not remembered for now (will be addressed in a follow up CL). BUG=102446 TEST=See bug description. Review URL: http://codereview.chromium.org/8428005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108245 0039d316-1c4b-4281-b951-d872f2087c98