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

Issue 10168013: [Print Preview] Modified PrepareFrameAndViewPrint class to call the new printBegin function to supp… (Closed)

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

Description

Use overloaded printBegin() chromium-webkit api in PrepareFrameAndViewPrint class and webkit-glue.cc BUG=85132 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137761

Patch Set 1 #

Patch Set 2 : Rename WebPrintScalingOptions to WebPrintScalingOption #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 7

Patch Set 6 : Rebase #

Patch Set 7 : Rebase + Addressed comments + WebKit::WebPrintParams #

Total comments: 1

Patch Set 8 : Modified printBegin() function signature + addressed review comments #

Patch Set 9 : '' #

Patch Set 10 : Fixed nit #

Patch Set 11 : gfx::Size => WebKit::WebSize and gfx::Rect => WebKit::WebRect #

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : Addressed comments #

Patch Set 14 : '' #

Total comments: 19

Patch Set 15 : Fixed nits #

Patch Set 16 : Rebase + Fix conflicts + webkit_glue changes to use overloaded printBegin() function #

Patch Set 17 : Fix GetPrintScalingOption() function comments. #

Total comments: 7

Patch Set 18 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -81 lines) Patch
M chrome/common/print_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +6 lines, -1 line 0 comments Download
M chrome/common/print_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/mock_printer.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/mock_printer.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 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 5 chunks +24 lines, -15 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 16 chunks +91 lines, -53 lines 0 comments Download
M webkit/glue/webkit_glue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
kmadhusu
I moved the chrome/renderer related changes from http://codereview.chromium.org/10083059/ to a separate CL to make the ...
8 years, 8 months ago (2012-04-20 22:23:58 UTC) #1
vandebo (ex-Chrome)
http://codereview.chromium.org/10168013/diff/2001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/2001/chrome/renderer/print_web_view_helper.cc#newcode1298 chrome/renderer/print_web_view_helper.cc:1298: print_scaling_option_ = static_cast<WebKit::WebPrintScalingOption>( This cast is pretty ugly. A ...
8 years, 8 months ago (2012-04-20 23:26:11 UTC) #2
kmadhusu
As we discussed, I created two bugs in webkit. (https://bugs.webkit.org/show_bug.cgi?id=84312 https://bugs.webkit.org/show_bug.cgi?id=84608). Addressed review comments. Thanks. ...
8 years, 8 months ago (2012-04-23 17:39:10 UTC) #3
vandebo (ex-Chrome)
LGTM http://codereview.chromium.org/10168013/diff/13001/chrome/renderer/mock_printer.h File chrome/renderer/mock_printer.h (right): http://codereview.chromium.org/10168013/diff/13001/chrome/renderer/mock_printer.h#newcode147 chrome/renderer/mock_printer.h:147: // True if we want to fit the ...
8 years, 8 months ago (2012-04-23 21:42:19 UTC) #4
kmadhusu
vandebo, dmichael@: Darin asked me to group the required fit to page params as WebPrintParams ...
8 years, 7 months ago (2012-05-11 21:36:02 UTC) #5
kmadhusu
vandebo@: Modified code to have WebPrintParams object as a member variable of PrepareFrameAndViewForPrint class. PTAL. ...
8 years, 7 months ago (2012-05-11 23:31:59 UTC) #6
vandebo (ex-Chrome)
http://codereview.chromium.org/10168013/diff/30003/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/30003/chrome/renderer/print_web_view_helper.cc#newcode747 chrome/renderer/print_web_view_helper.cc:747: void PrepareFrameAndViewForPrint::StartPrinting( It looks like this should take a ...
8 years, 7 months ago (2012-05-14 17:45:46 UTC) #7
kmadhusu
http://codereview.chromium.org/10168013/diff/30003/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/30003/chrome/renderer/print_web_view_helper.cc#newcode747 chrome/renderer/print_web_view_helper.cc:747: void PrepareFrameAndViewForPrint::StartPrinting( On 2012/05/14 17:45:46, vandebo wrote: > It ...
8 years, 7 months ago (2012-05-14 18:50:42 UTC) #8
vandebo (ex-Chrome)
LGTM with nits. http://codereview.chromium.org/10168013/diff/25011/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/25011/chrome/renderer/print_web_view_helper.cc#newcode953 chrome/renderer/print_web_view_helper.cc:953: // Do not fit to paper ...
8 years, 7 months ago (2012-05-16 17:41:32 UTC) #9
kmadhusu
Fixed nits. Thanks. http://codereview.chromium.org/10168013/diff/25011/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/25011/chrome/renderer/print_web_view_helper.cc#newcode953 chrome/renderer/print_web_view_helper.cc:953: // Do not fit to paper ...
8 years, 7 months ago (2012-05-16 18:22:40 UTC) #10
vandebo (ex-Chrome)
Update the issue description before committing - it still says WIP. LGTM http://codereview.chromium.org/10168013/diff/25011/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc ...
8 years, 7 months ago (2012-05-16 18:30:47 UTC) #11
kmadhusu
vandebo: Rebased and fixed conflicts. Please review the latest patch. darin: Please review webkit_glue.cc. Thanks.
8 years, 7 months ago (2012-05-16 22:59:38 UTC) #12
vandebo (ex-Chrome)
LGTM
8 years, 7 months ago (2012-05-16 23:24:03 UTC) #13
darin (slow to review)
LGTM http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.cc#newcode76 chrome/renderer/print_web_view_helper.cc:76: using WebKit::WebDocument; nit: add more 'using WebKit::WebFoo' here ...
8 years, 7 months ago (2012-05-17 19:13:02 UTC) #14
kmadhusu
http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.cc#newcode76 chrome/renderer/print_web_view_helper.cc:76: using WebKit::WebDocument; On 2012/05/17 19:13:03, darin wrote: > nit: ...
8 years, 7 months ago (2012-05-17 20:16:29 UTC) #15
kmadhusu
http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.h File chrome/renderer/print_web_view_helper.h (right): http://codereview.chromium.org/10168013/diff/29029/chrome/renderer/print_web_view_helper.h#newcode60 chrome/renderer/print_web_view_helper.h:60: return gfx::Size(web_print_params_.printContentArea.width, On 2012/05/17 20:16:29, kmadhusu wrote: > On ...
8 years, 7 months ago (2012-05-17 21:24:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/10168013/31006
8 years, 7 months ago (2012-05-17 21:26:16 UTC) #17
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 23:05:04 UTC) #18
Change committed as 137761

Powered by Google App Engine
This is Rietveld 408576698