summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Add a TODO to clean up libgcrypt & gnutls dependency.phajdan.jr@chromium.org2012-12-131-0/+4
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/11316367 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172715 0039d316-1c4b-4281-b951-d872f2087c98
* Wrapers for PRINTER_INFO_* and DRIVER_INFO_*.vitalybuka@chromium.org2012-12-128-235/+233
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11530005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172552 0039d316-1c4b-4281-b951-d872f2087c98
* Improving reliability of PrintBackendWin::GetPrinterSemanticCapsAndDefaults. ↵vitalybuka@chromium.org2012-12-111-21/+35
| | | | | | | | | | | Try fallback to PRINTER_INFO_2 and return predefined values. BUG=161772 Review URL: https://chromiumcodereview.appspot.com/11531003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172404 0039d316-1c4b-4281-b951-d872f2087c98
* Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode().gab@chromium.org2012-12-064-2/+8
| | | | | | | | | | | | | | | | Many things were calling IsMetroProcess() when the intent was really to turn things ON/OFF for Metro Chrome, this does not apply to Metro Ash however. Details of how this has been decoupled can be found at https://docs.google.com/spreadsheet/ccc?key=0AtwXJ4IPPZBAdEdaWUpLYk9IM3I1bTJleFJobXN3Z2c (more decoupling will be needed later and has been listed in separate columns on this spreadsheet; however for now this CL only applies the first column). Also introduces win8_util where some other win8-specific things currently in base should eventually also be refactored into. BUG=151718 TEST=This makes a bunch of things just work now in Metro Ash :). Review URL: https://chromiumcodereview.appspot.com/11411286 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171366 0039d316-1c4b-4281-b951-d872f2087c98
* printing: Use skia::RefPtr to replace manual ref-counting.danakj@chromium.org2012-12-041-4/+4
| | | | | | | | | | | R=vandebo@chromium.org BUG=163454 Depends on: https://codereview.chromium.org/11428099/ NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11316263 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170878 0039d316-1c4b-4281-b951-d872f2087c98
* Speculative fix of attached bug.vitalybuka@chromium.org2012-11-301-7/+20
| | | | | | | | | | | | Don't return false if PRINTER_INFO_9 is not available. More logging in GetPrinterSemanticCapsAndDefaults. BUG=161772 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11428058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170396 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir from base to base/filesbrettw@chromium.org2012-11-161-2/+2
| | | | | | | | | | Also add to base namespace. BUG= Review URL: https://codereview.chromium.org/11359217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168281 0039d316-1c4b-4281-b951-d872f2087c98
* Move eintr_wrapper.h from base to base/posixbrettw@chromium.org2012-11-141-1/+1
| | | | | | Review URL: https://codereview.chromium.org/11366229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167739 0039d316-1c4b-4281-b951-d872f2087c98
* Print headers and footers with WebKit.vitalybuka@chromium.org2012-11-135-56/+3
| | | | | | | | | | | | | Old implementation with gfx::RenderText had issues with fallback fonts. Sandbox does not allow to read required information from registry. Also WebKit inplementation is smaller and more readable. BUG=152893, 108599, 133548 TEST=manual: make sure that main content with or without headers is in the same place (default margin is exception). Make sure that any custom margins and paper layout produce reasonable result. If margins are to small, header and footer should be hidden. Review URL: https://chromiumcodereview.appspot.com/11359020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167311 0039d316-1c4b-4281-b951-d872f2087c98
* Remove all the "set noparent" directivesdpranke@chromium.org2012-10-191-1/+0
| | | | | | | | | | | | | Now that OWNERS supports per-file owners, we can limit the scope of the top-level wildcard to just DEPS, and make darin and ben owners for everything else and remove the broad use of "set noparent". R=ben@chromium.org, darin@chromium.org BUG=88315 Review URL: https://codereview.chromium.org/11191038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163069 0039d316-1c4b-4281-b951-d872f2087c98
* Restored partial rasterization for AlphaBlend.vitalybuka@chromium.org2012-10-132-21/+132
| | | | | | | | | | | Fixed incorect transformation in RasterizeAlphaBlendProc. BUG=152204 Review URL: https://chromiumcodereview.appspot.com/11078018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161713 0039d316-1c4b-4281-b951-d872f2087c98
* Miscellaneous tiny cleanups done while converting files to use ↵pkasting@chromium.org2012-10-011-23/+23
| | | | | | | | | | ScopedCOMInitializer, pulled out separately to make review easier. BUG=none TEST=none Review URL: https://codereview.chromium.org/10991052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159526 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: fix build with system ICU.phajdan.jr@chromium.org2012-09-281-1/+1
| | | | | | | | | | | | | | This is upstreaming Gentoo Linux patch, fixing breakage from https://chromiumcodereview.appspot.com/10941025/ TBR=vitalybuka,abodenha BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10986080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159235 0039d316-1c4b-4281-b951-d872f2087c98
* Set max title size to 50vitalybuka@chromium.org2012-09-232-3/+4
| | | | | | | | | | BUG=65469 Review URL: https://chromiumcodereview.appspot.com/10963050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158198 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 158193 - Set max title size to 50vitalybuka@chromium.org2012-09-221-1/+1
| | | | | | | | | | | | | BUG=65469 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10963050 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/10968051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158194 0039d316-1c4b-4281-b951-d872f2087c98
* Set max title size to 50vitalybuka@chromium.org2012-09-221-1/+1
| | | | | | | | | | BUG=65469 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10963050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158193 0039d316-1c4b-4281-b951-d872f2087c98
* Make printing_unittests depend on tcmalloc on non-Darwin posix systems (like ↵glider@chromium.org2012-09-201-0/+2
| | | | | | | | | net_unittests do) instead of checking for toolkit_uses_gtk. TBR=vandebo Review URL: https://codereview.chromium.org/10963008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157752 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify document title for Windows printing.vitalybuka@chromium.org2012-09-206-0/+55
| | | | | | | | | | Some drivers can't handle long titles or control characters. BUG=65469 Review URL: https://chromiumcodereview.appspot.com/10941025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157715 0039d316-1c4b-4281-b951-d872f2087c98
* Match paper by both PPD name and size.vitalybuka@chromium.org2012-09-101-11/+31
| | | | | | | | | | According http://lists.apple.com/archives/printing/2011/Nov/msg00001.html PMPaperGetPPDPaperName should provide better result than just size. BUG=145237 Review URL: https://chromiumcodereview.appspot.com/10918117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155783 0039d316-1c4b-4281-b951-d872f2087c98
* Valgrind: Fix some leaks in the CUPS printing code and remove a no longer ↵thestig@chromium.org2012-09-071-5/+4
| | | | | | | | supported OS X 10.5 check. Review URL: https://chromiumcodereview.appspot.com/10908022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155483 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build.dmazzoni@chromium.org2012-09-071-0/+2
| | | | | | | | | | printing/backend/cups_helper.cc wasn't compiling on Linux with gcc 4.6. TBR=gene Review URL: https://chromiumcodereview.appspot.com/10905147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155360 0039d316-1c4b-4281-b951-d872f2087c98
* Get semantic capabilities from Print Backend.gene@chromium.org2012-09-079-1/+671
| | | | | | | | | | | | | Moved OS specific code into OS specific print backends (vs. print_system_task_proxy.cc). On Windows get capabilities using native API (vs. XPS parsing) Some clean up on code and interfaces for Print Backend. BUG=144031 TEST=Verify Print Preview on ALL platforms (Win XP, Win 7, Linux, Mac). Review URL: https://chromiumcodereview.appspot.com/10905006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155310 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview: Use an ID instead of memory pointer string in WebUI.thestig@chromium.org2012-08-242-4/+4
| | | | | | | | BUG=144051 Review URL: https://chromiumcodereview.appspot.com/10870003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153342 0039d316-1c4b-4281-b951-d872f2087c98
* Some printers has issue with metafiles produces from PDF so added switch and ↵vitalybuka@chromium.org2012-08-223-11/+135
| | | | | | | | | | | | | | | | | | | | | about:flag as workaround for affected users. Rasterisation is implemented and RasterizeMetafile function. It replace metafile with new one where content is only bitmap created by playback of original metafile. FlattenTransparency replaced with full rasterisation. Fixed rectangle returned by Emf::GetPageBounds. Removed SkDevice::AlphaBlendUsed(). Removed return value from PrintWebViewHelper::RenderPage on windows. BUG=133527 Review URL: https://chromiumcodereview.appspot.com/10836330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152681 0039d316-1c4b-4281-b951-d872f2087c98
* It's possible to have system configuration where connector has no permission ↵vitalybuka@chromium.org2012-08-151-1/+0
| | | | | | | | | | | to access printer. BUG=None Review URL: https://chromiumcodereview.appspot.com/10827334 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151737 0039d316-1c4b-4281-b951-d872f2087c98
* Adding basic Metro Print Metrics.mad@chromium.org2012-08-131-1/+6
| | | | | | | | | | BUG=136041 TEST=Make sure metro print actions are logged as histograms. Review URL: https://chromiumcodereview.appspot.com/10831272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151285 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Remove more 10.5-only codethakis@chromium.org2012-08-101-1/+1
| | | | | | | | | BUG=137676 TBR=jamiewalch,tony Review URL: https://chromiumcodereview.appspot.com/10825302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151142 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue with some locales simetimes getting the wrong page size.abodenha@chromium.org2012-08-071-1/+1
| | | | | | | | | | | | | | | | | | We use ulocdata_getPaperSize to get the preferred paper size for a region. The error handling for the call assumed that a value other than U_ZERO_ERROR was an error. This is incorrect. The function sometimes returns a warning (negative value). When that happens, the error handling code defaulted to 8.5x11 pages. This CL changes the error handling to no longer treat a warning as an error. BUG=140821 TEST=Set display language to English(UK). Print a web page and choose to save as PDF. Verify that the saved PDF is A4. Review URL: https://chromiumcodereview.appspot.com/10834217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150447 0039d316-1c4b-4281-b951-d872f2087c98
* Correct const accessors in base/values.(h|cc)vabr@chromium.org2012-07-271-2/+2
| | | | | | | | | | | | | For problem description and other info please see the BUG page. This is for DictionaryValue. BUG=138946 TEST=N/A (no fix & no new feature) TBR=jar scottbyer achuith agl mnissler davemoore garykac akalin hans bulach phajdan.jr jamesr Review URL: https://chromiumcodereview.appspot.com/10834004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148833 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize log message style for cloudprint service and display printer idalexyu@google.com2012-07-231-8/+12
| | | | | | | | | | | | and job id wherever possible BUG=138602 TEST= Review URL: https://chromiumcodereview.appspot.com/10808086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147987 0039d316-1c4b-4281-b951-d872f2087c98
* Make StickySettings sticky across sessions.abodenha@chromium.org2012-07-182-0/+4
| | | | | | | | | | | | | | | Print preview currently keeps settings "sticky" within a single browser session so that if the user chooses a printer or settings it will be remembered the next time preview is launched. This CL extends that behavior to make the settings stick across multiple sessions. BUG=111957 TEST=Enable flag. Verify that all print preview settings that are sticky within a session are sticky across sessions. Review URL: https://chromiumcodereview.appspot.com/10780004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147142 0039d316-1c4b-4281-b951-d872f2087c98
* Send request to show print system dialog to Metro.mad@chromium.org2012-07-121-0/+16
| | | | | | | | | | BUG=134256 TEST=Make sure there are no way to open the system's print dialog in Chrome when running in Metro. The print device charm should be shown instead. Review URL: https://chromiumcodereview.appspot.com/10701155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146399 0039d316-1c4b-4281-b951-d872f2087c98
* roll skia to 4552reed@google.com2012-07-121-6/+6
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10702144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146328 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-116-6/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* These are the Chrome side changes to support the Print device charm in Metro.mad@chromium.org2012-06-294-0/+104
| | | | | | | | | | | | We now expose a print destination interface (not quite complete yet) to bypass the current print flow so that the metafile bits get sent to Metro instead of the print spooler. Other changes will come to make this more complete, e.g., pass in the destination object from the metro module, and expose print settings on the destination interface. BUG=125675 TEST=Make sure you can still print as usual outside the Metro world. Review URL: https://chromiumcodereview.appspot.com/10483006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144943 0039d316-1c4b-4281-b951-d872f2087c98
* Restore DC before EndPage call to state if was just after StartPage. We need ↵vitalybuka@chromium.org2012-06-203-38/+49
| | | | | | | | | | | this because EndPage clips page with current clipping region. BUG=71509 TEST=unittest Review URL: https://chromiumcodereview.appspot.com/10557019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143119 0039d316-1c4b-4281-b951-d872f2087c98
* Mac printing: Autorotate printed pages so their orientation is the same as ↵thestig@chromium.org2012-06-187-71/+99
| | | | | | | | | | the destination page. BUG=93303,132922 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10560021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142824 0039d316-1c4b-4281-b951-d872f2087c98
* Add ENABLE_PRINTING and disable it on Android.wangxianzhu@chromium.org2012-06-091-0/+11
| | | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10540033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141353 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 139885 - Enable the handle verifier.rvargas@google.com2012-06-041-2/+1
| | | | | | | | | | | | | BUG=127931 TEST=none TBR=willchan, wez, abodenha Review URL: https://chromiumcodereview.appspot.com/10441124 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10516004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140417 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 139885 - Enable the handle verifier.rvargas@google.com2012-05-311-1/+2
| | | | | | | | | | | | | BUG=127931 TEST=none TBR=willchan, wez, abodenha Review URL: https://chromiumcodereview.appspot.com/10441124 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10454100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139905 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the handle verifier.rvargas@google.com2012-05-311-2/+1
| | | | | | | | | | BUG=127931 TEST=none TBR=willchan, wez, abodenha Review URL: https://chromiumcodereview.appspot.com/10441124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139885 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Add a handle verifier to ScopedHandle.rvargas@chromium.org2012-05-311-1/+2
| | | | | | | | | | | | | This provides basic tracking of handles for XP. BUG=127931 TEST=none TBR=abodenha, wez Review URL: https://chromiumcodereview.appspot.com/10453082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139736 0039d316-1c4b-4281-b951-d872f2087c98
* Remove use of BrowserList::GetLastActive from PrintDialogGtk. Pass through ↵ben@chromium.org2012-05-242-1/+3
| | | | | | | | | | the parent GtkWidget instead and locate a parent window from that. http://crbug.com/129187 TEST=none Review URL: https://chromiumcodereview.appspot.com/10436002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138714 0039d316-1c4b-4281-b951-d872f2087c98
* Adding functionality to specify TLS encryption CUPS print servers for ↵gene@chromium.org2012-05-165-11/+26
| | | | | | | | | | | cloudprint connector. BUG=127858 TEST=add 'cups_encryption' filed to 'Service State' file in print settings section. Value should be 0..4 (see http_encryption_t for possible values). Review URL: https://chromiumcodereview.appspot.com/10399050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137550 0039d316-1c4b-4281-b951-d872f2087c98
* [Print Preview]: Added code to support pdf fit to page functionality.kmadhusu@chromium.org2012-05-162-0/+5
| | | | | | | | | | BUG=85132 TEST=none Review URL: https://chromiumcodereview.appspot.com/10083060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137498 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded scoped_ptr.h includes from ppapi, printing, ↵thestig@chromium.org2012-05-164-35/+34
| | | | | | | | | | | | remoting, and sync. BUG=none TEST=none TBR=brettw,hclam,akalin,abodenha Review URL: https://chromiumcodereview.appspot.com/10387107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137376 0039d316-1c4b-4281-b951-d872f2087c98
* Fix new -Wnull-conversion violations detected by a newer clang.thakis@chromium.org2012-05-161-1/+1
| | | | | | | | | | | | No intended behavior change. BUG=none TEST=none TBR=hans Review URL: https://chromiumcodereview.appspot.com/10383207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137374 0039d316-1c4b-4281-b951-d872f2087c98
* Change the way _EXPORT macros look.thakis@chromium.org2012-05-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the current setup, if you have a header file my_class.h class BASE_EXPORT MyClass { public: void MyInlineMethod() { /* do stuff, inline */ } }; then every cc file that includes my_class.h will have a public symbol for MyInlineMethod (because inline methods need to be emitted to every translation unit, and the linker sorts them out). With the components build, the linker can't decide to drop these inline methods, so every .so that uses this header file will have the same public symbol. With this proposed change, the symbol will only be visible in the target the header file belongs to, and it will be hidden in all other components. That's cleaner, and it also prevents accident hidden dependencies (say target A depends on B, and B depends on C. A accidentally uses an inline function from a class in C. With this change, that would result in a linker error, and an explicit dependency from A on C would have to be added). Also add a missing CHROMEOS_IMPLEMENTATION define which went unnoticed until now. BUG=90078 TEST=Things still build. TBR=ben, tony, viettrungluu, thestig, agl, willchan Review URL: https://chromiumcodereview.appspot.com/10386108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137130 0039d316-1c4b-4281-b951-d872f2087c98
* A better fix for scaling issue.gene@chromium.org2012-05-095-74/+26
| | | | | | | | | | | Instead of using TLS and static function, pass scaling in the skia dictionary. BUG=125499 TEST=Make sure printing is working. Review URL: https://chromiumcodereview.appspot.com/10387022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136055 0039d316-1c4b-4281-b951-d872f2087c98
* ugrr... Fixing printing scaling again.gene@chromium.org2012-05-033-1/+73
| | | | | | | | | | | | | Not the nicest fix, but it should do the job. Now, we'll try to use default scaling (72dpi) whenever we can. If sceen resolution droped below the point where metafile can't accomodate whole PDF page anymore, we'll use this hack to pass custom scale in the TLS for the upper layer. BUG=125499 TEST=Print PDF using print preview and system print dialog. Same for webpage. Make screen resolution 800x600 and repeat. Review URL: http://codereview.chromium.org/10348002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135241 0039d316-1c4b-4281-b951-d872f2087c98