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

Issue 10142002: [Print Preview] Refactored code to support auto fit to page functionality. (Closed)

Created:
8 years, 8 months ago by kmadhusu
Modified:
8 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

[Print Preview] Refactored code to support auto fit to page functionality. (1) Added |fit_to_paper_size| member variable in PrintMsg_Print_Params. (2) Removed |fit_to_page_| from PrintWebViewHelper. (3) Modified PrintWebViewHelper member functions accordingly. BUG=85132 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133131

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added missing semicolon #

Patch Set 3 : Reverted new changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -42 lines) Patch
M chrome/common/print_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/print_messages.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/mock_printer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/mock_printer.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 4 chunks +2 lines, -9 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 11 chunks +20 lines, -24 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper_mac.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kmadhusu
8 years, 8 months ago (2012-04-19 23:29:02 UTC) #1
vandebo (ex-Chrome)
http://codereview.chromium.org/10142002/diff/1/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10142002/diff/1/chrome/renderer/print_web_view_helper.cc#newcode1253 chrome/renderer/print_web_view_helper.cc:1253: settings.params.fit_to_paper_size = !(PrintingNodeOrPdfFrame(frame, node) && Looks like there's only ...
8 years, 8 months ago (2012-04-19 23:56:07 UTC) #2
kmadhusu
http://codereview.chromium.org/10142002/diff/1/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10142002/diff/1/chrome/renderer/print_web_view_helper.cc#newcode1253 chrome/renderer/print_web_view_helper.cc:1253: settings.params.fit_to_paper_size = !(PrintingNodeOrPdfFrame(frame, node) && On 2012/04/19 23:56:07, vandebo ...
8 years, 8 months ago (2012-04-20 00:36:37 UTC) #3
vandebo (ex-Chrome)
LGTM
8 years, 8 months ago (2012-04-20 00:46:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/10142002/7011
8 years, 8 months ago (2012-04-20 00:49:16 UTC) #5
commit-bot: I haz the power
8 years, 8 months ago (2012-04-20 02:45:48 UTC) #6
Change committed as 133131

Powered by Google App Engine
This is Rietveld 408576698