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

Issue 8312003: When printing a PDF, query and use the print scaling disabled option. (Closed)

Created:
9 years, 2 months ago by vandebo (ex-Chrome)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

When printing a PDF, query and use the print scaling disabled option. Also, some general clean ups. BUG=67091, 92045, 92218 TEST=Print a PDF with print scaling disabled and see that it takes up the entire page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105893

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : nit #

Patch Set 4 : Fix tests #

Patch Set 5 : Remove DCHECK for now #

Patch Set 6 : Fix two silly bugs found in testing #

Total comments: 10

Patch Set 7 : Address comments #

Total comments: 2

Patch Set 8 : indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -45 lines) Patch
M chrome/browser/resources/print_preview/print_preview.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.h View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 24 chunks +74 lines, -41 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_job_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_job_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vandebo (ex-Chrome)
9 years, 2 months ago (2011-10-16 00:51:49 UTC) #1
Lei Zhang
lgtm http://codereview.chromium.org/8312003/diff/6001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8312003/diff/6001/chrome/renderer/print_web_view_helper.cc#newcode1052 chrome/renderer/print_web_view_helper.cc:1052: bool source_is_html; I'd initialize this to true in ...
9 years, 2 months ago (2011-10-17 05:27:02 UTC) #2
vandebo (ex-Chrome)
http://codereview.chromium.org/8312003/diff/6001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8312003/diff/6001/chrome/renderer/print_web_view_helper.cc#newcode1052 chrome/renderer/print_web_view_helper.cc:1052: bool source_is_html; On 2011/10/17 05:27:02, Lei Zhang wrote: > ...
9 years, 2 months ago (2011-10-17 17:03:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/8312003/7001
9 years, 2 months ago (2011-10-17 17:03:47 UTC) #4
commit-bot: I haz the power
Try job failure for 8312003-7001 on win_rel for steps "update_scripts, update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=2418 Step "update" is ...
9 years, 2 months ago (2011-10-17 17:05:18 UTC) #5
kmadhusu
http://codereview.chromium.org/8312003/diff/7001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8312003/diff/7001/chrome/renderer/print_web_view_helper.cc#newcode1054 chrome/renderer/print_web_view_helper.cc:1054: if (!job_settings->GetBoolean(printing::kSettingPreviewModifiable, nit: Fix indentation
9 years, 2 months ago (2011-10-17 17:09:33 UTC) #6
vandebo (ex-Chrome)
http://codereview.chromium.org/8312003/diff/7001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/8312003/diff/7001/chrome/renderer/print_web_view_helper.cc#newcode1054 chrome/renderer/print_web_view_helper.cc:1054: if (!job_settings->GetBoolean(printing::kSettingPreviewModifiable, On 2011/10/17 17:09:33, kmadhusu wrote: > nit: ...
9 years, 2 months ago (2011-10-17 17:34:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/8312003/9002
9 years, 2 months ago (2011-10-17 17:34:49 UTC) #8
kmadhusu
Thanks for fixing the nit. On 2011/10/17 17:34:35, vandebo wrote: > http://codereview.chromium.org/8312003/diff/7001/chrome/renderer/print_web_view_helper.cc > File chrome/renderer/print_web_view_helper.cc ...
9 years, 2 months ago (2011-10-17 17:51:48 UTC) #9
commit-bot: I haz the power
9 years, 2 months ago (2011-10-17 20:20:42 UTC) #10
Change committed as 105893

Powered by Google App Engine
This is Rietveld 408576698