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

Issue 125082: Add Print Selection support to Chrome. This change is fairly involved since ... (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 Print Selection support to Chrome. This change is fairly involved since this means that the printing is done async instead of the fully synchronous mode the normal full page printing is. This means we create an in memory copy of the selected text for printing. This is the next step to move to fully async printing with print frame support. This change also removes the print on demand functionality that was no longer used. BUG=http://crbug.com/1682 TEST=The print dialog on Windows now contains an option to print selection only. Test that with various pages and various selections. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18815

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -128 lines) Patch
M chrome/browser/printing/page_range.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/printing/page_range.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/printing/page_range_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_job_worker.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/printing/print_view_manager.h View 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/printing/printed_document.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/printing/printed_document.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -57 lines 0 comments Download
M chrome/browser/printing/win_printing_context.cc View 7 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/render_messages_internal.h View 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
MM chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 5 chunks +60 lines, -17 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -3 lines 0 comments Download
M webkit/glue/webview_impl.cc View 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Sverrir
This change is NOT ready for submitting but I wanted an early feedback. There are ...
11 years, 6 months ago (2009-06-12 22:16:08 UTC) #1
M-A Ruel
Seems to fix the issue with waiting for the page to be finished loading before ...
11 years, 6 months ago (2009-06-15 16:43:36 UTC) #2
Sverrir
Uploaded a new patch. Added the IPC to notify when printing is done and do ...
11 years, 6 months ago (2009-06-17 16:34:58 UTC) #3
M-A Ruel
http://codereview.chromium.org/125082/diff/1005/1024 File chrome/common/render_messages.h (right): http://codereview.chromium.org/125082/diff/1005/1024#newcode354 Line 354: struct ViewMsg_PrintingDone_Params { It's not used by ViewMsg_PrintingDone ...
11 years, 6 months ago (2009-06-17 19:07:41 UTC) #4
Sverrir
I moved the error handling to one place in PrintWebViewHelper and renamed the member variable ...
11 years, 6 months ago (2009-06-17 21:11:43 UTC) #5
M-A Ruel
lgtm
11 years, 6 months ago (2009-06-17 21:14:51 UTC) #6
Sverrir
11 years, 6 months ago (2009-06-18 21:55:07 UTC) #7
Can you take a quick look again.  I found a regression in print ranges so I
reverted a change in page_number and changed it in win_printing_context instead.

Also I fixed a crash in glue because of the print selection usage of WebView is
non-standard.

Powered by Google App Engine
This is Rietveld 408576698