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

Issue 118338: Add support for printing selection only flag. This only adds the flag to the ... (Closed)

Created:
11 years, 6 months ago by Sverrir
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add support for printing selection only flag. This only adds the flag to the IPC and implements the Windows dialog interaction but does not enable this just yet. BUG=http://crbug.com/1682 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17867

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -42 lines) Patch
M chrome/browser/printing/print_job_worker.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_settings.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/printing/print_settings.cc View 1 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/printing/printer_query.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/printer_query.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/printing/win_printing_context.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/printing/win_printing_context.cc View 1 16 chunks +40 lines, -25 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/mock_printer.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/mock_printer.cc View 1 2 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/mock_render_thread.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sverrir
Continued improvement to printing stuff. This is the scaffolding for print selection.
11 years, 6 months ago (2009-06-05 22:18:43 UTC) #1
M-A Ruel
I'm not sure about the selection_only being in ViewMsg_PrintPages_Params vs ViewMsg_Print_Params, the rest lgtm. http://codereview.chromium.org/118338/diff/1/3 ...
11 years, 6 months ago (2009-06-06 01:08:56 UTC) #2
Sverrir
11 years, 6 months ago (2009-06-08 16:03:12 UTC) #3
Made all suggested changes.  Will submit after try bot round...

http://codereview.chromium.org/118338/diff/1/3
File chrome/browser/printing/win_printing_context.cc (right):

http://codereview.chromium.org/118338/diff/1/3#newcode514
Line 514: LPPRINTPAGERANGE page_ranges = NULL;
On 2009/06/06 01:08:56, Marc-Antoine Ruel wrote:
> Use PRINTPAGERANGE* instead.

Done.

http://codereview.chromium.org/118338/diff/1/13
File chrome/common/render_messages.h (right):

http://codereview.chromium.org/118338/diff/1/13#newcode328
Line 328: bool selection_only;
On 2009/06/06 01:08:56, Marc-Antoine Ruel wrote:
> Shouldn't that be in ViewMsg_Print_Params?

True, that's better - Changing that and uploading again.

http://codereview.chromium.org/118338/diff/1/16
File chrome/renderer/print_web_view_helper.cc (right):

http://codereview.chromium.org/118338/diff/1/16#newcode136
Line 136: DCHECK(!print_settings.selection_only);
On 2009/06/06 01:08:56, Marc-Antoine Ruel wrote:
> Humm you shouldn't leave the DCHECK because we can hit it easily. Use
> NOTIMPLEMENTED() instead.

Done

Powered by Google App Engine
This is Rietveld 408576698