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

Issue 375253002: [Chrome] Support NumCopies print preset (Closed)

Created:
6 years, 5 months ago by Nikhil
Modified:
6 years, 1 month ago
CC:
yzshen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Support NumCopies print preset Chrome side changes to support NumCopies print preset option. Copies in print preview dialog should be set to value set for NumCopies in pdf source document. BUG=169120 Committed: https://crrev.com/64c4daa7d64fc28efd1e49bf3548323eb67a32ec Cr-Commit-Position: refs/heads/master@{#304785}

Patch Set 1 #

Total comments: 29

Patch Set 2 : Rebase #

Patch Set 3 : Review feedback (update method name) #

Total comments: 3

Patch Set 4 : Review feedback (add version tag) #

Patch Set 5 : PPB_Printing_Dev changes #

Total comments: 11

Patch Set 6 : Rebase #

Patch Set 7 : PPP_Pdf changes #

Total comments: 12

Patch Set 8 : Review feedback (oop proxy, out-param) #

Total comments: 21

Patch Set 9 : Review feedback (move struct to PPP_Pdf) #

Total comments: 2

Patch Set 10 : Review feedback (rename from PPP_.. to PP_..) #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Use PP_ToBool #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -7 lines) Patch
M chrome/renderer/printing/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +21 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_webplugin_impl.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M pdf/instance.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M pdf/instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -1 line 0 comments Download
M pdf/out_of_process_instance.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +20 lines, -1 line 0 comments Download
M pdf/pdf_engine.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/api/dev/pp_print_settings_dev.idl View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M ppapi/c/dev/pp_print_settings_dev.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M ppapi/c/private/ppp_pdf.h View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +20 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_pdf_proxy.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_pdf_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 90 (12 generated)
Nikhil
This is a _WIP_ patch for Chrome side change. But please do take a look ...
6 years, 5 months ago (2014-07-09 09:36:47 UTC) #1
Vitaly Buka (NO REVIEWS)
thanks, looks like a correct approach https://codereview.chromium.org/375253002/diff/1/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): https://codereview.chromium.org/375253002/diff/1/chrome/browser/printing/print_preview_message_handler.cc#newcode204 chrome/browser/printing/print_preview_message_handler.cc:204: void PrintPreviewMessageHandler::OnPrintPreviewNumCopies(int num_copies) ...
6 years, 5 months ago (2014-07-10 01:13:05 UTC) #2
Vitaly Buka (NO REVIEWS)
+yzshen, who may give us some input on Pepper changes
6 years, 5 months ago (2014-07-10 01:15:02 UTC) #3
Nikhil
Glad to see approach looks fine. I'll explore how to update value through javascript function. ...
6 years, 5 months ago (2014-07-10 14:46:53 UTC) #4
Vitaly Buka (NO REVIEWS)
On 2014/07/10 14:46:53, Nikhil wrote: > Glad to see approach looks fine. I'll explore how ...
6 years, 5 months ago (2014-07-10 17:26:20 UTC) #5
Nikhil
On 2014/07/10 17:26:20, Vitaly Buka wrote: > On 2014/07/10 14:46:53, Nikhil wrote: > > On ...
6 years, 5 months ago (2014-07-10 18:54:57 UTC) #6
yzshen1
https://codereview.chromium.org/375253002/diff/1/ppapi/api/dev/ppp_printing_dev.idl File ppapi/api/dev/ppp_printing_dev.idl (right): https://codereview.chromium.org/375253002/diff/1/ppapi/api/dev/ppp_printing_dev.idl#newcode63 ppapi/api/dev/ppp_printing_dev.idl:63: int32_t NumCopies([in] PP_Instance instance); Style nits: Usually the name ...
6 years, 5 months ago (2014-07-14 17:30:55 UTC) #7
Nikhil
Rebase to latest and on top of https://codereview.chromium.org/388783003/
6 years, 5 months ago (2014-07-16 12:10:50 UTC) #8
Nikhil
Review comments incorporated. PTAL, Thanks! https://codereview.chromium.org/375253002/diff/1/chrome/browser/printing/print_preview_message_handler.cc File chrome/browser/printing/print_preview_message_handler.cc (right): https://codereview.chromium.org/375253002/diff/1/chrome/browser/printing/print_preview_message_handler.cc#newcode204 chrome/browser/printing/print_preview_message_handler.cc:204: void PrintPreviewMessageHandler::OnPrintPreviewNumCopies(int num_copies) { ...
6 years, 5 months ago (2014-07-16 13:52:55 UTC) #9
yzshen1
https://codereview.chromium.org/375253002/diff/60001/ppapi/api/dev/ppp_printing_dev.idl File ppapi/api/dev/ppp_printing_dev.idl (right): https://codereview.chromium.org/375253002/diff/60001/ppapi/api/dev/ppp_printing_dev.idl#newcode64 ppapi/api/dev/ppp_printing_dev.idl:64: int32_t GetCopiesToPrint([in] PP_Instance instance); You need to add [version=0.7] ...
6 years, 5 months ago (2014-07-16 16:10:46 UTC) #10
Nikhil
https://codereview.chromium.org/375253002/diff/60001/ppapi/api/dev/ppp_printing_dev.idl File ppapi/api/dev/ppp_printing_dev.idl (right): https://codereview.chromium.org/375253002/diff/60001/ppapi/api/dev/ppp_printing_dev.idl#newcode64 ppapi/api/dev/ppp_printing_dev.idl:64: int32_t GetCopiesToPrint([in] PP_Instance instance); On 2014/07/16 16:10:46, yzshen1 wrote: ...
6 years, 5 months ago (2014-07-16 17:42:02 UTC) #11
Nikhil
vitalybuka@ - Let's try to complete this one now. Related patches for Blink and pdfium ...
6 years, 4 months ago (2014-07-29 10:12:07 UTC) #12
Nikhil
yzshen1@ - I tried sending an email to 'pepper-team@google.com' as you suggested. But it looks ...
6 years, 4 months ago (2014-07-29 11:17:08 UTC) #13
yzshen1
On 2014/07/29 11:17:08, Nikhil wrote: > yzshen1@ - I tried sending an email to mailto: ...
6 years, 4 months ago (2014-07-29 17:15:34 UTC) #14
Nikhil
On 2014/07/29 17:15:34, yzshen1 wrote: > On 2014/07/29 11:17:08, Nikhil wrote: > > yzshen1@ - ...
6 years, 4 months ago (2014-07-30 05:11:36 UTC) #15
dmichael (off chromium)
Since we don't have to support backwards compatibility for this API, I don't have a ...
6 years, 4 months ago (2014-07-30 16:13:56 UTC) #16
yzshen1
On 2014/07/30 16:13:56, dmichael wrote: > Since we don't have to support backwards compatibility for ...
6 years, 4 months ago (2014-07-30 16:45:36 UTC) #17
raymes
6 years, 4 months ago (2014-07-31 04:44:32 UTC) #18
Nikhil
raymes@ - Could you take a look at this and share your opinion?
6 years, 4 months ago (2014-07-31 04:58:10 UTC) #19
raymes
On 2014/07/31 04:58:10, Nikhil wrote: > raymes@ - Could you take a look at this ...
6 years, 4 months ago (2014-07-31 06:59:51 UTC) #20
Nikhil
Thank you all for taking a look at this! A few details from my side ...
6 years, 4 months ago (2014-07-31 12:42:33 UTC) #21
yzshen1
On 2014/07/31 06:59:51, raymes wrote: > On 2014/07/31 04:58:10, Nikhil wrote: > > raymes@ - ...
6 years, 4 months ago (2014-07-31 17:23:00 UTC) #22
raymes
On 2014/07/31 12:42:33, Nikhil wrote: > Thank you all for taking a look at this! ...
6 years, 4 months ago (2014-07-31 23:04:42 UTC) #23
Nikhil
On 2014/07/31 23:04:42, raymes wrote: > > Hi Nikhil, > > I think the only ...
6 years, 4 months ago (2014-08-04 11:44:32 UTC) #24
Nikhil
On 2014/07/31 17:23:00, yzshen1 wrote: > On 2014/07/31 06:59:51, raymes wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-04 11:48:28 UTC) #25
dmichael (off chromium)
On 2014/08/04 11:48:28, Nikhil wrote: > On 2014/07/31 17:23:00, yzshen1 wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-04 16:34:25 UTC) #26
raymes
Looking at this again, I don't know what I was thinking with my prior comment. ...
6 years, 4 months ago (2014-08-05 06:25:31 UTC) #27
dmichael (off chromium)
On 2014/08/05 06:25:31, raymes wrote: > Looking at this again, I don't know what I ...
6 years, 4 months ago (2014-08-05 15:01:38 UTC) #28
yzshen1
On 2014/08/05 15:01:38, dmichael wrote: > On 2014/08/05 06:25:31, raymes wrote: > > Looking at ...
6 years, 4 months ago (2014-08-06 16:49:06 UTC) #29
Nikhil
Thank you all for sharing your views on this! I'm still unsure regarding the way ...
6 years, 4 months ago (2014-08-08 09:55:39 UTC) #30
dmichael (off chromium)
On 2014/08/08 09:55:39, Nikhil wrote: > Thank you all for sharing your views on this! ...
6 years, 4 months ago (2014-08-08 15:48:04 UTC) #31
dmichael (off chromium)
On 2014/08/08 15:48:04, dmichael wrote: > On 2014/08/08 09:55:39, Nikhil wrote: > > Thank you ...
6 years, 4 months ago (2014-08-08 19:48:36 UTC) #32
raymes
As an alternative to changing the PPP_Printing interface, can we just change the PPB_PDF interface ...
6 years, 4 months ago (2014-08-11 00:13:04 UTC) #33
raymes
Hey David, just looping back on this for Nikhil. How do you feel about adding ...
6 years, 4 months ago (2014-08-22 05:16:24 UTC) #34
dmichael (off chromium)
On 2014/08/22 05:16:24, raymes wrote: > Hey David, just looping back on this for Nikhil. ...
6 years, 4 months ago (2014-08-22 15:23:23 UTC) #35
Nikhil
Thanks raymes@ and dmichael@ for discussing this! Based on your suggestion, I'll use PPB_Printing_Dev interface ...
6 years, 3 months ago (2014-08-26 14:02:25 UTC) #36
Nikhil
dmichael@ - Could you please point me in right direction to develop understanding to modify ...
6 years, 3 months ago (2014-08-27 14:47:40 UTC) #37
dmichael (off chromium)
On 2014/08/27 14:47:40, Nikhil wrote: > dmichael@ - Could you please point me in right ...
6 years, 3 months ago (2014-08-27 16:04:30 UTC) #38
Nikhil
vitalybuka@ - Could you please take a look at this? I've made PPB_Printing_Dev related changes. ...
6 years, 3 months ago (2014-09-03 20:58:05 UTC) #39
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc File chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc (right): https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc#newcode102 chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc:102: case PpapiHostMsg_PrintHost_Create::ID: { this should be "case" in switch ...
6 years, 3 months ago (2014-09-03 21:36:24 UTC) #40
Nikhil
vitalybuka@ - Thanks for taking a look at this! Please see my response to your ...
6 years, 3 months ago (2014-09-04 11:42:53 UTC) #41
raymes
https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/pepper_printing_renderer_host.cc File chrome/renderer/pepper/pepper_printing_renderer_host.cc (right): https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/pepper_printing_renderer_host.cc#newcode56 chrome/renderer/pepper/pepper_printing_renderer_host.cc:56: PrintWebViewHelper* print_view_helper = PrintWebViewHelper::Get(render_view); Also - another thing to ...
6 years, 3 months ago (2014-09-05 00:06:40 UTC) #42
raymes
https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/pepper_printing_renderer_host.cc File chrome/renderer/pepper/pepper_printing_renderer_host.cc (right): https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/pepper/pepper_printing_renderer_host.cc#newcode56 chrome/renderer/pepper/pepper_printing_renderer_host.cc:56: PrintWebViewHelper* print_view_helper = PrintWebViewHelper::Get(render_view); Also - another thing to ...
6 years, 3 months ago (2014-09-05 00:06:41 UTC) #43
Vitaly Buka (NO REVIEWS)
please also note other nits from my previous comment https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/printing/print_web_view_helper.cc File chrome/renderer/printing/print_web_view_helper.cc (right): https://codereview.chromium.org/375253002/diff/100001/chrome/renderer/printing/print_web_view_helper.cc#newcode1015 chrome/renderer/printing/print_web_view_helper.cc:1015: ...
6 years, 3 months ago (2014-09-08 18:52:26 UTC) #44
Nikhil
lazyboy@ - Could you please take a look at this? It will be really great ...
6 years, 3 months ago (2014-09-09 03:38:42 UTC) #46
raymes
I suspect (but can't be sure) that this is a different issue from what lazyboy ...
6 years, 3 months ago (2014-09-11 01:46:38 UTC) #47
Nikhil
raymes@ - Does Flash use PPP_PDF? Do we need to worry about backward compatibility with ...
6 years, 3 months ago (2014-09-16 11:41:04 UTC) #48
Vitaly Buka (NO REVIEWS)
lgtm
6 years, 3 months ago (2014-09-17 20:55:54 UTC) #49
Nikhil
raymes@, dmichael@ - How about changing PPP_PDF interface? Does it also offer challenges similar to ...
6 years, 3 months ago (2014-09-19 06:28:07 UTC) #50
dmichael (off chromium)
On 2014/09/19 06:28:07, Nikhil wrote: > raymes@, dmichael@ - How about changing PPP_PDF interface? Does ...
6 years, 3 months ago (2014-09-19 15:41:31 UTC) #51
Nikhil
On 2014/09/19 15:41:31, dmichael wrote: > On 2014/09/19 06:28:07, Nikhil wrote: > > raymes@, dmichael@ ...
6 years, 3 months ago (2014-09-19 16:34:51 UTC) #52
Nikhil
vitalybuka@, raymes@, dmichael@, thestig@ - Please provide your blessings :) I got this working with ...
6 years, 3 months ago (2014-09-22 13:48:50 UTC) #56
dmichael (off chromium)
The big thing that's missing here is the out-of-process proxy. Please see: ppapi/proxy/ppp_pdf_proxy.* ppapi/proxy/ppapi_messages.h https://codereview.chromium.org/375253002/diff/180001/content/renderer/pepper/pepper_plugin_instance_impl.h ...
6 years, 3 months ago (2014-09-22 18:11:51 UTC) #57
Nikhil
dmichael@ - Thanks for reviewing this! I've modified the code as per review comments. PTAL. ...
6 years, 3 months ago (2014-09-23 10:32:28 UTC) #59
dmichael (off chromium)
I might have preferred Raymes's suggestion of a "SetPrintOptions" on PPB_Pdf vs "GetPrintOptions" on PPP_Pdf, ...
6 years, 3 months ago (2014-09-23 16:59:09 UTC) #61
Tom Sepez
Messages LGTM.
6 years, 3 months ago (2014-09-23 18:36:33 UTC) #62
Nikhil
Thanks David, Tom for reviewing this! raymes@, thestig@ - PTAL at pdf/* changes. vitalybuka@ - ...
6 years, 3 months ago (2014-09-23 18:54:56 UTC) #63
Lei Zhang
On 2014/09/23 18:54:56, Nikhil wrote: > Thanks David, Tom for reviewing this! > > raymes@, ...
6 years, 3 months ago (2014-09-23 20:21:16 UTC) #64
raymes
A few comments. It's a bit unfortunate to put this in PPP_Pdf but given all ...
6 years, 3 months ago (2014-09-24 04:54:39 UTC) #65
Nikhil
raymes@ - Sorry for the delay! Please see my response to your comments. I'll update ...
6 years, 2 months ago (2014-09-29 11:15:30 UTC) #66
Nikhil
raymes@ - <ping!> :)
6 years, 2 months ago (2014-10-01 17:10:07 UTC) #67
raymes
lgtm assuming the struct gets moved to PPP_PDF Thanks! https://codereview.chromium.org/375253002/diff/220001/pdf/instance.cc File pdf/instance.cc (right): https://codereview.chromium.org/375253002/diff/220001/pdf/instance.cc#newcode672 pdf/instance.cc:672: ...
6 years, 2 months ago (2014-10-01 17:26:23 UTC) #69
Nikhil
raymes@ - Sorry for the delay! I've moved the struct to PPP_Pdf and updated the ...
6 years, 2 months ago (2014-10-07 09:53:37 UTC) #70
raymes
lgtm with 1 name change https://codereview.chromium.org/375253002/diff/240001/ppapi/c/private/ppp_pdf.h File ppapi/c/private/ppp_pdf.h (right): https://codereview.chromium.org/375253002/diff/240001/ppapi/c/private/ppp_pdf.h#newcode24 ppapi/c/private/ppp_pdf.h:24: struct PPP_PdfPrintPresetOptions_Dev { This ...
6 years, 2 months ago (2014-10-07 17:27:14 UTC) #71
Nikhil
raymes@ - Thanks for taking a look! I've updated the name of struct based on ...
6 years, 2 months ago (2014-10-08 06:51:50 UTC) #72
raymes
On 2014/10/08 06:51:50, Nikhil wrote: > raymes@ - Thanks for taking a look! I've updated ...
6 years, 2 months ago (2014-10-09 18:14:47 UTC) #73
Nikhil
raymes@, dmichael@ - Sorry for the delay in getting back to this! Could you please ...
6 years, 1 month ago (2014-11-13 09:28:20 UTC) #74
raymes
Have you made any changes besides rebasing? If not it's ok to go ahead and ...
6 years, 1 month ago (2014-11-13 22:03:25 UTC) #75
Nikhil
On 2014/11/13 22:03:25, raymes wrote: > Have you made any changes besides rebasing? If not ...
6 years, 1 month ago (2014-11-14 02:52:50 UTC) #76
Nikhil
Thank you all for reviewing this! CQing this guy now :)
6 years, 1 month ago (2014-11-17 09:01:30 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/375253002/330001
6 years, 1 month ago (2014-11-17 09:02:39 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/87188)
6 years, 1 month ago (2014-11-17 09:40:03 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/375253002/330001
6 years, 1 month ago (2014-11-17 12:52:57 UTC) #83
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/87236)
6 years, 1 month ago (2014-11-17 13:37:33 UTC) #85
Nikhil
On 2014/11/17 13:37:33, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-18 04:49:04 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/375253002/370001
6 years, 1 month ago (2014-11-19 07:50:59 UTC) #88
commit-bot: I haz the power
Committed patchset #15 (id:370001)
6 years, 1 month ago (2014-11-19 08:39:04 UTC) #89
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 08:39:45 UTC) #90
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/64c4daa7d64fc28efd1e49bf3548323eb67a32ec
Cr-Commit-Position: refs/heads/master@{#304785}

Powered by Google App Engine
This is Rietveld 408576698