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

Issue 9139024: Adding functionality to print PDF embedded in the html page. (Closed)

Created:
8 years, 11 months ago by gene
Modified:
8 years, 11 months ago
Reviewers:
Lei Zhang, brettw, jam, piman
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, yzshen+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, viettrungluu
Visibility:
Public.

Description

Adding functionality to print PDF embedded in the html page. Additional changes needed in PDF plugin to use this functionality. BUG=89241 TEST=Test printing using PDF toolbar on the embedded and normal PDFs. Please do so AFTER PDF changes will be submitted (they have to be submitted separately). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117699

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 3

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 1

Patch Set 8 : '' #

Total comments: 1

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -14 lines) Patch
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/chrome_ppb_pdf_impl.cc View 1 2 3 4 5 5 chunks +20 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 3 4 2 chunks +16 lines, -12 lines 0 comments Download
M ppapi/c/private/ppb_pdf.h View 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
gene
8 years, 11 months ago (2012-01-11 19:59:24 UTC) #1
jam
the pdf plugin calls to chrome/renderer/chrome_ppb_pdf_impl.cc code, which then calls content's PrintPlugin to sent a ...
8 years, 11 months ago (2012-01-11 20:13:01 UTC) #2
gene1
On Wed, Jan 11, 2012 at 12:13 PM, <jam@chromium.org> wrote: > the pdf plugin calls ...
8 years, 11 months ago (2012-01-11 20:19:26 UTC) #3
jam
On Wed, Jan 11, 2012 at 12:19 PM, Gene Gutnik <gene@google.com> wrote: > On Wed, ...
8 years, 11 months ago (2012-01-11 20:26:09 UTC) #4
Lei Zhang
I wanted to avoid calls to PrintWebViewHelper::PrintPage() since that code handles window.print(), which has additional ...
8 years, 11 months ago (2012-01-12 00:04:48 UTC) #5
jam
On Wed, Jan 11, 2012 at 4:04 PM, <thestig@chromium.org> wrote: > I wanted to avoid ...
8 years, 11 months ago (2012-01-12 00:25:58 UTC) #6
Lei Zhang
On 2012/01/12 00:25:58, John Abd-El-Malek wrote: > On Wed, Jan 11, 2012 at 4:04 PM, ...
8 years, 11 months ago (2012-01-12 00:37:17 UTC) #7
jam
On Wed, Jan 11, 2012 at 4:37 PM, <thestig@chromium.org> wrote: > On 2012/01/12 00:25:58, John ...
8 years, 11 months ago (2012-01-12 00:42:30 UTC) #8
gene1
On Wed, Jan 11, 2012 at 4:42 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
8 years, 11 months ago (2012-01-12 01:03:47 UTC) #9
jam
On Wed, Jan 11, 2012 at 5:03 PM, Gene Gutnik <gene@google.com> wrote: > > > ...
8 years, 11 months ago (2012-01-12 03:15:26 UTC) #10
gene
Done. Could you please take a look? On 2012/01/12 03:15:26, John Abd-El-Malek wrote: > On ...
8 years, 11 months ago (2012-01-12 21:56:46 UTC) #11
Lei Zhang
LGTM with nits below: http://codereview.chromium.org/9139024/diff/2014/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (left): http://codereview.chromium.org/9139024/diff/2014/chrome/browser/printing/print_view_manager.cc#oldcode127 chrome/browser/printing/print_view_manager.cc:127: DCHECK_NE(NOT_PREVIEWING, print_preview_state_); Can you comment ...
8 years, 11 months ago (2012-01-12 22:10:20 UTC) #12
gene
done. On 2012/01/12 22:10:20, Lei Zhang wrote: > LGTM with nits below: > > http://codereview.chromium.org/9139024/diff/2014/chrome/browser/printing/print_view_manager.cc ...
8 years, 11 months ago (2012-01-12 22:21:18 UTC) #13
jam
lgtm http://codereview.chromium.org/9139024/diff/4005/chrome/renderer/print_web_view_helper.h File chrome/renderer/print_web_view_helper.h (right): http://codereview.chromium.org/9139024/diff/4005/chrome/renderer/print_web_view_helper.h#newcode94 chrome/renderer/print_web_view_helper.h:94: // directly from PPAPI for plugin printing. this ...
8 years, 11 months ago (2012-01-12 22:43:00 UTC) #14
gene1
ok, I'll remove the comment. On Thu, Jan 12, 2012 at 2:43 PM, <jam@chromium.org> wrote: ...
8 years, 11 months ago (2012-01-12 22:51:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/9139024/51
8 years, 11 months ago (2012-01-12 22:53:10 UTC) #16
commit-bot: I haz the power
Presubmit check for 9139024-51 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-12 22:53:15 UTC) #17
gene
8 years, 11 months ago (2012-01-12 22:56:42 UTC) #18
piman
http://codereview.chromium.org/9139024/diff/51/ppapi/c/private/ppb_pdf.h File ppapi/c/private/ppb_pdf.h (right): http://codereview.chromium.org/9139024/diff/51/ppapi/c/private/ppb_pdf.h#newcode13 ppapi/c/private/ppb_pdf.h:13: #define PPB_PDF_INTERFACE "PPB_PDF;1" The interface needs to rev if ...
8 years, 11 months ago (2012-01-12 23:11:15 UTC) #19
gene
John, we've never updated this version in the past. Was there a reason for this?
8 years, 11 months ago (2012-01-12 23:15:58 UTC) #20
gene
done. could you please take a look? On 2012/01/12 23:11:15, piman wrote: > http://codereview.chromium.org/9139024/diff/51/ppapi/c/private/ppb_pdf.h > ...
8 years, 11 months ago (2012-01-12 23:29:51 UTC) #21
jam
On 2012/01/12 23:15:58, gene wrote: > John, > we've never updated this version in the ...
8 years, 11 months ago (2012-01-12 23:32:27 UTC) #22
piman
On 2012/01/12 23:32:27, John Abd-El-Malek wrote: > On 2012/01/12 23:15:58, gene wrote: > > John, ...
8 years, 11 months ago (2012-01-12 23:33:41 UTC) #23
piman
lgtm
8 years, 11 months ago (2012-01-12 23:33:56 UTC) #24
gene
thanks everyone, just to confirm, is everybody ok with pdf api version set to 2?
8 years, 11 months ago (2012-01-12 23:36:43 UTC) #25
jam
On Thu, Jan 12, 2012 at 3:33 PM, <piman@chromium.org> wrote: > On 2012/01/12 23:32:27, John ...
8 years, 11 months ago (2012-01-12 23:39:00 UTC) #26
jam
On Thu, Jan 12, 2012 at 3:36 PM, <gene@chromium.org> wrote: > thanks everyone, > just ...
8 years, 11 months ago (2012-01-12 23:40:17 UTC) #27
piman
On Thu, Jan 12, 2012 at 3:38 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
8 years, 11 months ago (2012-01-12 23:49:11 UTC) #28
jam
On Thu, Jan 12, 2012 at 3:48 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
8 years, 11 months ago (2012-01-13 00:09:16 UTC) #29
piman
Ok, I checked with Trung, and he said he'll deal with the fallout of ODR ...
8 years, 11 months ago (2012-01-13 00:48:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/9139024/10001
8 years, 11 months ago (2012-01-13 20:06:02 UTC) #31
commit-bot: I haz the power
8 years, 11 months ago (2012-01-13 20:06:09 UTC) #32
Presubmit check for 9139024-10001 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit Warnings **
Missing matching PPAPI definition:

***************
  ppapi/api/private/ppb_pdf.idl
***************

Presubmit checks took 3.0s to calculate.

Powered by Google App Engine
This is Rietveld 408576698