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

Issue 7056070: PrintPreview: Preview generation should not block print button. (Closed)

Created:
9 years, 6 months ago by kmadhusu
Modified:
9 years, 6 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

PrintPreview: Preview generation should not block print button. Initial set of changes to enable the print button while the preview data is loading. This CL does not handle any print preview errors. BUG=84127 TEST=Press Ctrl+p on a webpage. Observe the print button state in the preview tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88669

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : Addressed comments #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : Addressed review comments #

Patch Set 8 : '' #

Patch Set 9 : Handled some more corner cases. #

Patch Set 10 : Fix a style #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : Fixed another corner case #

Total comments: 8

Patch Set 14 : Addressed review comments #

Total comments: 4

Patch Set 15 : Addressed comments. #

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 28

Patch Set 18 : Addressed review comments. #

Patch Set 19 : '' #

Total comments: 4

Patch Set 20 : Addressed comments #

Total comments: 7

Patch Set 21 : Addressed review comments. #

Total comments: 4

Patch Set 22 : '' #

Patch Set 23 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -27 lines) Patch
M chrome/browser/printing/background_printing_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/printing/background_printing_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 12 chunks +94 lines, -24 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +34 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
kmadhusu
thestig: Please review c++ code. dpapad: Please review ui code. This is an initial step ...
9 years, 6 months ago (2011-06-06 17:46:19 UTC) #1
dpapad
http://codereview.chromium.org/7056070/diff/12/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/12/chrome/browser/resources/print_preview.js#newcode52 chrome/browser/resources/print_preview.js:52: $('system-dialog-link').addEventListener('click', showSystemDialog); Why move this line? If the there ...
9 years, 6 months ago (2011-06-06 18:07:34 UTC) #2
kmadhusu
http://codereview.chromium.org/7056070/diff/12/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/12/chrome/browser/resources/print_preview.js#newcode52 chrome/browser/resources/print_preview.js:52: $('system-dialog-link').addEventListener('click', showSystemDialog); On 2011/06/06 18:07:35, dpapad wrote: > Why ...
9 years, 6 months ago (2011-06-06 18:44:07 UTC) #3
dpapad
http://codereview.chromium.org/7056070/diff/11001/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/11001/chrome/browser/resources/print_preview.js#newcode33 chrome/browser/resources/print_preview.js:33: // Total number of print preview requests submitted. This ...
9 years, 6 months ago (2011-06-06 20:47:43 UTC) #4
kmadhusu
http://codereview.chromium.org/7056070/diff/11001/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/11001/chrome/browser/resources/print_preview.js#newcode33 chrome/browser/resources/print_preview.js:33: // Total number of print preview requests submitted. On ...
9 years, 6 months ago (2011-06-06 21:23:55 UTC) #5
kmadhusu
thestig, dpapad: I am going to refactor some of the javascript code. Please do not ...
9 years, 6 months ago (2011-06-07 01:55:38 UTC) #6
kmadhusu
thestig, dpapad: CL is ready for review. To my knowledge, I have addressed all the ...
9 years, 6 months ago (2011-06-07 20:06:23 UTC) #7
dpapad
http://codereview.chromium.org/7056070/diff/16010/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/16010/chrome/browser/resources/print_preview.js#newcode112 chrome/browser/resources/print_preview.js:112: individualPages.oninput = validateIndividualPagesText; Shouldn't we validate the the page ...
9 years, 6 months ago (2011-06-07 20:47:14 UTC) #8
kmadhusu
dpapad: Addressed review comments. http://codereview.chromium.org/7056070/diff/16010/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/16010/chrome/browser/resources/print_preview.js#newcode112 chrome/browser/resources/print_preview.js:112: individualPages.oninput = validateIndividualPagesText; On 2011/06/07 ...
9 years, 6 months ago (2011-06-08 00:39:14 UTC) #9
dpapad
I did not test it yet, will do it tomorrow morning. http://codereview.chromium.org/7056070/diff/21002/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): ...
9 years, 6 months ago (2011-06-08 01:27:50 UTC) #10
kmadhusu
http://codereview.chromium.org/7056070/diff/21002/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/21002/chrome/browser/resources/print_preview.js#newcode513 chrome/browser/resources/print_preview.js:513: * @param {boolean} showButton Indivates whether the "Reopen the ...
9 years, 6 months ago (2011-06-08 17:09:50 UTC) #11
dpapad
LGTM!
9 years, 6 months ago (2011-06-08 17:28:51 UTC) #12
Lei Zhang
http://codereview.chromium.org/7056070/diff/22002/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7056070/diff/22002/chrome/browser/printing/print_preview_message_handler.cc#newcode124 chrome/browser/printing/print_preview_message_handler.cc:124: rvh->Send(new PrintMsg_PrintingDone(rvh->routing_id(), false)); Why do you need this? If ...
9 years, 6 months ago (2011-06-09 09:54:55 UTC) #13
dpapad
http://codereview.chromium.org/7056070/diff/22002/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/22002/chrome/browser/resources/print_preview.js#newcode76 chrome/browser/resources/print_preview.js:76: function handleAllPagesCheckbox() { Could you remove this function and ...
9 years, 6 months ago (2011-06-09 16:33:35 UTC) #14
kmadhusu
thestig, dpapad: Addressed review comments. Please review the latest patch. Thanks. http://codereview.chromium.org/7056070/diff/22002/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): ...
9 years, 6 months ago (2011-06-09 18:11:43 UTC) #15
dpapad
http://codereview.chromium.org/7056070/diff/18010/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/18010/chrome/browser/resources/print_preview.js#newcode83 chrome/browser/resources/print_preview.js:83: function validateIndividualPagesText() { There are validateIndividualPagesText() and validatePageRangesField() which ...
9 years, 6 months ago (2011-06-09 18:58:41 UTC) #16
kmadhusu
dpapad: Renamed the function. Thanks. http://codereview.chromium.org/7056070/diff/18010/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/18010/chrome/browser/resources/print_preview.js#newcode83 chrome/browser/resources/print_preview.js:83: function validateIndividualPagesText() { On ...
9 years, 6 months ago (2011-06-09 20:15:08 UTC) #17
dpapad
http://codereview.chromium.org/7056070/diff/21012/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/21012/chrome/browser/resources/print_preview.js#newcode80 chrome/browser/resources/print_preview.js:80: $('print-pages').checked = true; Since this line exists also in ...
9 years, 6 months ago (2011-06-09 20:32:37 UTC) #18
Lei Zhang
http://codereview.chromium.org/7056070/diff/22002/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/7056070/diff/22002/chrome/browser/resources/print_preview.js#newcode394 chrome/browser/resources/print_preview.js:394: hasPendingPrintFileRequest = hasPendingPreviewRequest ? true : false; On 2011/06/09 ...
9 years, 6 months ago (2011-06-09 21:03:27 UTC) #19
kmadhusu
thestig, dpapad: Addressed review comments. Thanks. http://codereview.chromium.org/7056070/diff/18010/chrome/browser/printing/background_printing_manager.h File chrome/browser/printing/background_printing_manager.h (right): http://codereview.chromium.org/7056070/diff/18010/chrome/browser/printing/background_printing_manager.h#newcode40 chrome/browser/printing/background_printing_manager.h:40: bool hasTabContents(TabContentsWrapper* entry); ...
9 years, 6 months ago (2011-06-09 21:27:11 UTC) #20
dpapad
LGTM
9 years, 6 months ago (2011-06-09 21:41:59 UTC) #21
Lei Zhang
http://codereview.chromium.org/7056070/diff/20022/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7056070/diff/20022/chrome/browser/printing/print_preview_message_handler.cc#newcode126 chrome/browser/printing/print_preview_message_handler.cc:126: rvh->Send(new PrintMsg_PrintingDone(rvh->routing_id(), false)); So you said this is to ...
9 years, 6 months ago (2011-06-09 22:39:07 UTC) #22
kmadhusu
thestig: Addressed review comments. Thanks. http://codereview.chromium.org/7056070/diff/20022/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7056070/diff/20022/chrome/browser/printing/print_preview_message_handler.cc#newcode126 chrome/browser/printing/print_preview_message_handler.cc:126: rvh->Send(new PrintMsg_PrintingDone(rvh->routing_id(), false)); On ...
9 years, 6 months ago (2011-06-09 23:55:48 UTC) #23
Lei Zhang
9 years, 6 months ago (2011-06-10 00:44:50 UTC) #24
LGTM

Powered by Google App Engine
This is Rietveld 408576698