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

Issue 7792085: Print Preview: Handling pending print to pdf requests. (Closed)

Created:
9 years, 3 months ago by dpapad
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Albert Bodenhamer
Visibility:
Public.

Description

Print Preview: Handling pending print to pdf requests. BUG=91888 TEST=Open a large doc in print preview. Select "Print To PDF" and click "Print" immediately. The file dialog should be shown regardless of the pdf file being ready for saving. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100260

Patch Set 1 #

Patch Set 2 : Fixing crash, preventing 2nd modal dialog to open #

Patch Set 3 : Cleaning up hidden tab #

Patch Set 4 : Cleanup #

Total comments: 15

Patch Set 5 : Displaying a message while metafile is generated #

Patch Set 6 : Addressing comments, using scoped_ptr #

Patch Set 7 : Resolving conflicts #

Patch Set 8 : Resolving conflicts, localizing string #

Patch Set 9 : Updating unit test, adding comments #

Total comments: 52

Patch Set 10 : Addressing kmadhusu's and vandebo's comments #

Total comments: 2

Patch Set 11 : Fixing typo #

Patch Set 12 : Addressing more comments #

Total comments: 4

Patch Set 13 : Nits #

Patch Set 14 : Rebasing #

Patch Set 15 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -51 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.css View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +24 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_animations.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -1 line 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 3 chunks +47 lines, -29 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
dpapad
Still working on adding some UI while the metafile is generated. For the moment the ...
9 years, 3 months ago (2011-09-02 18:36:32 UTC) #1
kmadhusu
http://codereview.chromium.org/7792085/diff/10/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7792085/diff/10/chrome/browser/resources/print_preview/print_preview.js#newcode439 chrome/browser/resources/print_preview/print_preview.js:439: chrome.send('hidePreview'); Create a helper function to set isTabHidden = ...
9 years, 3 months ago (2011-09-02 21:47:03 UTC) #2
dpapad
Please review again. After the latest patch the preview tab is not hidden while the ...
9 years, 3 months ago (2011-09-07 00:46:19 UTC) #3
kmadhusu
http://codereview.chromium.org/7792085/diff/16004/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7792085/diff/16004/chrome/app/generated_resources.grd#newcode6042 chrome/app/generated_resources.grd:6042: Printing to PDF in progress Printing to PDF in ...
9 years, 3 months ago (2011-09-07 20:42:57 UTC) #4
vandebo (ex-Chrome)
http://codereview.chromium.org/7792085/diff/16004/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7792085/diff/16004/chrome/app/generated_resources.grd#newcode6042 chrome/app/generated_resources.grd:6042: Printing to PDF in progress Are you supposed to ...
9 years, 3 months ago (2011-09-07 21:38:19 UTC) #5
arv (Not doing code reviews)
http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.html File chrome/browser/resources/print_preview/print_preview.html (right): http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.html#newcode63 chrome/browser/resources/print_preview/print_preview.html:63: <div id="custom-message" class="hidden"></div> Please use hidden instead. <div id="custom-message" ...
9 years, 3 months ago (2011-09-07 21:53:51 UTC) #6
dpapad
Addressed kamdhusu's and vandebo's comments. I will address arv's comment shortly. http://codereview.chromium.org/7792085/diff/16004/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): ...
9 years, 3 months ago (2011-09-07 23:42:39 UTC) #7
kmadhusu
http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.js#newcode552 chrome/browser/resources/print_preview/print_preview.js:552: disableInputElementsInSidebar(); On 2011/09/07 23:42:39, dpapad wrote: > On 2011/09/07 ...
9 years, 3 months ago (2011-09-08 00:04:33 UTC) #8
dpapad
http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.js#newcode552 chrome/browser/resources/print_preview/print_preview.js:552: disableInputElementsInSidebar(); On 2011/09/08 00:04:33, kmadhusu wrote: > On 2011/09/07 ...
9 years, 3 months ago (2011-09-08 00:11:51 UTC) #9
vandebo (ex-Chrome)
C++ LGTM
9 years, 3 months ago (2011-09-08 00:22:04 UTC) #10
dpapad
Addressed arv's comments and kmadhusu's pending comment. http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.html File chrome/browser/resources/print_preview/print_preview.html (right): http://codereview.chromium.org/7792085/diff/16004/chrome/browser/resources/print_preview/print_preview.html#newcode63 chrome/browser/resources/print_preview/print_preview.html:63: <div id="custom-message" ...
9 years, 3 months ago (2011-09-08 03:29:20 UTC) #11
kmadhusu
http://codereview.chromium.org/7792085/diff/22021/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7792085/diff/22021/chrome/browser/ui/webui/print_preview_handler.cc#newcode611 chrome/browser/ui/webui/print_preview_handler.cc:611: HandlePrintToPdf(*settings.get()); HandlePrintToPdf(*settings); http://codereview.chromium.org/7792085/diff/22021/chrome/browser/ui/webui/print_preview_handler.cc#newcode996 chrome/browser/ui/webui/print_preview_handler.cc:996: *print_to_pdf_path_.get()); "*print_to_pdf_path_" is sufficient. ".get()" ...
9 years, 3 months ago (2011-09-08 18:01:47 UTC) #12
dpapad
Addressed comments. http://codereview.chromium.org/7792085/diff/22021/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7792085/diff/22021/chrome/browser/ui/webui/print_preview_handler.cc#newcode611 chrome/browser/ui/webui/print_preview_handler.cc:611: HandlePrintToPdf(*settings.get()); On 2011/09/08 18:01:47, kmadhusu wrote: > ...
9 years, 3 months ago (2011-09-08 19:11:33 UTC) #13
kmadhusu
9 years, 3 months ago (2011-09-08 20:53:17 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698