Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Issue 6516022: Linux: Refactor printing to be more like Windows/Mac.... (Closed)

Created:
9 years, 10 months ago by Lei Zhang
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org, tony, Scott Byer
Visibility:
Public.

Description

Linux: Refactor printing to be more linux Windows/Mac. BUG=41543, 59732 TEST=Printing works on Linux and CrOS, Linux printing respect print dialog settings. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75475

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address PrintDialogGtk comments #

Total comments: 12

Patch Set 3 : Address more PrintDialogGtk comments #

Total comments: 4

Patch Set 4 : Address PrintDialogGtk nits #

Patch Set 5 : fix failing print tests #

Total comments: 8

Patch Set 6 : fix nits #

Total comments: 6

Patch Set 7 : '' #

Patch Set 8 : fix mac build #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -227 lines) Patch
M chrome/browser/browser_main_posix.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_gtk.h View 1 2 3 4 5 6 2 chunks +49 lines, -15 lines 0 comments Download
M chrome/browser/printing/print_dialog_gtk.cc View 1 2 3 4 5 6 2 chunks +152 lines, -119 lines 1 comment Download
M chrome/browser/printing/print_job_worker.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 2 chunks +20 lines, -12 lines 0 comments Download
M chrome/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_message_filter_gtk.cc View 1 2 3 4 5 6 7 chunks +11 lines, -19 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/mock_render_thread.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 2 3 4 5 6 4 chunks +58 lines, -5 lines 0 comments Download
M chrome/test/render_view_test.cc View 1 2 3 4 5 6 3 chunks +14 lines, -14 lines 0 comments Download
M printing/printed_document.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M printing/printed_document.cc View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
M printing/printed_document_cairo.cc View 1 2 3 4 5 6 2 chunks +9 lines, -5 lines 0 comments Download
M printing/printing_context_cairo.h View 1 2 3 4 5 6 4 chunks +24 lines, -1 line 0 comments Download
M printing/printing_context_cairo.cc View 1 2 3 4 5 6 6 chunks +70 lines, -23 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Lei Zhang
maruel/sanjeevr: Please review the overall print workflow change. estade: Please take a look at the ...
9 years, 10 months ago (2011-02-14 21:52:48 UTC) #1
Evan Stade
what's the point of RefCountedThreadSafe if you never have a ref count more than 1? ...
9 years, 10 months ago (2011-02-14 23:30:54 UTC) #2
Lei Zhang
It's ref counted because we pass it around in PostTask. http://codereview.chromium.org/6516022/diff/1/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/6516022/diff/1/chrome/browser/printing/print_dialog_gtk.cc#newcode30 ...
9 years, 10 months ago (2011-02-14 23:47:31 UTC) #3
Evan Stade
http://codereview.chromium.org/6516022/diff/7002/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/6516022/diff/7002/chrome/browser/printing/print_dialog_gtk.cc#newcode39 chrome/browser/printing/print_dialog_gtk.cc:39: scoped_ptr<base::WaitableEvent> event; unite these http://codereview.chromium.org/6516022/diff/7002/chrome/browser/printing/print_dialog_gtk.cc#newcode40 chrome/browser/printing/print_dialog_gtk.cc:40: event.reset(new base::WaitableEvent(false, false)); ...
9 years, 10 months ago (2011-02-15 00:40:46 UTC) #4
Lei Zhang
http://codereview.chromium.org/6516022/diff/7002/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/6516022/diff/7002/chrome/browser/printing/print_dialog_gtk.cc#newcode39 chrome/browser/printing/print_dialog_gtk.cc:39: scoped_ptr<base::WaitableEvent> event; On 2011/02/15 00:40:46, Evan Stade wrote: > ...
9 years, 10 months ago (2011-02-15 01:20:26 UTC) #5
Evan Stade
LGTM http://codereview.chromium.org/6516022/diff/13004/chrome/browser/printing/print_dialog_gtk.h File chrome/browser/printing/print_dialog_gtk.h (right): http://codereview.chromium.org/6516022/diff/13004/chrome/browser/printing/print_dialog_gtk.h#newcode44 chrome/browser/printing/print_dialog_gtk.h:44: explicit PrintDialogGtk(PrintingContextCairo::PrintSettingsCallback* callback, no longer need explicit http://codereview.chromium.org/6516022/diff/13004/chrome/browser/printing/print_dialog_gtk.h#newcode75 ...
9 years, 10 months ago (2011-02-15 02:03:06 UTC) #6
Lei Zhang
http://codereview.chromium.org/6516022/diff/13004/chrome/browser/printing/print_dialog_gtk.h File chrome/browser/printing/print_dialog_gtk.h (right): http://codereview.chromium.org/6516022/diff/13004/chrome/browser/printing/print_dialog_gtk.h#newcode44 chrome/browser/printing/print_dialog_gtk.h:44: explicit PrintDialogGtk(PrintingContextCairo::PrintSettingsCallback* callback, On 2011/02/15 02:03:06, Evan Stade wrote: ...
9 years, 10 months ago (2011-02-15 02:12:17 UTC) #7
Marc-Antoine Ruel (Google)
Only nits, lgtm http://codereview.chromium.org/6516022/diff/14007/chrome/browser/printing/print_dialog_gtk.h File chrome/browser/printing/print_dialog_gtk.h (right): http://codereview.chromium.org/6516022/diff/14007/chrome/browser/printing/print_dialog_gtk.h#newcode30 chrome/browser/printing/print_dialog_gtk.h:30: static void* CreatePrintDialog( nit: It doesn't ...
9 years, 10 months ago (2011-02-15 14:18:23 UTC) #8
Lei Zhang
http://codereview.chromium.org/6516022/diff/14007/chrome/browser/printing/print_dialog_gtk.h File chrome/browser/printing/print_dialog_gtk.h (right): http://codereview.chromium.org/6516022/diff/14007/chrome/browser/printing/print_dialog_gtk.h#newcode30 chrome/browser/printing/print_dialog_gtk.h:30: static void* CreatePrintDialog( On 2011/02/15 14:18:23, Marc-Antoine Ruel (Google) ...
9 years, 10 months ago (2011-02-15 21:20:10 UTC) #9
sanjeevr
A few comments. http://codereview.chromium.org/6516022/diff/11014/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/6516022/diff/11014/chrome/browser/printing/print_dialog_gtk.cc#newcode48 chrome/browser/printing/print_dialog_gtk.cc:48: event->Wait(); What thread does this run ...
9 years, 10 months ago (2011-02-17 21:09:48 UTC) #10
Lei Zhang
http://codereview.chromium.org/6516022/diff/11014/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/6516022/diff/11014/chrome/browser/printing/print_dialog_gtk.cc#newcode48 chrome/browser/printing/print_dialog_gtk.cc:48: event->Wait(); On 2011/02/17 21:09:48, sanjeevr wrote: > What thread ...
9 years, 10 months ago (2011-02-18 00:10:08 UTC) #11
sanjeevr
LGTM. I still think you should use a separate IPC, but I am OK with ...
9 years, 10 months ago (2011-02-18 22:47:08 UTC) #12
James Hawkins
9 years, 10 months ago (2011-02-25 20:53:59 UTC) #13
http://codereview.chromium.org/6516022/diff/19003/chrome/browser/printing/pri...
File chrome/browser/printing/print_dialog_gtk.cc (right):

http://codereview.chromium.org/6516022/diff/19003/chrome/browser/printing/pri...
chrome/browser/printing/print_dialog_gtk.cc:121: printing::PageRange* range =
new printing::PageRange;
You're leaking |range|. There's no need to make |range| dynamic here.

Powered by Google App Engine
This is Rietveld 408576698