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

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed)

Created:
9 years, 1 month ago by kmadhusu
Modified:
8 years, 11 months ago
CC:
chromium-reviews, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

PrintPreview: Honor the print media page size and margin values. BUG=104210, 100819 TEST=Added PrintWebViewHelperPreviewTests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117102

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix compile errors and style nits #

Patch Set 4 : '' #

Total comments: 17

Patch Set 5 : Addressed review comments #

Patch Set 6 : '' #

Patch Set 7 : Working code #

Patch Set 8 : Working code #

Patch Set 9 : Cleanup #

Patch Set 10 : '' #

Patch Set 11 : refactoring++ #

Total comments: 20

Patch Set 12 : Addressed review comments #

Total comments: 12

Patch Set 13 : Addressed review comments + win & mac changes #

Patch Set 14 : Addressed review comments #

Total comments: 20

Patch Set 15 : Addressed review comments #

Patch Set 16 : "Addressed review comments" #

Patch Set 17 : '' #

Patch Set 18 : Rebase + Fixed update function. #

Patch Set 19 : Fix conflicts #

Total comments: 20

Patch Set 20 : fix mac browser_test failures #

Patch Set 21 : win bug fixed #

Patch Set 22 : Win bugs fixed #

Patch Set 23 : Mac + skia #

Patch Set 24 : mac+cg #

Patch Set 25 : Addressed review comments #

Patch Set 26 : '' #

Patch Set 27 : rebase + fix conflicts #

Total comments: 38

Patch Set 28 : Addressed review comments #

Patch Set 29 : fix nits #

Patch Set 30 : '' #

Patch Set 31 : Fix win and mac issues #

Total comments: 34

Patch Set 32 : fix conflict #

Patch Set 33 : Addressed review comments #

Total comments: 10

Patch Set 34 : Added browser_tests #

Patch Set 35 : Fix style nit #

Total comments: 4

