summaryrefslogtreecommitdiffstats
path: root/printing/printing_context.h
Commit message (Collapse)AuthorAgeFilesLines
* Move settings setup for PDF and cloud print into single location in ↵vitalybuka@chromium.org2013-11-041-5/+4
| | | | | | | | | | | | | PrintingContext. Hard-code CloudPrint printable area until we start to receive this data from server. BUG=305731 NOTRY=true Review URL: https://codereview.chromium.org/46623002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232741 0039d316-1c4b-4281-b951-d872f2087c98
* De-duplicate job_settings parsing code.vitalybuka@chromium.org2013-10-291-5/+8
| | | | | | | | | | | | | | | Proper set/get methods in PrintSettings. Objective of this re-factoring is to simplify processing of "print_to_pdf || is_cloud_dialog || print_to_cloud" case. Now all platforms for this case do almost the same by in different way: calculate and set printing area. In the next CL I'll move that code into common PrintingContext::UpdatePrintSettings and will ask platform specific implementation for desired page size only. BUG=305731 Review URL: https://codereview.chromium.org/47823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231501 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use base namespace in printing/.thestig@chromium.org2013-10-011-1/+2
| | | | | | Review URL: https://codereview.chromium.org/24989002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226174 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in ppapi/, printing/.avi@chromium.org2013-06-111-1/+1
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16366009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205664 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert PrintingContext::PrintSettingsCallback.jhawkins@chromium.org2011-11-191-3/+3
| | | | | | | | | | | 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
* Move margin processing code to the browser process.vandebo@chromium.org2011-10-151-3/+1
| | | | | | | | | | | | 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
* Add printing.dll to the component build.darin@chromium.org2011-09-011-1/+1
| | | | | | | R=rvargas,thestig Review URL: http://codereview.chromium.org/7799003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99144 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-171-4/+10
| | | | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97219 Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for ↵aayushkumar@chromium.org2011-08-171-10/+4
| | | | | | | | | | | | | | | Skia BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 TBR=aayushkumar@chromium.org Review URL: http://codereview.chromium.org/7670045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97226 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-171-4/+10
| | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97219 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/values.h into the base namespace. This includes a cros DEPS rolldmazzoni@chromium.org2011-07-121-1/+3
| | | | | | | | | | 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
* 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
* PrintPreview: [LINUX] Set color and duplex setting values in print job ticket.kmadhusu@chromium.org2011-04-261-7/+0
| | | | | | | | | 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
* PrintPreview: [MAC] Set duplex binding settings in print ticket.kmadhusu@chromium.org2011-04-201-0/+7
| | | | | | | | | 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
* PrintPreview: Set number of copies and collate in print ticket.kmadhusu@chromium.org2011-04-051-7/+0
| | | | | | | | | 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
* PrintPreview: Added a helper function to get print job settings from dictionary.kmadhusu@chromium.org2011-03-311-0/+7
| | | | | | | | | 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
* Printing: Use const reference instead of a const pointer.thestig@chromium.org2011-03-221-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6675013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78955 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: [MAC] Set the selected printer for the current print job.kmadhusu@chromium.org2011-03-211-3/+6
| | | | | | | | | BUG=76123 TEST=Enable print preview on mac. Press ctrl+p to print a page. On print preview tab, select a printer and press print button. Review URL: http://codereview.chromium.org/6698013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78919 0039d316-1c4b-4281-b951-d872f2087c98
* (1) Hook up the print button to send the pages to the default printer for ↵kmadhusu@chromium.org2011-03-051-1/+5
| | | | | | | | | | | | | printing without displaying a native dialog. (2) Made code changes to accept a print page range from the user and to print only those specified pages. BUG=none TEST=Enable print preview on mac, provide a valid page range and make sure print button in print preview works. Review URL: http://codereview.chromium.org/6533006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77003 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Delete dead code in PrintJob and cleanup corresponding code in ↵thestig@chromium.org2011-02-141-3/+0
| | | | | | | | | | PrintingContext. BUG=none TEST=none Review URL: http://codereview.chromium.org/6510007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74844 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-1/+1
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* On Chrome OS, use the application locale to determine the default paper size ↵sanjeevr@chromium.org2010-12-031-2/+5
| | | | | | | | | | | rather than rely on GTK. BUG=None. TEST=Web pages printed from Chrome OS should use locale-specific default paper size (specifically, for US, it should use 8.5 x 11). Review URL: http://codereview.chromium.org/5636001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68233 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Refactor PrintSettings::Init into a PrintSettingsFactory classjhawkins@chromium.org2010-10-261-1/+0
| | | | | | | | | | | per-platform. BUG=none TEST=none Review URL: http://codereview.chromium.org/4040001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63907 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Convert PrintingContext into an interface implemented by the separatejhawkins@chromium.org2010-10-061-118/+36
| | | | | | | | | | | platforms. BUG=none TEST=none Review URL: http://codereview.chromium.org/3610013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61714 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Remove the debug-only |page_number_| from PrintingContext, which hasjhawkins@chromium.org2010-09-281-5/+0
| | | | | | | | | | | outlived its usefulness. BUG=none TEST=none Review URL: http://codereview.chromium.org/3417025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60731 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Implement PrintingContext::UseDefaultSettings for Linux/Cairo.jhawkins@chromium.org2010-09-211-3/+12
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3389005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60087 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Convert several wstrings to string16.jhawkins@chromium.org2010-09-131-1/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3292019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59262 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 7)thestig@chromium.org2010-08-271-1/+4
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3176026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57737 0039d316-1c4b-4281-b951-d872f2087c98
* Win32: Print the right number of pages.thestig@chromium.org2010-08-131-5/+23
| | | | | | | | BUG=48392 TEST=included. Review URL: http://codereview.chromium.org/3113012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56063 0039d316-1c4b-4281-b951-d872f2087c98
* Set the job name for the print job on the Mac.avi@chromium.org2010-05-121-1/+1
| | | | | | | | | BUG=http://crbug.com/29188 TEST=as in bug Review URL: http://codereview.chromium.org/1997016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47056 0039d316-1c4b-4281-b951-d872f2087c98
* Move some more files to toplevel gfx dir.ben@chromium.org2010-03-171-1/+1
| | | | | | | | | TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41812 0039d316-1c4b-4281-b951-d872f2087c98
* Changes made to the printing logic to allow plugins to participate in the ↵sanjeevr@chromium.org2010-03-121-0/+4
| | | | | | | | | | | | | browser's print workflow. These changes mainly involve allowing the plugin to specify whether it wants the browser to use overlays and also changes to the EMF code on Windows to decompress JPEGs/PNGs in the metafile. The related webkit change is https://bugs.webkit.org/show_bug.cgi?id=35550 BUG=None TEST=Test printing with new Pepper plugins that support custom printing. Review URL: http://codereview.chromium.org/745001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41400 0039d316-1c4b-4281-b951-d872f2087c98
* printing: replace the deprecated macro (DISALLOW_EVIL_CONSTRUCTORS).maruel@chromium.org2009-12-081-1/+1
| | | | | | | | | | Use DISALLOW_COPY_AND_ASSIGN instead. Patch contributed by Thiago Farina Review URL: http://codereview.chromium.org/460087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34030 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the basic OS-level printing mechanics on Macstuartmorgan@chromium.org2009-10-131-11/+35
| | | | | | | | | | | | | Part two of printing implementation on the Mac. This adds a Mac implementation of PrintSettings to get page setup and printer information, basic PDF->context rendering in PrintedDocument, and most of PrintingContext to allow getting print settings (both default and interactive). Reworks the message flow a bit when asking for print settings on the Mac, since it can only be done from the UI thread. Uses a modal dialog for now, but will later be modified further to allow for a sheet. BUG=13158 TEST=None; no user-visible effect yet. Review URL: http://codereview.chromium.org/268036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28857 0039d316-1c4b-4281-b951-d872f2087c98
* Move printing related stuff to the root printing project from the browser ↵sverrir@google.com2009-07-071-0/+152
project. This simplifies further refactoring and eases understanding of the printing part of Chrome. Also renamed win_printing_context to printing_context_win (correct naming convention) and added stub implementations for _linux and mac. Now all but one file is compiling on all platforms. TEST=none (no functional change). BUG=none Review URL: http://codereview.chromium.org/149212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20086 0039d316-1c4b-4281-b951-d872f2087c98