summaryrefslogtreecommitdiffstats
path: root/printing/printing_context.cc
Commit message (Collapse)AuthorAgeFilesLines
* Print Preview: Making margin selection sticky (part 2/2, again)dpapad@chromium.org2011-11-151-19/+8
| | | | | | | | | | | | 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-151-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-19/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 namespaces.thestig@chromium.org2011-10-181-11/+8
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8334007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106129 0039d316-1c4b-4281-b951-d872f2087c98
* Move margin processing code to the browser process.vandebo@chromium.org2011-10-151-0/+52
| | | | | | | | | | | | 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
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-171-0/+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/+0
| | | | | | | | | | | | | | | 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-0/+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
* PrintPreview: Set number of copies and collate in print ticket.kmadhusu@chromium.org2011-04-051-14/+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-1/+17
| | | | | | | | | 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
* On Chrome OS, use the application locale to determine the default paper size ↵sanjeevr@chromium.org2010-12-031-2/+3
| | | | | | | | | | | 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-0/+2
| | | | | | | | | | | 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-0/+31
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