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

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed)

Created:
8 years, 8 months ago by kmadhusu
Modified:
8 years, 7 months ago
Reviewers:
Lei Zhang, dpapad
CC:
chromium-reviews, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

[Print Preview]: Added code to support pdf fit to page functionality. BUG=85132 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137498

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : Added WebUI tests and addressed review comments #

Total comments: 12

Patch Set 4 : Rebase #

Patch Set 5 : Addressed review comments #

Total comments: 1

Patch Set 6 : '' #

Total comments: 12

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : Update the function name in print_web_view_helper.h #

Total comments: 12

Patch Set 10 : Changed UpdateFitToPageInfo function signature and updated comments #

Total comments: 6

Patch Set 11 : Addressed review comments #

Patch Set 12 : Addressed review comments #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 2

Patch Set 15 : '' #

Total comments: 3

Patch Set 16 : Rebase #

Patch Set 17 : Added more comments #

Patch Set 18 : Rebase #

Patch Set 19 : Rebase + Fix conflicts #

Patch Set 20 : Rebase + Fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -49 lines) Patch
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/fit_to_page_settings.js View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
D chrome/browser/resources/print_preview/header_footer_settings.html View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/header_footer_settings.js View 2 chunks +8 lines, -7 lines 0 comments Download
A chrome/browser/resources/print_preview/more_options.html View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/more_options.js View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/preview_area.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 17 chunks +59 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_data_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/print_messages.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 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 6 chunks +58 lines, -23 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 9 chunks +137 lines, -4 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 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
kmadhusu
As per our discussion, I have modified the workflow such that the initiator renderer will ...
8 years, 8 months ago (2012-04-19 03:14:13 UTC) #1
kmadhusu
You can find the ppapi CL @ http://codereview.chromium.org/10083059/ and Webkit CL @ https://bugs.webkit.org/show_bug.cgi?id=84312
8 years, 8 months ago (2012-04-19 03:20:31 UTC) #2
kmadhusu
Currently working on adding new tests for the fit to page option. Will let you ...
8 years, 8 months ago (2012-04-19 18:35:40 UTC) #3
dpapad
Should we cc rltoscano@chromium? It seems that this change will affect his redesign of the ...
8 years, 8 months ago (2012-04-19 18:38:39 UTC) #4
kmadhusu
Added WebUI tests and addressed review comments. PTAL. Thanks. http://codereview.chromium.org/10083060/diff/1001/chrome/browser/resources/print_preview/fit_to_page_settings.js File chrome/browser/resources/print_preview/fit_to_page_settings.js (right): http://codereview.chromium.org/10083060/diff/1001/chrome/browser/resources/print_preview/fit_to_page_settings.js#newcode106 chrome/browser/resources/print_preview/fit_to_page_settings.js:106: ...
8 years, 8 months ago (2012-04-19 20:44:54 UTC) #5
dpapad
Mostly nits. http://codereview.chromium.org/10083060/diff/7001/chrome/browser/resources/print_preview/fit_to_page_settings.js File chrome/browser/resources/print_preview/fit_to_page_settings.js (right): http://codereview.chromium.org/10083060/diff/7001/chrome/browser/resources/print_preview/fit_to_page_settings.js#newcode56 chrome/browser/resources/print_preview/fit_to_page_settings.js:56: printScalingDisabledUpdateState: function() { Nit: The naming of ...
8 years, 8 months ago (2012-04-19 21:11:29 UTC) #6
kmadhusu
dpapad: Addressed review comments. PTAL. Thanks. http://codereview.chromium.org/10083060/diff/7001/chrome/browser/resources/print_preview/fit_to_page_settings.js File chrome/browser/resources/print_preview/fit_to_page_settings.js (right): http://codereview.chromium.org/10083060/diff/7001/chrome/browser/resources/print_preview/fit_to_page_settings.js#newcode56 chrome/browser/resources/print_preview/fit_to_page_settings.js:56: printScalingDisabledUpdateState: function() { ...
8 years, 8 months ago (2012-04-20 23:03:42 UTC) #7
dpapad
js LGTM http://codereview.chromium.org/10083060/diff/18009/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): http://codereview.chromium.org/10083060/diff/18009/chrome/test/data/webui/print_preview.js#newcode268 chrome/test/data/webui/print_preview.js:268: assertNotEquals(null, section); Isn't there a assertNotNull() method?
8 years, 8 months ago (2012-04-21 01:36:06 UTC) #8
kmadhusu
thestig: When you get a chance, please review the latest patch. Thanks.
8 years, 8 months ago (2012-04-25 20:52:41 UTC) #9
Lei Zhang
http://codereview.chromium.org/10083060/diff/30001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/10083060/diff/30001/chrome/browser/printing/print_preview_message_handler.cc#newcode27 chrome/browser/printing/print_preview_message_handler.cc:27: #include "ui/gfx/rect.h" nit: not needed since all we do ...
8 years, 8 months ago (2012-04-26 00:19:51 UTC) #10
kmadhusu
thestig: Addressed review comments. Thanks. http://codereview.chromium.org/10083060/diff/30001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/10083060/diff/30001/chrome/browser/printing/print_preview_message_handler.cc#newcode27 chrome/browser/printing/print_preview_message_handler.cc:27: #include "ui/gfx/rect.h" On 2012/04/26 ...
8 years, 8 months ago (2012-04-26 22:18:51 UTC) #11
kmadhusu
http://codereview.chromium.org/10083060/diff/40001/chrome/renderer/print_web_view_helper.h File chrome/renderer/print_web_view_helper.h (right): http://codereview.chromium.org/10083060/diff/40001/chrome/renderer/print_web_view_helper.h#newcode165 chrome/renderer/print_web_view_helper.h:165: void UpdatePrintParamsFitToPageInfo(WebKit::WebFrame* frame, Forgot to update this function name ...
8 years, 8 months ago (2012-04-26 22:34:36 UTC) #12
Lei Zhang
http://codereview.chromium.org/10083060/diff/52001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): http://codereview.chromium.org/10083060/diff/52001/chrome/common/print_messages.h#newcode420 chrome/common/print_messages.h:420: // Notify the browser that the PDF in initiator ...
8 years, 8 months ago (2012-04-26 22:52:23 UTC) #13
Lei Zhang
http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc#newcode848 chrome/renderer/print_web_view_helper.cc:848: bool source_is_html = true; This first bit of logic ...
8 years, 8 months ago (2012-04-26 22:57:53 UTC) #14
kmadhusu
http://codereview.chromium.org/10083060/diff/52001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): http://codereview.chromium.org/10083060/diff/52001/chrome/common/print_messages.h#newcode420 chrome/common/print_messages.h:420: // Notify the browser that the PDF in initiator ...
8 years, 8 months ago (2012-04-27 01:28:58 UTC) #15
Lei Zhang
http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (left): http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc#oldcode1313 chrome/renderer/print_web_view_helper.cc:1313: // - On Windows, we don't add a margin ...
8 years, 8 months ago (2012-04-27 04:32:46 UTC) #16
kmadhusu
thestig: Addressed review comments. Thanks. http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (left): http://codereview.chromium.org/10083060/diff/52001/chrome/renderer/print_web_view_helper.cc#oldcode1313 chrome/renderer/print_web_view_helper.cc:1313: // - On Windows, ...
8 years, 7 months ago (2012-05-01 16:43:14 UTC) #17
Lei Zhang
lgtm http://codereview.chromium.org/10083060/diff/64005/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10083060/diff/64005/chrome/renderer/print_web_view_helper.cc#newcode913 chrome/renderer/print_web_view_helper.cc:913: print_pages_params_->params.is_first_request && nit: if you check this first, ...
8 years, 7 months ago (2012-05-02 06:42:36 UTC) #18
kmadhusu
http://codereview.chromium.org/10083060/diff/64005/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10083060/diff/64005/chrome/renderer/print_web_view_helper.cc#newcode913 chrome/renderer/print_web_view_helper.cc:913: print_pages_params_->params.is_first_request && On 2012/05/02 06:42:36, Lei Zhang wrote: > ...
8 years, 7 months ago (2012-05-06 20:10:14 UTC) #19
Lei Zhang
http://codereview.chromium.org/10083060/diff/75002/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/10083060/diff/75002/chrome/renderer/print_web_view_helper.cc#newcode1465 chrome/renderer/print_web_view_helper.cc:1465: print_pages_params_->params.fit_to_paper_size = fit_to_paper_size; On 2012/05/06 20:10:15, kmadhusu wrote: > ...
8 years, 7 months ago (2012-05-07 18:54:05 UTC) #20
kmadhusu
thestig: Fixed nit. CL is ready to commit. I am going to check the CQ ...
8 years, 7 months ago (2012-05-16 18:45:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/10083060/89004
8 years, 7 months ago (2012-05-16 18:49:42 UTC) #22
commit-bot: I haz the power
8 years, 7 months ago (2012-05-16 20:32:17 UTC) #23
Change committed as 137498

Powered by Google App Engine
This is Rietveld 408576698