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

Issue 7202012: Print Preview: Display a throbber when the user requests the system print (Closed)

Created:
9 years, 6 months ago by James Hawkins
Modified:
9 years, 5 months ago
Reviewers:
Lei Zhang, dpapad
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Print Preview: Display a throbber when the user requests the system print dialog. BUG=83256 TEST=none R=thestig@chromium.org,dpapad@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91001

Patch Set 1 #

Patch Set 2 : Notify PrintPreviewHandler when print dialog is shown. #

Patch Set 3 : Add todo for dpapad. #

Patch Set 4 : Rebase and add missing file. #

Total comments: 12

Patch Set 5 : Rebase and disable controls. #

Patch Set 6 : Review fixes. #

Total comments: 2

Patch Set 7 : Review fixes. #

Patch Set 8 : More fixes. #

Total comments: 2

Patch Set 9 : Typo fix. #

Patch Set 10 : Testing fix. #

Total comments: 2

Patch Set 11 : Crash fix. #

Total comments: 7

Patch Set 12 : Review fixes. #

Patch Set 13 : One more corner case. #

Patch Set 14 : Hide throbber in the right place. #

Total comments: 2

Patch Set 15 : Revert DCHECK change. #

Patch Set 16 : Update comment. #

Patch Set 17 : Review fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -59 lines) Patch
M chrome/browser/printing/print_preview_tab_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 12 13 14 5 chunks +14 lines, -1 line 0 comments Download
A chrome/browser/printing/print_view_manager_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -8 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 9 chunks +43 lines, -10 lines 0 comments Download
M chrome/browser/resources/webui.css View 1 2 3 1 chunk +16 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 10 11 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 4 chunks +31 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
James Hawkins
9 years, 6 months ago (2011-06-17 23:36:53 UTC) #1
James Hawkins
New CL routes a message to the PrintPreviewHandler that the print dialog has been shown. ...
9 years, 6 months ago (2011-06-20 23:52:46 UTC) #2
dpapad
On 2011/06/20 23:52:46, James Hawkins wrote: > New CL routes a message to the PrintPreviewHandler ...
9 years, 6 months ago (2011-06-21 01:08:46 UTC) #3
James Hawkins
On 2011/06/21 01:08:46, dpapad wrote: > On 2011/06/20 23:52:46, James Hawkins wrote: > > New ...
9 years, 6 months ago (2011-06-21 01:10:01 UTC) #4
dpapad
On 2011/06/21 01:10:01, James Hawkins wrote: > On 2011/06/21 01:08:46, dpapad wrote: > > On ...
9 years, 6 months ago (2011-06-21 01:39:00 UTC) #5
Lei Zhang
http://codereview.chromium.org/7202012/diff/6001/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/7202012/diff/6001/chrome/browser/printing/print_view_manager.cc#newcode132 chrome/browser/printing/print_view_manager.cc:132: delegate_->OnPrintDialogShown(); set |delegate_| to NULL here instead of below? ...
9 years, 6 months ago (2011-06-21 01:54:46 UTC) #6
James Hawkins
http://codereview.chromium.org/7202012/diff/6001/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/7202012/diff/6001/chrome/browser/printing/print_view_manager.cc#newcode132 chrome/browser/printing/print_view_manager.cc:132: delegate_->OnPrintDialogShown(); On 2011/06/21 01:54:46, Lei Zhang wrote: > set ...
9 years, 6 months ago (2011-06-22 23:47:24 UTC) #7
James Hawkins
Forgot to mention: the latest CL disables the controls per dpapad's comments.
9 years, 6 months ago (2011-06-22 23:49:32 UTC) #8
James Hawkins
Addresses some of dpapad's concerns re: UI.
9 years, 6 months ago (2011-06-23 01:36:33 UTC) #9
dpapad
LGTM with one comment. http://codereview.chromium.org/7202012/diff/13006/chrome/browser/resources/print_preview/print_preview.css File chrome/browser/resources/print_preview/print_preview.css (right): http://codereview.chromium.org/7202012/diff/13006/chrome/browser/resources/print_preview/print_preview.css#newcode178 chrome/browser/resources/print_preview/print_preview.css:178: #system-dialog-link { You need to ...
9 years, 6 months ago (2011-06-23 02:06:46 UTC) #10
Lei Zhang
How do you manage the delegate's lifetime? If you add a delegate, and destroy the ...
9 years, 6 months ago (2011-06-23 17:08:45 UTC) #11
James Hawkins
http://codereview.chromium.org/7202012/diff/6001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7202012/diff/6001/chrome/browser/ui/webui/print_preview_handler.cc#newcode633 chrome/browser/ui/webui/print_preview_handler.cc:633: if (!initiator_tab) On 2011/06/23 17:08:45, Lei Zhang wrote: > ...
9 years, 6 months ago (2011-06-27 21:58:17 UTC) #12
James Hawkins
On 2011/06/23 17:08:45, Lei Zhang wrote: > How do you manage the delegate's lifetime? If ...
9 years, 6 months ago (2011-06-27 21:59:48 UTC) #13
dpapad
Would it look better to have the throbber within the button instead of next to ...
9 years, 6 months ago (2011-06-27 22:17:07 UTC) #14
James Hawkins
http://codereview.chromium.org/7202012/diff/21014/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7202012/diff/21014/chrome/browser/resources/print_preview/print_preview.js#newcode212 chrome/browser/resources/print_preview/print_preview.js:212: * Similar to onAdvancedClick(), but specific to the On ...
9 years, 6 months ago (2011-06-27 22:21:32 UTC) #15
James Hawkins
On 2011/06/27 22:17:07, dpapad wrote: > Would it look better to have the throbber within ...
9 years, 6 months ago (2011-06-27 22:21:48 UTC) #16
James Hawkins
gong
9 years, 6 months ago (2011-06-28 02:19:45 UTC) #17
dpapad
reLGTM with one comment. http://codereview.chromium.org/7202012/diff/22021/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7202012/diff/22021/chrome/browser/resources/print_preview/print_preview.js#newcode73 chrome/browser/resources/print_preview/print_preview.js:73: $('print-button').focus(); Why remove the autofocus ...
9 years, 6 months ago (2011-06-28 02:25:30 UTC) #18
James Hawkins
Demetrios: Fixed the crasher your noticed. Lei: Waiting on your LGTM. http://codereview.chromium.org/7202012/diff/22021/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): ...
9 years, 6 months ago (2011-06-28 04:02:34 UTC) #19
Lei Zhang
1. If you open print preview, and close the initiator tab. The 'advanced' link still ...
9 years, 5 months ago (2011-06-28 09:15:38 UTC) #20
James Hawkins
http://codereview.chromium.org/7202012/diff/25002/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/7202012/diff/25002/chrome/browser/printing/print_view_manager.cc#newcode86 chrome/browser/printing/print_view_manager.cc:86: DCHECK(!observer || !observer_); On 2011/06/28 09:15:38, Lei Zhang wrote: ...
9 years, 5 months ago (2011-06-28 18:15:36 UTC) #21
James Hawkins
On 2011/06/28 09:15:38, Lei Zhang wrote: > 1. If you open print preview, and close ...
9 years, 5 months ago (2011-06-28 18:17:34 UTC) #22
James Hawkins
http://codereview.chromium.org/7202012/diff/25002/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/7202012/diff/25002/chrome/browser/printing/print_view_manager.cc#newcode86 chrome/browser/printing/print_view_manager.cc:86: DCHECK(!observer || !observer_); On 2011/06/28 18:15:36, James Hawkins wrote: ...
9 years, 5 months ago (2011-06-28 20:05:47 UTC) #23
James Hawkins
Please take another look.
9 years, 5 months ago (2011-06-28 20:39:04 UTC) #24
Lei Zhang
I can show you case 3 in person. http://codereview.chromium.org/7202012/diff/22043/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7202012/diff/22043/chrome/browser/printing/print_preview_tab_controller.cc#newcode142 chrome/browser/printing/print_preview_tab_controller.cc:142: static_cast<PrintPreviewUI*>(source_tab->web_ui()); ...
9 years, 5 months ago (2011-06-28 20:55:35 UTC) #25
Lei Zhang
http://codereview.chromium.org/7202012/diff/22043/chrome/browser/printing/print_preview_tab_controller.cc File chrome/browser/printing/print_preview_tab_controller.cc (right): http://codereview.chromium.org/7202012/diff/22043/chrome/browser/printing/print_preview_tab_controller.cc#newcode142 chrome/browser/printing/print_preview_tab_controller.cc:142: static_cast<PrintPreviewUI*>(source_tab->web_ui()); On 2011/06/28 20:55:35, Lei Zhang wrote: > For ...
9 years, 5 months ago (2011-06-28 20:58:04 UTC) #26
Lei Zhang
9 years, 5 months ago (2011-06-29 02:15:39 UTC) #27
LGTM

Powered by Google App Engine
This is Rietveld 408576698