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

Issue 858363002: OOP PDF: Override printing for MimeHandlerViewContainers. (Closed)

Created:
5 years, 11 months ago by Sam McNally
Modified:
5 years, 11 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mime-handler-api-simpler
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOP PDF: Override printing for MimeHandlerViewContainers. Previously, calling print() on the window object for a plugin document resulted in printing a blank page. This adds an OverridePrint method to PrintWebViewHelper::Delegate so MimeHandlerViewContainers can replace the default print behavior with posting a print message to the mime handler. BUG=448720 Committed: https://crrev.com/da51fc6ff30169780c2e6b8076e12d8d7b398f5a Cr-Commit-Position: refs/heads/master@{#313011}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : add a test #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : fix android compile and remove the test as it hits a probably dodgy assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -0 lines) Patch
M chrome/renderer/printing/chrome_print_web_view_helper_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc View 1 2 3 4 5 3 chunks +27 lines, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc View 1 2 3 4 4 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Sam McNally
5 years, 11 months ago (2015-01-21 23:36:25 UTC) #4
raymes
https://codereview.chromium.org/858363002/diff/40001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc File chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc (right): https://codereview.chromium.org/858363002/diff/40001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc#newcode67 chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc:67: base::DictionaryValue message; Please add a comment here with a ...
5 years, 11 months ago (2015-01-22 00:58:58 UTC) #5
Sam McNally
https://codereview.chromium.org/858363002/diff/40001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc File chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc (right): https://codereview.chromium.org/858363002/diff/40001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc#newcode67 chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc:67: base::DictionaryValue message; On 2015/01/22 00:58:57, raymes wrote: > Please ...
5 years, 11 months ago (2015-01-22 03:23:29 UTC) #7
raymes
lgtm https://codereview.chromium.org/858363002/diff/100001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc File chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc (right): https://codereview.chromium.org/858363002/diff/100001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc#newcode68 chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc:68: // instructs the PDF plugin to print. Can ...
5 years, 11 months ago (2015-01-22 22:44:02 UTC) #8
Sam McNally
+vitalybuka for chrome/renderer/printing and components/printing https://codereview.chromium.org/858363002/diff/100001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc File chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc (right): https://codereview.chromium.org/858363002/diff/100001/chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc#newcode68 chrome/renderer/printing/chrome_print_web_view_helper_delegate.cc:68: // instructs the PDF ...
5 years, 11 months ago (2015-01-23 02:17:19 UTC) #10
Vitaly Buka (NO REVIEWS)
lgtm
5 years, 11 months ago (2015-01-23 19:45:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/858363002/160001
5 years, 11 months ago (2015-01-24 07:06:56 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 11 months ago (2015-01-24 07:10:41 UTC) #14
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 07:12:04 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/da51fc6ff30169780c2e6b8076e12d8d7b398f5a
Cr-Commit-Position: refs/heads/master@{#313011}

Powered by Google App Engine
This is Rietveld 408576698