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

Issue 172115: Pass printing result to the browser.... (Closed)

Created:
11 years, 3 months ago by myhuang
Modified:
9 years, 7 months ago
Reviewers:
tony, agl, M-A Ruel
CC:
chromium-reviews_googlegroups.com, John Grabowski, Pam (message me for reviews), jam, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Pass printing result to the browser. The resulting PDF file will now be passed to the browser and be saved as "chromium_printing_test.pdf" under current directory. BUG=9847 TEST=printing on linux should now generate chromium_printing_test.pdf in download directory. Printing on Windows should still work. Patch contributed by minyu.huang@gmail.com Committed as revision 25615.

Patch Set 1 #

Total comments: 20

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -109 lines) Patch
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -1 line 1 comment Download
M chrome/common/temp_scaffolding_stubs.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
M chrome/common/temp_scaffolding_stubs.cc View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -2 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -28 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 2 3 4 5 6 7 8 3 chunks +88 lines, -19 lines 1 comment Download
M chrome/renderer/print_web_view_helper_mac.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -3 lines 2 comments Download
M skia/ext/vector_canvas.h View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -5 lines 0 comments Download
M skia/ext/vector_canvas_linux.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -9 lines 0 comments Download
M skia/ext/vector_platform_device_linux.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -13 lines 0 comments Download
M skia/ext/vector_platform_device_linux.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
myhuang
11 years, 3 months ago (2009-09-02 22:22:52 UTC) #1
M-A Ruel
http://codereview.chromium.org/172115/diff/1/3 File chrome/browser/renderer_host/resource_message_filter.h (right): http://codereview.chromium.org/172115/diff/1/3#newcode195 Line 195: // Used to pass resulting EMF from renderer ...
11 years, 3 months ago (2009-09-02 23:45:01 UTC) #2
tony
http://codereview.chromium.org/172115/diff/1/5 File chrome/common/temp_scaffolding_stubs.cc (right): http://codereview.chromium.org/172115/diff/1/5#newcode358 Line 358: metafile->SaveTo(FilePath("chromium_printing_test.pdf")); Nit: I think you should put this ...
11 years, 3 months ago (2009-09-03 19:31:19 UTC) #3
myhuang
Path set #2 and #3 are almost the same. I just forgot to remove one ...
11 years, 3 months ago (2009-09-03 23:08:28 UTC) #4
myhuang
Wait... I forgot to change some other files so this won't compile. Sorry!! On 2009/09/03 ...
11 years, 3 months ago (2009-09-03 23:10:26 UTC) #5
M-A Ruel
A few comment before committing. http://codereview.chromium.org/172115/diff/9001/10001 File chrome/browser/renderer_host/resource_message_filter.cc (right): http://codereview.chromium.org/172115/diff/9001/10001#newcode327 Line 327: IPC_MESSAGE_HANDLER(ViewHostMsg_DuplicateSection, OnDuplicateSection) delete ...
11 years, 3 months ago (2009-09-04 00:42:44 UTC) #6
myhuang
http://codereview.chromium.org/172115/diff/9001/10010 File chrome/renderer/print_web_view_helper_win.cc (right): http://codereview.chromium.org/172115/diff/9001/10010#newcode262 Line 262: routing_id(), On 2009/09/04 00:42:44, Marc-Antoine Ruel wrote: > ...
11 years, 3 months ago (2009-09-08 03:08:31 UTC) #7
M-A Ruel
11 years, 3 months ago (2009-09-08 14:38:51 UTC) #8
Committed with changes (except the DCHECK_GT I forgot to remove).

http://codereview.chromium.org/172115/diff/8039/8042
File chrome/common/render_messages_internal.h (right):

http://codereview.chromium.org/172115/diff/8039/8042#newcode1345
Line 1345: base::SharedMemoryHandle /* renderer handle */,
broke alignment

http://codereview.chromium.org/172115/diff/8039/8047
File chrome/renderer/print_web_view_helper_linux.cc (right):

http://codereview.chromium.org/172115/diff/8039/8047#newcode81
Line 81: DCHECK_GT(buf_size, 0u);
uh

http://codereview.chromium.org/172115/diff/8039/8049
File chrome/renderer/print_web_view_helper_win.cc (right):

http://codereview.chromium.org/172115/diff/8039/8049#newcode206
Line 206: if (shrink <= 0) {
Fix this one too for consistency.

http://codereview.chromium.org/172115/diff/8039/8049#newcode233
Line 233: if (webkit_shrink <= 0) {
Please test both.

Powered by Google App Engine
This is Rietveld 408576698