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

Issue 9699040: PrintPreview: Hide/Show the header footer option based on print frame margins. (Closed)

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

Description

PrintPreview: Hide/Show the header footer option based on print frame margins. BUG=104080 TEST= Please refer to bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127631

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed review comments. #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : addressed review comments #

Total comments: 2

Patch Set 5 : addressed review comments #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Uploaded changes for testing #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 13

Patch Set 10 : Addressed review comments #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -28 lines) Patch
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/header_footer_settings.js View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_settings.js View 1 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 2 3 4 5 6 2 chunks +5 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 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 9 1 chunk +45 lines, -0 lines 0 comments Download
M printing/print_job_constants.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M printing/print_job_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
kmadhusu
dpapad: Please review js code. vandebo: Please review c++ code. Thanks.
8 years, 9 months ago (2012-03-14 20:33:03 UTC) #1
dpapad
http://codereview.chromium.org/9699040/diff/1/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (left): http://codereview.chromium.org/9699040/diff/1/chrome/browser/resources/print_preview/header_footer_settings.js#oldcode62 chrome/browser/resources/print_preview/header_footer_settings.js:62: this.headerFooterApplies_ = event.selectedMargins != Can you explain what happens ...
8 years, 9 months ago (2012-03-14 21:15:17 UTC) #2
kmadhusu
dpapad: Addressed review comments. Thanks. http://codereview.chromium.org/9699040/diff/1/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (left): http://codereview.chromium.org/9699040/diff/1/chrome/browser/resources/print_preview/header_footer_settings.js#oldcode57 chrome/browser/resources/print_preview/header_footer_settings.js:57: document.addEventListener(customEvents.MARGINS_SELECTION_CHANGED, This event is ...
8 years, 9 months ago (2012-03-14 22:10:14 UTC) #3
dpapad
http://codereview.chromium.org/9699040/diff/3004/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (right): http://codereview.chromium.org/9699040/diff/3004/chrome/browser/resources/print_preview/header_footer_settings.js#newcode63 chrome/browser/resources/print_preview/header_footer_settings.js:63: setVisibility: function(headerFooterApplies) { There is already a method setVisible_ ...
8 years, 9 months ago (2012-03-14 23:16:24 UTC) #4
kmadhusu
http://codereview.chromium.org/9699040/diff/3004/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (right): http://codereview.chromium.org/9699040/diff/3004/chrome/browser/resources/print_preview/header_footer_settings.js#newcode63 chrome/browser/resources/print_preview/header_footer_settings.js:63: setVisibility: function(headerFooterApplies) { On 2012/03/14 23:16:25, dpapad wrote: > ...
8 years, 9 months ago (2012-03-15 00:19:14 UTC) #5
dpapad
http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (right): http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js#newcode73 chrome/browser/resources/print_preview/header_footer_settings.js:73: this.setVisible_(false); This is throwing an error. s/setVisible_/setVisible
8 years, 9 months ago (2012-03-15 17:01:17 UTC) #6
kmadhusu
http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (right): http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js#newcode73 chrome/browser/resources/print_preview/header_footer_settings.js:73: this.setVisible_(false); On 2012/03/15 17:01:18, dpapad wrote: > This is ...
8 years, 9 months ago (2012-03-15 18:46:24 UTC) #7
dpapad
On 2012/03/15 18:46:24, kmadhusu wrote: > http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js > File chrome/browser/resources/print_preview/header_footer_settings.js (right): > > http://codereview.chromium.org/9699040/diff/3007/chrome/browser/resources/print_preview/header_footer_settings.js#newcode73 > ...
8 years, 9 months ago (2012-03-15 21:18:50 UTC) #8
vandebo (ex-Chrome)
http://codereview.chromium.org/9699040/diff/2017/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/9699040/diff/2017/chrome/renderer/print_web_view_helper.cc#newcode889 chrome/renderer/print_web_view_helper.cc:889: bool header_footer_applies = true; It seems like this is ...
8 years, 9 months ago (2012-03-15 21:47:17 UTC) #9
kmadhusu
Addressed review comments. Thanks. http://codereview.chromium.org/9699040/diff/2017/chrome/renderer/print_web_view_helper.cc File chrome/renderer/print_web_view_helper.cc (right): http://codereview.chromium.org/9699040/diff/2017/chrome/renderer/print_web_view_helper.cc#newcode889 chrome/renderer/print_web_view_helper.cc:889: bool header_footer_applies = true; On ...
8 years, 9 months ago (2012-03-17 00:29:12 UTC) #10
dpapad
http://codereview.chromium.org/9699040/diff/11001/chrome/browser/resources/print_preview/header_footer_settings.js File chrome/browser/resources/print_preview/header_footer_settings.js (right): http://codereview.chromium.org/9699040/diff/11001/chrome/browser/resources/print_preview/header_footer_settings.js#newcode50 chrome/browser/resources/print_preview/header_footer_settings.js:50: * @param {printing::PageSizeMargins} pageLayout The default layout of the ...
8 years, 9 months ago (2012-03-17 00:36:41 UTC) #11
vandebo (ex-Chrome)
http://codereview.chromium.org/9699040/diff/11001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/9699040/diff/11001/chrome/browser/printing/print_preview_message_handler.cc#newcode27 chrome/browser/printing/print_preview_message_handler.cc:27: #include "ui/gfx/rect.h" http://codereview.chromium.org/9699040/diff/11001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc File chrome/browser/ui/webui/print_preview/print_preview_ui.cc (right): http://codereview.chromium.org/9699040/diff/11001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc#newcode228 chrome/browser/ui/webui/print_preview/print_preview_ui.cc:228: base::DictionaryValue ...
8 years, 9 months ago (2012-03-19 17:11:30 UTC) #12
kmadhusu
Addressed review comments. Thanks. http://codereview.chromium.org/9699040/diff/11001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/9699040/diff/11001/chrome/browser/printing/print_preview_message_handler.cc#newcode27 chrome/browser/printing/print_preview_message_handler.cc:27: On 2012/03/19 17:11:30, vandebo wrote: ...
8 years, 9 months ago (2012-03-19 18:45:31 UTC) #13
dpapad
http://codereview.chromium.org/9699040/diff/11001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/9699040/diff/11001/chrome/browser/resources/print_preview/print_preview.js#newcode876 chrome/browser/resources/print_preview/print_preview.js:876: function onDidGetDefaultPageLayout(pageLayout, On 2012/03/19 18:45:31, kmadhusu wrote: > On ...
8 years, 9 months ago (2012-03-19 19:50:53 UTC) #14
vandebo (ex-Chrome)
C++ LGTM
8 years, 9 months ago (2012-03-19 22:29:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/9699040/22001
8 years, 9 months ago (2012-03-20 00:21:51 UTC) #16
commit-bot: I haz the power
8 years, 9 months ago (2012-03-20 03:10:23 UTC) #17
Change committed as 127631

Powered by Google App Engine
This is Rietveld 408576698