Patch Set 36 : Added one more test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -261 lines) Patch
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/layout_settings.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +13 lines, -2 lines 0 comments Download
M chrome/common/print_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_mock_render_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/mock_printer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 4 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/mock_printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 7 chunks +36 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 5 chunks +42 lines, -10 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 15 chunks +279 lines, -111 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 4 chunks +186 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +14 lines, -19 lines 0 comments Download
M chrome/renderer/print_web_view_helper_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 7 chunks +31 lines, -35 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 7 chunks +62 lines, -42 lines 0 comments Download
M printing/pdf_metafile_cg_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +4 lines, -8 lines 0 comments Download
M printing/printed_document.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -3 lines 0 comments Download
M printing/printed_document.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +3 lines, -9 lines 0 comments Download
M printing/printed_document_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_page.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +6 lines, -1 line 0 comments Download
M printing/printed_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +4 lines, -2 lines 0 comments Download
M printing/printed_page_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
kmadhusu
Please review and let me know your comments. After your approval, I will submit the ...
9 years, 1 month ago (2011-11-17 17:59:46 UTC) #1
vandebo (ex-Chrome)
http://codereview.chromium.org/8585017/diff/4001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/4001/chrome/renderer/print_web_view_helper.cc#newcode449 chrome/renderer/print_web_view_helper.cc:449: default_margins_requested_(false), Should this default to true? http://codereview.chromium.org/8585017/diff/4001/chrome/renderer/print_web_view_helper.cc#newcode658 chrome/renderer/print_web_view_helper.cc:658: params.has_page_size_style ...
9 years, 1 month ago (2011-11-17 23:05:23 UTC) #2
kmadhusu
WIP on Win & Mac. Please review the latest patch. Thanks. http://codereview.chromium.org/8585017/diff/4001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): ...
9 years ago (2011-12-01 02:15:41 UTC) #3
vandebo (ex-Chrome)
http://codereview.chromium.org/8585017/diff/27001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/27001/chrome/renderer/print_web_view_helper.cc#newcode951 chrome/renderer/print_web_view_helper.cc:951: if (frame) { If I'm reading this correctly, if ...
9 years ago (2011-12-02 01:28:19 UTC) #4
kmadhusu
Win & Mac => WIP Addressed review comments. http://codereview.chromium.org/8585017/diff/27001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/27001/chrome/renderer/print_web_view_helper.cc#newcode951 chrome/renderer/print_web_view_helper.cc:951: if ...
9 years ago (2011-12-02 23:33:19 UTC) #5
vandebo (ex-Chrome)
http://codereview.chromium.org/8585017/diff/32001/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/8585017/diff/32001/chrome/browser/printing/printing_message_filter.cc#newcode47 chrome/browser/printing/printing_message_filter.cc:47: params->printable_size.SetSize( You're going to rename this in a different ...
9 years ago (2011-12-03 02:01:45 UTC) #6
kmadhusu
Win and mac changes are ready for review. Addressed previous review comments. As we discussed, ...
9 years ago (2011-12-04 01:55:38 UTC) #7
vandebo (ex-Chrome)
Sorry this isn't just a L.G.T.M. with comments. Just noticed some of the things this ...
9 years ago (2011-12-04 22:20:34 UTC) #8
kmadhusu
Addressed review comments. Win & Mac => WIP ( Need to test the latest patch) ...
9 years ago (2011-12-05 09:06:54 UTC) #9
vandebo (ex-Chrome)
http://codereview.chromium.org/8585017/diff/61002/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/61002/chrome/renderer/print_web_view_helper.cc#newcode148 chrome/renderer/print_web_view_helper.cc:148: bool ignore_css_margins, I was hoping to separate the fit/ignore ...
9 years ago (2011-12-14 19:05:38 UTC) #10
kmadhusu
http://codereview.chromium.org/8585017/diff/61002/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/61002/chrome/renderer/print_web_view_helper.cc#newcode148 chrome/renderer/print_web_view_helper.cc:148: bool ignore_css_margins, On 2011/12/14 19:05:38, vandebo wrote: > I ...
9 years ago (2011-12-19 09:52:19 UTC) #11
vandebo (ex-Chrome)
Sorry for the long delay. This looks good with just a few details to clean ...
8 years, 11 months ago (2012-01-03 21:55:12 UTC) #12
kmadhusu
vandebo: Addressed most of the review comments. Still working on the mac code review comment ...
8 years, 11 months ago (2012-01-04 16:55:35 UTC) #13
kmadhusu
vandebo: Please review the latest patch. Addressed win and mac issues. Thanks. http://codereview.chromium.org/8585017/diff/91002/chrome/renderer/print_web_view_helper_mac.mm File chrome/renderer/print_web_view_helper_mac.mm ...
8 years, 11 months ago (2012-01-05 01:15:47 UTC) #14
vandebo (ex-Chrome)
Except for the mac comments, it's all nits. Is there a way that we can ...
8 years, 11 months ago (2012-01-07 00:23:19 UTC) #15
kmadhusu
Addressed review comments. Thanks. http://codereview.chromium.org/8585017/diff/105022/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/105022/chrome/renderer/print_web_view_helper.cc#newcode210 chrome/renderer/print_web_view_helper.cc:210: PrintMsg_Print_Params* page_css_params) { On 2012/01/07 ...
8 years, 11 months ago (2012-01-09 17:15:55 UTC) #16
vandebo (ex-Chrome)
Lets get in what ever testing can be done and then this is good to ...
8 years, 11 months ago (2012-01-09 19:04:02 UTC) #17
kmadhusu
http://codereview.chromium.org/8585017/diff/125001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8585017/diff/125001/chrome/renderer/print_web_view_helper.cc#newcode144 chrome/renderer/print_web_view_helper.cc:144: PrintMsg_Print_Params params_to_fit = page_params; On 2012/01/09 19:04:02, vandebo wrote: ...
8 years, 11 months ago (2012-01-09 23:49:26 UTC) #18
vandebo (ex-Chrome)
LGTM http://codereview.chromium.org/8585017/diff/128004/chrome/renderer/print_web_view_helper_browsertest.cc File chrome/renderer/print_web_view_helper_browsertest.cc (right): http://codereview.chromium.org/8585017/diff/128004/chrome/renderer/print_web_view_helper_browsertest.cc#newcode404 chrome/renderer/print_web_view_helper_browsertest.cc:404: void VerifyDefaultPageLayout(int expected_width, int expected_height, nit: content_width, content_height ...
8 years, 11 months ago (2012-01-10 00:59:55 UTC) #19
kmadhusu
http://codereview.chromium.org/8585017/diff/128004/chrome/renderer/print_web_view_helper_browsertest.cc File chrome/renderer/print_web_view_helper_browsertest.cc (right): http://codereview.chromium.org/8585017/diff/128004/chrome/renderer/print_web_view_helper_browsertest.cc#newcode404 chrome/renderer/print_web_view_helper_browsertest.cc:404: void VerifyDefaultPageLayout(int expected_width, int expected_height, On 2012/01/10 00:59:55, vandebo ...
8 years, 11 months ago (2012-01-10 17:35:45 UTC) #20
vandebo (ex-Chrome)
8 years, 11 months ago (2012-01-10 17:49:14 UTC) #21
LGTM

Powered by Google App Engine
This is Rietveld 408576698