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

Issue 8515017: Print Preview: Properly handle window.print(). (Closed)

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

Description

Print Preview: Properly handle window.print(). BUG=92107 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111332

Patch Set 1 #

Total comments: 7

Patch Set 2 : fix bad call #

Patch Set 3 : call PrintPreviewDone() only once #

Patch Set 4 : rebase #

Patch Set 5 : rebase, fix unit tests #

Patch Set 6 : rebase, fix more tests #

Patch Set 7 : fail instead of crash when 2 views both do window.print() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -22 lines) Patch
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_tab_controller.cc View 1 2 3 4 6 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller_browsertest.cc View 1 2 3 4 5 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller_unittest.cc View 1 2 3 4 5 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.h View 1 2 3 4 5 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 7 chunks +74 lines, -4 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_ui_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Lei Zhang
This is a CL that applies on top of http://codereview.chromium.org/8136027/ I previously had some of ...
9 years, 1 month ago (2011-11-10 23:17:00 UTC) #1
vandebo (ex-Chrome)
http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc#newcode81 chrome/browser/printing/print_view_manager.cc:81: DCHECK_EQ(NOT_PREVIEWING, print_preview_state_); What if you close a tab/window while ...
9 years, 1 month ago (2011-11-10 23:59:59 UTC) #2
Lei Zhang
http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc#newcode81 chrome/browser/printing/print_view_manager.cc:81: DCHECK_EQ(NOT_PREVIEWING, print_preview_state_); On 2011/11/10 23:59:59, vandebo wrote: > What ...
9 years, 1 month ago (2011-11-11 11:45:11 UTC) #3
Lei Zhang
http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/8515017/diff/1/chrome/browser/printing/print_view_manager.cc#newcode128 chrome/browser/printing/print_view_manager.cc:128: // Check for spurious call. On 2011/11/10 23:59:59, vandebo ...
9 years, 1 month ago (2011-11-11 22:34:25 UTC) #4
vandebo (ex-Chrome)
LGTM
9 years, 1 month ago (2011-11-11 23:17:29 UTC) #5
darin (slow to review)
9 years, 1 month ago (2011-11-14 22:34:06 UTC) #6
chrome/renderer/ change LGTM

Powered by Google App Engine
This is Rietveld 408576698