summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
Commit message (Collapse)AuthorAgeFilesLines
* TTF: Re-enable PrintingLayoutTextTest.Complex by marking it FAILS_.jhawkins@chromium.org2010-07-091-2/+2
| | | | | | | | | BUG=7721 TEST=PrintingLayoutTextTest.Complex Review URL: http://codereview.chromium.org/2939003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51965 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate most of the remaining wstring file_util functions.evan@chromium.org2010-07-081-4/+4
| | | | | | | | | | | | | These still exist on Windows due to being used by the installer, but by moving them into the Windows-only block we prevent them from being used in new code. (I am already finding new code using some of these! I am glad to be rid of them.) BUG=24672 Review URL: http://codereview.chromium.org/2850042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51862 0039d316-1c4b-4281-b951-d872f2087c98
* Implement limited paged media support for win.hamaji@chromium.org2010-07-021-1/+2
| | | | | | | | | BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2859040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51501 0039d316-1c4b-4281-b951-d872f2087c98
* Implement limited paged media support for mac.hamaji@chromium.org2010-07-011-1/+3
| | | | | | | | | BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2876020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51347 0039d316-1c4b-4281-b951-d872f2087c98
* Change a bunch of string types.estade@chromium.org2010-06-291-2/+2
| | | | | | | | | | | | | Started out just trying to change PrefService::GetString and ::SetString. This snowballed a little bit. Had to change a bunch of url strings in search_engines/ from wstring to string (some of them may be better off as GURLs, but UTF-8 is a step in the right direction, since that's what GURL uses internally, as well as externally via its setters/getters). TODO (later patch): things that ask for accepted languages should use std::string, not std::wstring. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/2854015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51157 0039d316-1c4b-4281-b951-d872f2087c98
* Don't allow more than one pending print dialog per browser instance.estade@chromium.org2010-06-182-1/+30
| | | | | | | | | | | As a future TODO, it might be nice to limit it per-tab instead of per-app. BUG=46575 TEST=manual Review URL: http://codereview.chromium.org/2848011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50203 0039d316-1c4b-4281-b951-d872f2087c98
* Pref service strings should be std::string.estade@chromium.org2010-06-181-2/+2
| | | | | | | | | | | Part 1: Convert RegisterStringPref. BUG=none TEST=compile Review URL: http://codereview.chromium.org/2809022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50202 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crashy test.scottbyer@chromium.org2010-06-163-33/+76
| | | | | | | | | | | http://code.google.com/p/chromium/issues/detail?id=44547 BUG=44547 TEST=PrintDialogCloudTest.HandlersRegistered Review URL: http://codereview.chromium.org/2241001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50025 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49592 - Fix crashy test.scottbyer@chromium.org2010-06-113-48/+21
| | | | | | | | | | | | http://code.google.com/p/chromium/issues/detail?id=44547 BUG=44547 TEST=PrintDialogCloudTest.HandlersRegistered TBR=scottbyer@chromium.org Review URL: http://codereview.chromium.org/2775007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49596 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49593 - Tweaks to the test.scottbyer@chromium.org2010-06-112-42/+22
| | | | | | | TBR=scottbyer@chromium.org Review URL: http://codereview.chromium.org/2753011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49595 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks to the test.scottbyer@chromium.org2010-06-112-22/+42
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49593 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crashy test.scottbyer@chromium.org2010-06-113-21/+48
| | | | | | | | | http://code.google.com/p/chromium/issues/detail?id=44547 BUG=44547 TEST=PrintDialogCloudTest.HandlersRegistered git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49592 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable test, add in test detail.scottbyer@chromium.org2010-06-041-5/+21
| | | | | | | | | | | Add in asked-for test of getting the title through, found text-only PDF file for that test, re-enabled it. BUG=none TEST=CloudPrintDataSenderTest.CanSend Review URL: http://codereview.chromium.org/2590002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48935 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cloud print job title.scottbyer@chromium.org2010-06-033-17/+28
| | | | | | | | | | | Use the page title as the print job title for cloud printing. BUG=none TEST=none Review URL: http://codereview.chromium.org/2438004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48833 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Add FRIEND_TEST_ALL_PREFIXES, a FRIEND_TEST replacementphajdan.jr@chromium.org2010-06-011-4/+2
| | | | | | | | | | | that works with all test prefixes (DISABLED, FLAKY, FAILS). TEST=none BUG=44549 Review URL: http://codereview.chromium.org/2439001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48634 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cloud print dialog bug.scottbyer@chromium.org2010-05-253-7/+82
| | | | | | | | | | | Add some unit tests, and fix the exposed issue - the cloud print dialog wasn't allowing the hosted code to close the window. BUG=none TEST=CloudPrintHtmlDialogDelegateTest Review URL: http://codereview.chromium.org/2149007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48193 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the build by updating FRIEND_TEST line.phajdan.jr@chromium.org2010-05-191-0/+1
| | | | | | | | | | TBR=maruel BUG=44547 Review URL: http://codereview.chromium.org/2083013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47646 0039d316-1c4b-4281-b951-d872f2087c98
* Disable PrintDialogCloudTest.HandlersRegistered because of crashiness.phajdan.jr@chromium.org2010-05-191-1/+2
| | | | | | | | | | | TBR=maruel TEST=disabled BUG=44547 Review URL: http://codereview.chromium.org/2117016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47644 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on cloud print for Chromium OS.scottbyer@chromium.org2010-05-184-17/+121
| | | | | | | | | | | Turn on cloud print for Chromium OS by default. Replace the placeholder URL of the URL for the to-be service. Add in a profile item for the cloud print service root URL. BUG=none TEST=none Review URL: http://codereview.chromium.org/2078010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47534 0039d316-1c4b-4281-b951-d872f2087c98
* [Large; Chromium OS] Work to host the cloud print dialog when builtmaruel@chromium.org2010-05-145-0/+1055
| | | | | | | | | | | | | | | for Chromium OS. Currently disabled by default behind a command line switch, and containing a non-real URL for now, this code is at prototype level. It works (when enabled and pointed at a functioning cloud print service URL), has the beginnings of some unit tests, and has the beginnings of deeper communication with the dialog contents, and it shuts off the DOM UI access from the dialog contents. Patch contributed by Scott Byer Review URL: http://codereview.chromium.org/1769006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47228 0039d316-1c4b-4281-b951-d872f2087c98
* Moved cloud print code from the chrome/browser/printing/cloud_print to ↵sanjeevr@chromium.org2010-05-1316-2691/+7
| | | | | | | | | | chrome/service/cloud_print BUG=None. TEST=None. Review URL: http://codereview.chromium.org/2007012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47155 0039d316-1c4b-4281-b951-d872f2087c98
* Set the job name for the print job on the Mac.avi@chromium.org2010-05-124-12/+12
| | | | | | | | | 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
* Moved URLFetcher and related classes to chrome/common/net.sanjeevr@chromium.org2010-05-074-4/+4
| | | | | | | | BUG=None TEST=Build and Unittests Review URL: http://codereview.chromium.org/1995008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46739 0039d316-1c4b-4281-b951-d872f2087c98
* Fix various uses of release() that did not check its valueestade@chromium.org2010-05-041-9/+6
| | | | | | | | | BUG=42904 TEST=compile, unit tests Review URL: http://codereview.chromium.org/1730024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46376 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deprecated things from net test suite:phajdan.jr@chromium.org2010-04-301-6/+6
| | | | | | | | | | | | - URLRequestTestContext (from now on use TestURLRequestContext) - TestServerPageW (use TestServerPage). TEST=none BUG=none Review URL: http://codereview.chromium.org/1814002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46044 0039d316-1c4b-4281-b951-d872f2087c98
* First cut of Cloud Print Proxy implementation. The code is not enabled for ↵sanjeevr@google.com2010-04-2016-0/+2775
| | | | | | | | | | | now. Soon the cloud print proxy code will move from the browser process to a background process called the service process. BUG=None TEST=None for now Review URL: http://codereview.chromium.org/1566047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45000 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Miscellanous UI tests cleanups:phajdan.jr@chromium.org2010-03-301-19/+4
| | | | | | | | | | | | | | | - use built-in timeouts instead of "inventing" them in each test case - avoid unneeded checks and operations - use automation calls more effectively - use FLAKY mark instead of DISABLED to maintain test coverage - split some tests to make the above possible TEST=UI test based BUG=39785 Review URL: http://codereview.chromium.org/1547003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43070 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files to toplevel gfx.ben@chromium.org2010-03-191-1/+1
| | | | | | | | | TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42071 0039d316-1c4b-4281-b951-d872f2087c98
* Move some more files to toplevel gfx dir.ben@chromium.org2010-03-173-3/+3
| | | | | | | | | 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-124-3/+9
| | | | | | | | | | | | | 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
* Compile more printing code on Linux and nuke some stubs.craig.schlenter@chromium.org2010-02-221-58/+0
| | | | | | | | | BUG=none TEST=compiles on bots Review URL: http://codereview.chromium.org/619008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39597 0039d316-1c4b-4281-b951-d872f2087c98
* linux: readjust some stubbed filesevan@chromium.org2010-02-153-99/+4
| | | | | | | | | | | This removes a bunch of NOTIMPLEMENTEDs and stub files, moving them to a different place. TEST=it compiles Review URL: http://codereview.chromium.org/594057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39074 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: fix shared build.craig.schlenter@chromium.org2010-02-151-17/+0
| | | | | | | | | | | | | | | | The demise of temp scaffolding has left the shared build in an unhappy state where the compiler complains about vtable issues with PrintJob because only half the class is implemented. Fix this by compiling some more printing files on linux and stubbing out AskUserForSettings. BUG=none TEST=linux shared build compiles. Other builds still ok too. Review URL: http://codereview.chromium.org/598066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39038 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the temporary scaffolding stubs.phajdan.jr@chromium.org2010-02-104-0/+174
| | | | | | | | | | | | | They have served they purpose well, but now it's time to retire. It's one of the things that draggen in the bad dependency of chrome/common on chrome/browser, and is sufficiently small now to stub things out individually. TEST=none BUG=none Review URL: http://codereview.chromium.org/593037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38639 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Don't show all of the print dialog's children, including widgets ↵thestig@chromium.org2009-12-081-1/+1
| | | | | | | | | | normally not displayed. BUG=26872 TEST=Default print dialog should not have the conflict warning. Review URL: http://codereview.chromium.org/460138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34072 0039d316-1c4b-4281-b951-d872f2087c98
* printing: replace the deprecated macro (DISALLOW_EVIL_CONSTRUCTORS).maruel@chromium.org2009-12-082-2/+2
| | | | | | | | | | 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
* Add platform abstraction for simple error box, and use it in a couple ↵estade@chromium.org2009-11-231-1/+1
| | | | | | | | | | | | extensions-related places. Also add a virtual destructor in some unrelated infobar. BUG=27691 Review URL: http://codereview.chromium.org/427002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32840 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes almost all of the rest of lint errors in the chrome/ directory (minus ↵erg@google.com2009-11-132-4/+3
| | | | | | | | the really hard ones which will need actual review instead of rubber-stamping.) Review URL: http://codereview.chromium.org/386026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31932 0039d316-1c4b-4281-b951-d872f2087c98
* Seventh patch in making destructors of refcounted objects private.jam@chromium.org2009-11-064-6/+14
| | | | | | | BUG=26749 Review URL: http://codereview.chromium.org/371006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31192 0039d316-1c4b-4281-b951-d872f2087c98
* Third patch in getting rid of caching MessageLoop pointers and always using ↵jam@chromium.org2009-11-022-8/+6
| | | | | | | | | | ChromeThread instead. BUG=25354 Review URL: http://codereview.chromium.org/342068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30687 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify threading in browser thread by making only ChromeThread deal with ↵jam@chromium.org2009-10-271-6/+6
| | | | | | | | different thread lifetimes.The rest of the code doesn't get MessageLoop pointers since they're not thread-safe and instead just call PostTask on ChromeThread. If the target thread is not alive, then the task is simply deleted.In a followup change, I'll remove any remaining MessageLoop* caching. With this change, there's little to be gained by caching since no locks are involved if the target MessageLoop is guaranteed to outlive the current thread (inferred automatically by the order of the chrome_threads_ array).BUG=25354 Review URL: http://codereview.chromium.org/306032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30163 0039d316-1c4b-4281-b951-d872f2087c98
* Re-try r29078: Remove some deprecated file_util wstring functions.estade@chromium.org2009-10-151-1/+2
| | | | | | | | | | | | | With the previous patch, the try bots failed with mysterious messages, so I ignored them, patched it into my windows box and tested it there manually, and found no problems. As it turns out, the try failures were real :(. But nsylvain and I found the problem: the behavior of file_util::GetDirectoryFromPath() differs from DirName() when the path is empty (officially, GetDirectoryFromPath is not supposed to support non-absolute paths, but that is not enforced). Here is a green win try result: http://build.chromium.org/buildbot/try-server/builders/win/builds/3705 mac: http://build.chromium.org/buildbot/try-server/builders/mac/builds/3491 linux: http://build.chromium.org/buildbot/try-server/builders/linux/builds/3466 I also applied this patch locally in Windows to test that it doesn't break the chrome frame compile or tests, since that's not covered by the trybots yet. Review URL: http://codereview.chromium.org/271099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29094 0039d316-1c4b-4281-b951-d872f2087c98
* Revert wstring patch (r29078 and follow up commits). It is causing failures ↵estade@chromium.org2009-10-151-2/+1
| | | | | | | | | | on the buildbots. TBR=nsylvain Review URL: http://codereview.chromium.org/280004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29085 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some deprecated file_util wstring functions.estade@chromium.org2009-10-151-1/+2
| | | | | | | | | | | death to the wstring TEST=trybots BUG=none Review URL: http://codereview.chromium.org/276016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29078 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the RenderViewTest printing tests on the Mac.stuartmorgan@chromium.org2009-10-141-2/+2
| | | | | | | | | | | | | | | Migrates some test APIs from wstring path names to FilePath objects, and fixes some gcc compilation issues, to allow the tests to build on Mac. Moves rendering logic and some other pdf logic into PdfMetafile to avoid duplication with unit test code. Switches rendering from the deprecated CGContextDrawPDFDocument to the newer (but less convenient) CGContextDrawPDFPage. Added debugging helpers to PdfMetafile: SaveTo, matching the other platform metafiles, and context retain count checking to get early warning of issues that will cause printing failure. BUG=24750 TEST=N/A Review URL: http://codereview.chromium.org/274052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29003 0039d316-1c4b-4281-b951-d872f2087c98
* More style nits.erg@google.com2009-10-144-5/+4
| | | | | | | | (Working on cleaning chrome/ so hopefully we can lint it by default.) Review URL: http://codereview.chromium.org/274040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28971 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up printing on the Macstuartmorgan@chromium.org2009-10-136-15/+73
| | | | | | | | | | | | | Get the printing support class stack building and hooked up on the Mac. Add support for creating NativeMetafile objects with PDF print data on the renderer side, and passing them to the browser via the existing printing IPC system. Flip on the simpler printing unit tests (those that don't require PDF -> bitmap conversion). BUG=13158 TEST=Print on the Mac--it should work! Review URL: http://codereview.chromium.org/276004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28907 0039d316-1c4b-4281-b951-d872f2087c98
* Use ASCII strings for switch names.evan@chromium.org2009-10-131-2/+2
| | | | | | Review URL: http://codereview.chromium.org/270062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: don't dcheck when user dismisses print dialog.estade@chromium.org2009-10-131-0/+1
| | | | | | | | | BUG=none TEST=ctrl+p, escape in debug mode does not dcheck Review URL: http://codereview.chromium.org/272030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28776 0039d316-1c4b-4281-b951-d872f2087c98
* Move native_widget_types and gtk_native_view_id_manager from base/gfx tobrettw@chromium.org2009-10-111-1/+1
| | | | | | | | | | | | app/gfx in preparation for removing the base_gfx project. This also moves base/window_impl.cc to app/win/window_impl because this file shouldn't be in base. TEST=none BUG=none Review URL: http://codereview.chromium.org/273017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28691 0039d316-1c4b-4281-b951-d872f2087c98