summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* 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
* PrintPreview: [MAC] Set the system default page size in NSPrintInfo ↵kmadhusu@chromium.org2011-11-022-0/+100
| | | | | | | | | | | | PMPageFormat. BUG=none TEST=Preview a webpage. Make sure the preview page size is same as default page size in print&fax preference pane. Review URL: http://codereview.chromium.org/8426002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108235 0039d316-1c4b-4281-b951-d872f2087c98
* Change string16 to std::string in the gfx::Font() interface.erg@chromium.org2011-10-271-1/+1
| | | | | | | | | | | | Most consumers on all platforms (including windows!) were converting the font family/GetFontName() result to UTF8. (Windows was still having to convert for the SkTypeface calls.) On Linux, we're performing a UTF16ToUTF8 on each string print (and this is showing up in pprof output.) BUG=100803 TEST=none Review URL: http://codereview.chromium.org/8392017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107659 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify that the custom margin value is not validated and add tests.vandebo@chromium.org2011-10-203-17/+51
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8342059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106429 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded namespaces.thestig@chromium.org2011-10-1812-105/+95
| | | | | | | | 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
* Some extra cflags are needed for cups on OpenBSD.robert.nagy@gmail.com2011-10-181-0/+5
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8345001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106115 0039d316-1c4b-4281-b951-d872f2087c98
* For no margins, or printable area margins, don't factor in the header/footer ↵vandebo@chromium.org2011-10-183-10/+15
| | | | | | | | | | | size. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8328001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105973 0039d316-1c4b-4281-b951-d872f2087c98
* When printing a PDF, query and use the print scaling disabled option. Also, ↵vandebo@chromium.org2011-10-172-0/+3
| | | | | | | | | | | | some general clean ups. BUG=67091, 92045, 92218 TEST=Print a PDF with print scaling disabled and see that it takes up the entire page. Review URL: http://codereview.chromium.org/8312003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105893 0039d316-1c4b-4281-b951-d872f2087c98
* Move margin processing code to the browser process.vandebo@chromium.org2011-10-159-70/+174
| | | | | | | | | | | | 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
* PrintPreview: Added code to honor the grayscale color model.kmadhusu@chromium.org2011-10-141-0/+1
| | | | | | | | | | | BUG=None TEST=Add a printer which supports grayscale and cmyk color models. Preview a color webpage. Observe that the color options is displayed to the user. Review URL: http://codereview.chromium.org/8280002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105528 0039d316-1c4b-4281-b951-d872f2087c98
* Excludes printing aura files on windows as the windows ones worksky@chromium.org2011-10-131-0/+9
| | | | | | | | | | | | fine. BUG=none TEST=none R=thestig@chromium.org Review URL: http://codereview.chromium.org/8290001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105411 0039d316-1c4b-4281-b951-d872f2087c98
* More options for the types of margins to add.vandebo@chromium.org2011-10-132-8/+16
| | | | | | | | | | | | | | Original (broken) CL: http://codereview.chromium.org/8227034 Already approved by dpapad@ TBR=dpapad@chromium.org BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8261005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105281 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 105087: PrintPreview: Fix printer color settings issues based on ↵kmadhusu@chromium.org2011-10-135-13/+172
| | | | | | | | | | | | | | | | printer ppd/schema info. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 Review URL: http://codereview.chromium.org/8226024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105217 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 105087 - PrintPreview: Fix printer color settings issues based on ↵kmadhusu@chromium.org2011-10-125-171/+13
| | | | | | | | | | | | | | | | printer ppd/schema information. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/8245012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105096 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Fix printer color settings issues based on printer ppd/schema ↵kmadhusu@chromium.org2011-10-125-13/+171
| | | | | | | | | | | | | information. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Review URL: http://codereview.chromium.org/8138020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105087 0039d316-1c4b-4281-b951-d872f2087c98
* More Aura fixes to build with chromeos==1saintlou@chromium.org2011-10-122-3/+1
| | | | | | | | | | | | | This is not enough to build without stubs for WmIpc, Bubble and ScreenLocker. TBR=sky@chromium.org BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8233029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105012 0039d316-1c4b-4281-b951-d872f2087c98
* Sanity check the printable area returned by windows.vandebo@chromium.org2011-10-082-2/+8
| | | | | | | | | | BUG=96063 TEST=NONE Review URL: http://codereview.chromium.org/8200010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104615 0039d316-1c4b-4281-b951-d872f2087c98
* No need for Aura stubs under ChromeOS since we already have a sans-GTK impl.saintlou@chromium.org2011-10-072-1/+3
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8205015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104596 0039d316-1c4b-4281-b951-d872f2087c98
* scoped_ptr and new[] don't mix.thakis@chromium.org2011-10-071-1/+1
| | | | | | | | | | BUG=99261 TEST=none Review URL: http://codereview.chromium.org/8207004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104592 0039d316-1c4b-4281-b951-d872f2087c98
* make browser_tests compile and link under use_aura=1 chromeos=0.alicet@chromium.org2011-10-072-0/+17
| | | | | | | | | | BUG=99362 TEST=None Review URL: http://codereview.chromium.org/8190012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104574 0039d316-1c4b-4281-b951-d872f2087c98
* Patch up excessive margins until we can get the real fix plumbed through.vandebo@chromium.org2011-10-072-5/+6
| | | | | | | | | BUG=92000 TEST=NONE Review URL: http://codereview.chromium.org/8173016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104442 0039d316-1c4b-4281-b951-d872f2087c98
* * Rename ScopedHDC to ScopedCreateDCyosin@chromium.org2011-10-071-1/+3
| | | | | | | | | | * Use ScopedSelectObject for changed files BUG=99139 TEST=no user visible change Review URL: http://codereview.chromium.org/8139022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
* Get Chrome to build & link with USE_AURA on Windows again.BUG=noneTEST=noneben@chromium.org2011-10-061-2/+4
| | | | | | Review URL: http://codereview.chromium.org/8174005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104382 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing build.gene@chromium.org2011-10-061-1/+1
| | | | | | Review URL: http://codereview.chromium.org/8174015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104373 0039d316-1c4b-4281-b951-d872f2087c98
* Added autorotate flag in PDF rendering and wiring it through service-utility ↵gene@chromium.org2011-10-061-0/+44
| | | | | | | | channel. Review URL: http://codereview.chromium.org/8146004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104371 0039d316-1c4b-4281-b951-d872f2087c98
* We will need to support printing under Aura + ChromeOS (and we will have to ↵saintlou@chromium.org2011-10-063-0/+39
| | | | | | | | | | | | remove Gtk too). BUG=97131 TEST=none Review URL: http://codereview.chromium.org/8165004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104244 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove dead code - printing::PrintedPagesSource::RenderSourceName() ↵thestig@chromium.org2011-10-043-16/+2
| | | | | | | | | | | and printing::PrintedDocument::url(). They were only used by the old headers/footers code. BUG=none TEST=none Review URL: http://codereview.chromium.org/8113029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103970 0039d316-1c4b-4281-b951-d872f2087c98
* Fix lack of preview when GCP printer is selected.abodenha@chromium.org2011-10-042-4/+8
| | | | | | | | | | | | Add handling for the cloud print dialog to update settings code on Mac and Windows. BUG=98929 TEST= Review URL: http://codereview.chromium.org/8122006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103937 0039d316-1c4b-4281-b951-d872f2087c98