summaryrefslogtreecommitdiffstats
path: root/printing
Commit message (Collapse)AuthorAgeFilesLines
* Allows gtk2 printing dialog in Linux-Aura.mukai@chromium.org2014-01-146-56/+70
| | | | | | | | | | | | | | | | A todo is the parent/dialog relationship. Right now print_dialog_gtk2 creates the dialog with NULL parent, so the dialog can move under the browser window. We need to do something similar to select_file_dialog_impl_gtk2.cc BUG=317882 R=erg@chromium.org, thestig@chromium.org, vitalybuka@chromium.org TEST=manually Review URL: https://codereview.chromium.org/135163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244734 0039d316-1c4b-4281-b951-d872f2087c98
* Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, ↵avi@chromium.org2013-12-255-21/+25
| | | | | | | | | | | | sandbox/, skia/, sql/, sync/, tools/, webkit/, win8/ to use the base:: namespace. BUG=330556 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/121123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242502 0039d316-1c4b-4281-b951-d872f2087c98
* Update uses of Value in extensions/, google_apis/, gpu/, media/, net/, ↵avi@chromium.org2013-12-231-1/+1
| | | | | | | | | | | | printing/, remoting/, rlz/, sync/, ui/ to use the base:: namespace. BUG=88666 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/116433007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242410 0039d316-1c4b-4281-b951-d872f2087c98
* Add base:: to a string16 in printing/.dbeam@chromium.org2013-12-191-1/+1
| | | | | | | | | R=dpapad@chromium.org BUG=329295 Review URL: https://codereview.chromium.org/101643006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241974 0039d316-1c4b-4281-b951-d872f2087c98
* Move geometric types to a separate, more lightweight target.ben@chromium.org2013-12-181-0/+2
| | | | | | | | | R=sky@chromium.org http://crbug.com/327489 Review URL: https://codereview.chromium.org/109433013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241649 0039d316-1c4b-4281-b951-d872f2087c98
* Have jni_generator.gypi specify include_dirs to dependent targets.blundell@chromium.org2013-12-171-5/+2
| | | | | | | | | | | | Rather than each dependent target of a target that generates jni headers having to specify the appropriate include_dir manually, jni_generator.gypi can do it via direct_dependent_settings. TBR=darin@chromium.org Review URL: https://codereview.chromium.org/111493006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241216 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing all Java import ordering issues.aurimas@chromium.org2013-12-104-10/+8
| | | | | | | | | | BUG=320711 TBR=isherman@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/110963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239823 0039d316-1c4b-4281-b951-d872f2087c98
* Remove references to SkAdvancedTypefaceMetrics::kNotEmbeddable_Fontvandebo@chromium.org2013-12-091-3/+3
| | | | | | | | | | First part of a two sided change. kNotEmbeddable_Font is going away in favor of an explicit flag to represent it. This change preserves existing functionality/operation and just changes the constant being used. BUG=NONE Review URL: https://codereview.chromium.org/105433003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239546 0039d316-1c4b-4281-b951-d872f2087c98
* Android: refactors printing code & adds a testcimamoglu@chromium.org2013-12-042-14/+170
| | | | | | Review URL: https://codereview.chromium.org/85693005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238776 0039d316-1c4b-4281-b951-d872f2087c98
* Move GetFileSize, NormalizeFilePath to base namespacebrettw@chromium.org2013-12-041-1/+1
| | | | | | | | | BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/102873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238722 0039d316-1c4b-4281-b951-d872f2087c98
* Move temp file functions to base namespace.brettw@chromium.org2013-12-032-3/+3
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/99923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238427 0039d316-1c4b-4281-b951-d872f2087c98
* Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close.mark@chromium.org2013-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is incorrect to wrap close in HANDLE_EINTR on Linux. Correctness is generally undefined on Mac, but as of r223369, it is incorrect in Chrome on Mac. To avoid new offenders, a PRESUBMIT check ensures that HANDLE_EINTR is not used with close, and that IGNORE_EINTR is only used with close. Unnecessary #includes of eintr_wrapper.h are also removed. base/posix/einter_wrapper.h, PRESUBMIT.py, and ppapi/tests/test_broker.cc contain non-mechanical changes. Variable naming within the latter is updated per r178174. Missing #includes for <errno.h> in content/zygote/zygote_main_linux.cc and tools/android/common/daemon.cc were manually added. Mechanical changes were generated by running: sed -E -i '' \ -e 's/((=|if|return|CHECK|EXPECT|ASSERT).*)HANDLE(_EINTR\(.*close)/\1IGNORE\3/' \ -e 's/(ignore_result|void ?)\(HANDLE_EINTR\((.*close\(.*)\)\)/\2/' \ -e 's/(\(void\) ?)?HANDLE_EINTR\((.*close\(.*)\)/\2/' \ $(git grep -El 'HANDLE_EINTR.*close') sed -E -i '' -e '/#include.*eintr_wrapper\.h"/d' \ $(grep -EL '(HANDLE|IGNORE)_EINTR' \ $(git grep -El '#include.*eintr_wrapper\.h"')) BUG=269623 R=agl@chromium.org, jln@chromium.org TBR=OWNERS Review URL: https://codereview.chromium.org/100253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238390 0039d316-1c4b-4281-b951-d872f2087c98
* Move some more file utils to the base namespace.brettw@chromium.org2013-12-021-1/+1
| | | | | | | | | This also swaps the order of the parameters to GetShmemTempDir so the out parameter is last, and enhances some documentation. Review URL: https://codereview.chromium.org/93263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238144 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Remove Receive() from ScopedHandle.rvargas@chromium.org2013-11-281-6/+3
| | | | | | | | | | | | | | | | | | In general, the OS API contract doesn't guarantee that output variables are not modified on failure, so a Reeceive pattern is fundamentally insecure. BUG=318531 TEST=current tests tbr'ing owners for the consumers. TBR=jvoung@chromium.org, thakis@chromium.org, sergeyu@chromium.org, grt@chromium.org, gene@chromium.org, youngki@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237459 Review URL: https://codereview.chromium.org/71013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237675 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of https://codereview.chromium.org/71013004/hashimoto@chromium.org2013-11-271-3/+6
| | | | | | | | | | | | Reason for revert: Causing compile failure in chrome_util.cc on "Google Chrome Win" http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Win/builds/21803 TBR=cpu@chromium.org,jvoung@chromium.org,thakis@chromium.org,sergeyu@chromium.org,grt@chromium.org,gene@chromium.org,youngki@chromium.org,rvargas@chromium.org NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/90963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237541 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Remove Receive() from ScopedHandle.rvargas@chromium.org2013-11-271-6/+3
| | | | | | | | | | | | | | | | In general, the OS API contract doesn't guarantee that output variables are not modified on failure, so a Reeceive pattern is fundamentally insecure. BUG=318531 TEST=current tests tbr'ing owners for the consumers. TBR=jvoung@chromium.org, thakis@chromium.org, sergeyu@chromium.org, grt@chromium.org, gene@chromium.org, youngki@chromium.org Review URL: https://codereview.chromium.org/71013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237459 0039d316-1c4b-4281-b951-d872f2087c98
* Android: fix a null pointer exception in printing codecimamoglu@chromium.org2013-11-261-1/+1
| | | | | | | | TBR=avayvod@chromium.org Review URL: https://codereview.chromium.org/85623005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237329 0039d316-1c4b-4281-b951-d872f2087c98
* Android: change native pointer types from int to long in src/printingcimamoglu@chromium.org2013-11-223-4/+5
| | | | | | | | BUG=317523 Review URL: https://codereview.chromium.org/83283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236820 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Moves isPrintingSupported method to ApiCompatibilityUtilscimamoglu@chromium.org2013-11-221-10/+0
| | | | | | | | | | | PrintingControllerImpl uses new KitKat APIs, so it causes problems with ICS bots. BUG=321751 Review URL: https://codereview.chromium.org/83263003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236773 0039d316-1c4b-4281-b951-d872f2087c98
* Pass PWG raster conversion settings from Preview to Converter.vitalybuka@chromium.org2013-11-212-0/+6
| | | | | | | | BUG=318373 Review URL: https://codereview.chromium.org/78173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236618 0039d316-1c4b-4281-b951-d872f2087c98
* Update Android printing related OWNERS filescimamoglu@chromium.org2013-11-212-0/+5
| | | | | | Review URL: https://codereview.chromium.org/77453004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236523 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor Android printing code to make it more testable.cimamoglu@chromium.org2013-11-207-117/+130
| | | | | | | | | | | | | | | | | | | | * Move printing logic from Tab to TabBase (i.e. to upstream), and also in the relevant files tab_android.*, TabPrinter.java. * Remove obsolete Android printing feature detection code. * Move PrintingControllerFactory logic into PrintingControllerImpl. * Create a new PrintingControllerFactory, so the clients have a ligher weight creation process (5-6 lines to 1). * Instead of depending on Context to create a PrintManager, depend on an interface, namely PrintManagerDelegate. * Remove setErrorText (move the logic inside factory). * Remove the hardcoded default file name (use Printable#getTitle) instead. BUG=315229 Review URL: https://codereview.chromium.org/63483007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236256 0039d316-1c4b-4281-b951-d872f2087c98
* Use predefined margine for privet printing.vitalybuka@chromium.org2013-11-201-1/+1
| | | | | | | | | BUG=318373 TBR=gene Review URL: https://codereview.chromium.org/78143002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236237 0039d316-1c4b-4281-b951-d872f2087c98
* Load pdf library on all platforms.vitalybuka@chromium.org2013-11-201-1/+1
| | | | | | | | | | | | Added RenderPDFPageToBitmap signature. Call ChromeContentUtilityClient::PreSandboxStartup for Zygote. It does not real additional work. Zygote already loads pdf and initialize MediaLibrary for renderer inside content/, pdf is just to hard to access from Utility. ServiceDiscoveryMessageHandler::PreSandboxStartup does nothing for POSIX. BUG=318373 Review URL: https://codereview.chromium.org/70083006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236212 0039d316-1c4b-4281-b951-d872f2087c98
* Make Privet Printing work on Windows.vitalybuka@chromium.org2013-11-201-3/+5
| | | | | | | | | | Printing context need to know that it's Privet local printing to generate preview. BUG=318373 Review URL: https://codereview.chromium.org/77023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236211 0039d316-1c4b-4281-b951-d872f2087c98
* Set DPI before using GetPdfPaperSizeDeviceUnitscimamoglu@chromium.org2013-11-181-0/+1
| | | | | | | | | Not setting DPI causes a modal error dialog to be shown for Android printing code. Review URL: https://codereview.chromium.org/75273005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235825 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some pass-thrus on RootWindow API in favor of exposing the ↵ben@chromium.org2013-11-151-1/+1
| | | | | | | | | | | RootWindowHost again. R=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/72503002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235293 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Android printing code.cimamoglu@chromium.org2013-11-149-0/+953
| | | | | | | | | | | | | | | | With regards to the original downstream code, there are some differences: * PrintintControllerComponent(Impl) are renamed to PrintingController(Impl) * ChromeComponentFactory is renamed into PrintingControllerFactory * Some obsolete documentation removed/updated. More refactoring and tests will follow. BUG=315229 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/64093004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235171 0039d316-1c4b-4281-b951-d872f2087c98
* Don't set "print selection" to false.vitalybuka@chromium.org2013-11-121-1/+0
| | | | | | | | | | | | Before r231501 "print selection" was setup after InitPrintSettings. So reseting to false was OK. Now option is already there so we need to keep it. BUG=317851 NOTRY=true Review URL: https://codereview.chromium.org/69033004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234444 0039d316-1c4b-4281-b951-d872f2087c98
* Extract XPS code from PrintSystemWin.vitalybuka@chromium.org2013-11-101-0/+25
| | | | | | | | BUG=317027 Review URL: https://codereview.chromium.org/61673004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234174 0039d316-1c4b-4281-b951-d872f2087c98
* Moved SimplifyDocumentTitle from printing/backendvitalybuka@chromium.org2013-11-097-42/+70
| | | | | | | | TBR=noamsml Review URL: https://codereview.chromium.org/59903019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234127 0039d316-1c4b-4281-b951-d872f2087c98
* Print to Privet local printersnoamsml@chromium.org2013-11-092-0/+9
| | | | | | | | | | | This is a first iteration of printing to a Privet local printer. It only supports PDFs. PWG rasterization will be added separately. BUG=311390 Review URL: https://codereview.chromium.org/59843010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234126 0039d316-1c4b-4281-b951-d872f2087c98
* Allow printing component to be removed completelyspang@chromium.org2013-11-071-10/+0
| | | | | | | | | | | | | | Using enable_printing=0 removes all of the source files of the printing component, but has no effect on its dependencies. It is wrong to empty out the target inside the target. If printing is disabled, then the dependency on printing.gyp is not needed and can be removed. This target was causing libgcrypt to be linked even when printing was disabled. That problem goes away with this change. Review URL: https://codereview.chromium.org/62793002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233563 0039d316-1c4b-4281-b951-d872f2087c98
* Move settings setup for PDF and cloud print into single location in ↵vitalybuka@chromium.org2013-11-0418-114/+160
| | | | | | | | | | | | | 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
* Re-enabled printing_context_win_unittest for aura.vitalybuka@chromium.org2013-11-023-14/+13
| | | | | | | | BUG=312495 Review URL: https://codereview.chromium.org/56553003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232611 0039d316-1c4b-4281-b951-d872f2087c98
* Update printing_context_win_unittest.cc for r231501.bungeman@chromium.org2013-11-011-1/+1
| | | | | | | | | | | r231501 changed PrintSettings::ranges from a field to a method. This updates a test to reflect this. R=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/56333005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232466 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary dependencies on "ui" target from some other targets.tfarina@chromium.org2013-11-011-1/+0
| | | | | | | | | | BUG=302505 TEST=None, targets built. R=dalecurtis@chromium.org,thestig@chromium.org,ben@chromium.org Review URL: https://codereview.chromium.org/48213004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232399 0039d316-1c4b-4281-b951-d872f2087c98
* Revert piece of "De-duplicate job_settings parsing code." r231501vitalybuka@chromium.org2013-11-012-3/+4
| | | | | | | | UseDefaultSettingsis call is not necessary. Review URL: https://codereview.chromium.org/54273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232371 0039d316-1c4b-4281-b951-d872f2087c98
* De-duplicate job_settings parsing code.vitalybuka@chromium.org2013-10-2926-307/+304
| | | | | | | | | | | | | | | 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
* ui: Have shell_dialogs into its own gyp file under its shell_dialogs/ directory.tfarina@chromium.org2013-10-291-1/+1
| | | | | | | | | | | | | | | This is the pattern we follow for projects under ui/, each top-level directory (app_list, aura, compositor, events) have its own gyp file for its main target (library). BUG=299841 TEST=build/gyp_chromium, ninja -C out/Debug shell_dialogs, and other targets still build. R=ben@chromium.org Review URL: https://codereview.chromium.org/47323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231478 0039d316-1c4b-4281-b951-d872f2087c98
* Removed unused PrintSettings::printer_name_.vitalybuka@chromium.org2013-10-275-13/+1
| | | | | | | | TBR=gene Review URL: https://codereview.chromium.org/47413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231265 0039d316-1c4b-4281-b951-d872f2087c98
* Make GetRootWindow() return a Window instead of a RootWindow.ben@chromium.org2013-10-251-1/+1
| | | | | | | | | | | | Also adds a typedef from RootWindow to WindowEventDispatcher, the eventual name of this type. Adds a GetDispatcher() method that crawls up to the root Window and returns the WindowEventDispatcher. R=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/37733003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231077 0039d316-1c4b-4281-b951-d872f2087c98
* Use JS Date().toLocaleDateString() to format date in header. Fixed issues ↵vitalybuka@chromium.org2013-10-233-5/+0
| | | | | | | | | | | | with local date formats. Remove date from printing settings. BUG=103111 Review URL: https://codereview.chromium.org/30443003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230283 0039d316-1c4b-4281-b951-d872f2087c98
* Use BaseShellDialog for print dialog on Windowsscottmg@chromium.org2013-10-224-23/+52
| | | | | | | | | | | | | This puts the print dialog on a background thread which is necessary so other top level windows can keep painting as Aura does the compositor swaps on the UI thread. R=sky@chromium.org,vitalybuka@chromium.org BUG=180997 Review URL: https://codereview.chromium.org/27441003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230235 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing #include of algorithm for std::maxscottmg@chromium.org2013-10-221-0/+2
| | | | | | | | | | | Needed for compilation on VS2013. TBR=vitalybuka@chromium.org BUG=288948 Review URL: https://codereview.chromium.org/33923004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230024 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Save the CUPS printer color model info and use it when printing.thestig@chromium.org2013-10-182-0/+7
| | | | | | | | BUG=306682 Review URL: https://codereview.chromium.org/26539013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229293 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup various bits of printing code.thestig@chromium.org2013-10-147-52/+47
| | | | | | Review URL: https://codereview.chromium.org/27146002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228518 0039d316-1c4b-4281-b951-d872f2087c98
* Remove abodenha from printing related ownersabodenha@chromium.org2013-10-091-1/+0
| | | | | | | | | | R=scottbyer@chromium.org NOTRY=true BUG=none Review URL: https://codereview.chromium.org/26344003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227792 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed memory overflow caused by invalid input.vitalybuka@chromium.org2013-10-022-2/+18
| | | | | | | | BUG=95548,296887 Review URL: https://codereview.chromium.org/25651002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226545 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use base namespace in printing/.thestig@chromium.org2013-10-0122-47/+49
| | | | | | Review URL: https://codereview.chromium.org/24989002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226174 0039d316-1c4b-4281-b951-d872f2087c98