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

Issue 7621087: Print Preview: Go from event driven print preview back to print preview with sync messages. The s... (Closed)

Created:
9 years, 4 months ago by Lei Zhang
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Print Preview: Go from event driven print preview back to print preview with sync messages. The sync messages now go to the IO thread to avoid the potential deadlock on Windows. BUG=91057 , and probably a few more. TEST=included. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97820

Patch Set 1 : '' #

Patch Set 2 : remove requested_page #

Total comments: 28

Patch Set 3 : address comments #

Total comments: 15

Patch Set 4 : change print preview id, address comments, fix tests #

Total comments: 2

Patch Set 5 : merge, undo print preview id change #

Total comments: 10

Patch Set 6 : add unit test for print preview ui #

Total comments: 2

Patch Set 7 : add browser test for PrintWebViewHelper, address comments #

Patch Set 8 : fix a silly redundant #include #

Total comments: 2

Patch Set 9 : fix comment #

Total comments: 4

Patch Set 10 : address nits #

Patch Set 11 : fix missing lock #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -266 lines) Patch
M chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 5 chunks +17 lines, -21 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.h View 1 2 3 4 5 4 chunks +12 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +78 lines, -32 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui_unittest.cc View 1 2 3 4 5 6 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 6 6 chunks +19 lines, -12 lines 0 comments Download
M chrome/common/print_messages.cc View 1 2 3 4 3 chunks +15 lines, -14 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/renderer/mock_render_thread.cc View 1 2 3 4 5 6 5 chunks +15 lines, -2 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 6 chunks +15 lines, -28 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 16 chunks +68 lines, -108 lines 0 comments Download
M chrome/renderer/print_web_view_helper_browsertest.cc View 1 2 3 4 5 6 7 8 5 chunks +33 lines, -7 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/print_web_view_helper_mac.mm View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M printing/print_job_constants.h View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M printing/print_job_constants.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Lei Zhang
9 years, 4 months ago (2011-08-19 01:06:27 UTC) #1
Lei Zhang
Removed the requested_page code per discussion.
9 years, 4 months ago (2011-08-19 18:36:36 UTC) #2
kmadhusu
http://codereview.chromium.org/7621087/diff/8001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7621087/diff/8001/chrome/browser/ui/webui/print_preview_handler.cc#newcode485 chrome/browser/ui/webui/print_preview_handler.cc:485: print_preview_ui->OnPrintPreviewRequest(request_id); how about OnPrintPreviewRequest => UpdatePreviewRequestID ??? http://codereview.chromium.org/7621087/diff/8001/chrome/browser/ui/webui/print_preview_handler.cc#newcode486 chrome/browser/ui/webui/print_preview_handler.cc:486: ...
9 years, 4 months ago (2011-08-19 19:51:02 UTC) #3
Lei Zhang
http://codereview.chromium.org/7621087/diff/8001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/7621087/diff/8001/chrome/browser/ui/webui/print_preview_handler.cc#newcode485 chrome/browser/ui/webui/print_preview_handler.cc:485: print_preview_ui->OnPrintPreviewRequest(request_id); On 2011/08/19 19:51:03, kmadhusu wrote: > how about ...
9 years, 4 months ago (2011-08-19 22:50:28 UTC) #4
kmadhusu
http://codereview.chromium.org/7621087/diff/14003/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/7621087/diff/14003/chrome/browser/printing/printing_message_filter.cc#newcode325 chrome/browser/printing/printing_message_filter.cc:325: preview_request_id, nit: Fix indentation http://codereview.chromium.org/7621087/diff/14003/chrome/browser/ui/webui/print_preview_ui.cc File chrome/browser/ui/webui/print_preview_ui.cc (right): http://codereview.chromium.org/7621087/diff/14003/chrome/browser/ui/webui/print_preview_ui.cc#newcode24 ...
9 years, 4 months ago (2011-08-20 00:07:11 UTC) #5
Lei Zhang
http://codereview.chromium.org/7621087/diff/14003/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/7621087/diff/14003/chrome/browser/printing/printing_message_filter.cc#newcode325 chrome/browser/printing/printing_message_filter.cc:325: preview_request_id, On 2011/08/20 00:07:11, kmadhusu wrote: > nit: Fix ...
9 years, 4 months ago (2011-08-20 03:25:52 UTC) #6
kmadhusu
As we discussed, http://codereview.chromium.org/7693017/ CL will fix the memset related issues. Please revert the code ...
9 years, 4 months ago (2011-08-22 17:56:22 UTC) #7
Lei Zhang
print preview uid change reverted. http://codereview.chromium.org/7621087/diff/9021/printing/print_job_constants.cc File printing/print_job_constants.cc (right): http://codereview.chromium.org/7621087/diff/9021/printing/print_job_constants.cc#newcode85 printing/print_job_constants.cc:85: // Indices used to ...
9 years, 4 months ago (2011-08-22 20:22:14 UTC) #8
Lei Zhang
Added a unit test for the new print preview ui code in patch set 6. ...
9 years, 4 months ago (2011-08-22 20:46:24 UTC) #9
kmadhusu
http://codereview.chromium.org/7621087/diff/17001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7621087/diff/17001/chrome/browser/printing/print_preview_message_handler.cc#newcode130 chrome/browser/printing/print_preview_message_handler.cc:130: StopWorker(params.document_cookie); Is it better to stop the worker before ...
9 years, 4 months ago (2011-08-22 21:23:57 UTC) #10
Lei Zhang
vandebo: patch set 7 should be good to go, PTAL. http://codereview.chromium.org/7621087/diff/17001/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): http://codereview.chromium.org/7621087/diff/17001/chrome/browser/printing/print_preview_message_handler.cc#newcode130 ...
9 years, 4 months ago (2011-08-22 22:26:55 UTC) #11
kmadhusu
LGTM with a nit. http://codereview.chromium.org/7621087/diff/18044/chrome/renderer/print_web_view_helper_browsertest.cc File chrome/renderer/print_web_view_helper_browsertest.cc (right): http://codereview.chromium.org/7621087/diff/18044/chrome/renderer/print_web_view_helper_browsertest.cc#newcode385 chrome/renderer/print_web_view_helper_browsertest.cc:385: // Tests that print preview ...
9 years, 4 months ago (2011-08-22 22:51:20 UTC) #12
Lei Zhang
http://codereview.chromium.org/7621087/diff/18044/chrome/renderer/print_web_view_helper_browsertest.cc File chrome/renderer/print_web_view_helper_browsertest.cc (right): http://codereview.chromium.org/7621087/diff/18044/chrome/renderer/print_web_view_helper_browsertest.cc#newcode385 chrome/renderer/print_web_view_helper_browsertest.cc:385: // Tests that print preview work and sending and ...
9 years, 4 months ago (2011-08-22 22:56:22 UTC) #13
vandebo (ex-Chrome)
http://codereview.chromium.org/7621087/diff/16029/chrome/browser/ui/webui/print_preview_ui.cc File chrome/browser/ui/webui/print_preview_ui.cc (right): http://codereview.chromium.org/7621087/diff/16029/chrome/browser/ui/webui/print_preview_ui.cc#newcode27 chrome/browser/ui/webui/print_preview_ui.cc:27: struct PrintPreviewRequestIdMapWithLock { nit: Is there a reason this ...
9 years, 4 months ago (2011-08-23 04:30:03 UTC) #14
vandebo (ex-Chrome)
LGTM http://codereview.chromium.org/7621087/diff/16029/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/7621087/diff/16029/chrome/browser/printing/printing_message_filter.cc#newcode19 chrome/browser/printing/printing_message_filter.cc:19: #include <map> nit: was map missing before? I ...
9 years, 4 months ago (2011-08-23 04:43:46 UTC) #15
Lei Zhang
http://codereview.chromium.org/7621087/diff/16029/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/7621087/diff/16029/chrome/browser/printing/printing_message_filter.cc#newcode19 chrome/browser/printing/printing_message_filter.cc:19: #include <map> On 2011/08/23 04:43:46, vandebo wrote: > nit: ...
9 years, 4 months ago (2011-08-23 04:44:23 UTC) #16
Lei Zhang
http://codereview.chromium.org/7621087/diff/16029/chrome/browser/ui/webui/print_preview_ui.cc File chrome/browser/ui/webui/print_preview_ui.cc (right): http://codereview.chromium.org/7621087/diff/16029/chrome/browser/ui/webui/print_preview_ui.cc#newcode27 chrome/browser/ui/webui/print_preview_ui.cc:27: struct PrintPreviewRequestIdMapWithLock { On 2011/08/23 04:30:03, vandebo wrote: > ...
9 years, 4 months ago (2011-08-23 04:58:17 UTC) #17
vandebo (ex-Chrome)
9 years, 4 months ago (2011-08-23 05:04:10 UTC) #18
LG

Powered by Google App Engine
This is Rietveld 408576698