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

Issue 388783003: Add support to send print preset options in one message (Closed)

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

Description

Add support to send print preset options in one message This patch introduces structure that should be filled with all print preset options that we need to get from PDF and set in print preview. Before this patch one message was being sent to browser to set PrintScaling property but going forward, more properties will be supported and so it is better to send only one message with all properties set in one structure. BUG=169120 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285159

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback (update param structure) #

Total comments: 4

Patch Set 3 : Review feedback (add DUPLEX_MODE_LAST) #

Total comments: 4

Patch Set 4 : Remove change for DUPLEX_MODE_LAST #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Fix for Android trybot failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -26 lines) Patch
M chrome/browser/printing/print_preview_message_handler.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/printing/print_preview_message_handler.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/common/chrome_utility_printing_messages.h View 1 2 3 4 5 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/print_messages.h View 1 2 3 4 5 5 chunks +36 lines, -3 lines 0 comments Download
M chrome/common/print_messages.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.cc View 1 4 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
Nikhil
This patch is result of discussion at https://codereview.chromium.org/375253002/ It introduces structure and IPC message to ...
6 years, 5 months ago (2014-07-11 11:34:48 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/388783003/diff/1/chrome/common/print_messages.cc File chrome/common/print_messages.cc (right): https://codereview.chromium.org/388783003/diff/1/chrome/common/print_messages.cc#newcode88 chrome/common/print_messages.cc:88: print_range() { duplex(UNKNOWN_DUPLEX_MODE), no need print_range() https://codereview.chromium.org/388783003/diff/1/chrome/common/print_messages.cc#newcode97 chrome/common/print_messages.cc:97: print_copies ...
6 years, 5 months ago (2014-07-11 19:28:37 UTC) #2
Nikhil
Incorporated the changes, PTAL. Thanks! https://codereview.chromium.org/388783003/diff/1/chrome/common/print_messages.cc File chrome/common/print_messages.cc (right): https://codereview.chromium.org/388783003/diff/1/chrome/common/print_messages.cc#newcode88 chrome/common/print_messages.cc:88: print_range() { On 2014/07/11 ...
6 years, 5 months ago (2014-07-14 08:58:08 UTC) #3
Nikhil
Let's try to complete this one now :) pdfium changes were submitted yesterday (https://codereview.chromium.org/345123002/).
6 years, 5 months ago (2014-07-15 11:33:44 UTC) #4
Vitaly Buka (NO REVIEWS)
lgtm +tsepez for print_messages.*
6 years, 5 months ago (2014-07-15 21:46:27 UTC) #5
Tom Sepez
Messages LGTM.
6 years, 5 months ago (2014-07-15 21:52:14 UTC) #6
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 5 months ago (2014-07-15 22:23:21 UTC) #7
Vitaly Buka (NO REVIEWS)
The CQ bit was unchecked by vitalybuka@chromium.org
6 years, 5 months ago (2014-07-15 22:23:30 UTC) #8
Vitaly Buka (NO REVIEWS)
The CQ bit was checked by vitalybuka@chromium.org
6 years, 5 months ago (2014-07-15 22:23:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/388783003/20001
6 years, 5 months ago (2014-07-15 22:27:30 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/388783003/diff/20001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): https://codereview.chromium.org/388783003/diff/20001/chrome/common/print_messages.h#newcode90 chrome/common/print_messages.h:90: printing::MARGIN_TYPE_LAST) Needs IPC_ENUM_TRAITS_MAX_VALUE(printing::DuplexMode, ...)
6 years, 5 months ago (2014-07-15 23:08:39 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-16 07:13:14 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-16 07:16:56 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/80195)
6 years, 5 months ago (2014-07-16 07:16:57 UTC) #14
Nikhil
The CQ bit was checked by n.bansal@samsung.com
6 years, 5 months ago (2014-07-16 07:48:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/388783003/20001
6 years, 5 months ago (2014-07-16 07:49:39 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-16 07:59:15 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-16 08:03:21 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/80204)
6 years, 5 months ago (2014-07-16 08:03:22 UTC) #19
Nikhil
PTAL, Thanks! https://codereview.chromium.org/388783003/diff/20001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): https://codereview.chromium.org/388783003/diff/20001/chrome/common/print_messages.h#newcode90 chrome/common/print_messages.h:90: printing::MARGIN_TYPE_LAST) On 2014/07/15 23:08:39, Vitaly Buka wrote: ...
6 years, 5 months ago (2014-07-16 08:16:52 UTC) #20
Nikhil
On 2014/07/16 08:03:22, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 5 months ago (2014-07-16 08:39:27 UTC) #21
jochen (gone - plz use gerrit)
once the ctor/dtor is inline, tsepez's looks-good is good enough anyway https://codereview.chromium.org/388783003/diff/40001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): ...
6 years, 5 months ago (2014-07-16 08:53:37 UTC) #22
Nikhil
jochen@ - When I try to make ctor and dtor inline, I get following errors ...
6 years, 5 months ago (2014-07-16 09:26:57 UTC) #23
Nikhil
vitaly@ - It looks like range for printing::DuplexMode is already defined. https://codereview.chromium.org/388783003/diff/20001/chrome/common/print_messages.h File chrome/common/print_messages.h (right): ...
6 years, 5 months ago (2014-07-16 10:25:06 UTC) #24
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/388783003/diff/80001/chrome/common/print_messages.cc File chrome/common/print_messages.cc (right): https://codereview.chromium.org/388783003/diff/80001/chrome/common/print_messages.cc#newcode83 chrome/common/print_messages.cc:83: PrintHostMsg_SetOptionsFromDocument_Params:: plz clang-format
6 years, 5 months ago (2014-07-16 13:20:23 UTC) #25
Nikhil
https://codereview.chromium.org/388783003/diff/80001/chrome/common/print_messages.cc File chrome/common/print_messages.cc (right): https://codereview.chromium.org/388783003/diff/80001/chrome/common/print_messages.cc#newcode83 chrome/common/print_messages.cc:83: PrintHostMsg_SetOptionsFromDocument_Params:: On 2014/07/16 13:20:23, jochen wrote: > plz clang-format ...
6 years, 5 months ago (2014-07-16 14:07:43 UTC) #26
Nikhil
vitalybuka@ - <ping!> This is ready to submit once you take a look at response ...
6 years, 5 months ago (2014-07-18 04:20:48 UTC) #27
Vitaly Buka (NO REVIEWS)
lgtm
6 years, 5 months ago (2014-07-21 07:39:50 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 08:38:39 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 08:39:59 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/30951)
6 years, 5 months ago (2014-07-21 08:40:00 UTC) #31
Nikhil
Thanks for reviews! Bots probably failed because of rebase. I've done so now, and will ...
6 years, 5 months ago (2014-07-21 11:31:32 UTC) #32
Nikhil
The CQ bit was checked by n.bansal@samsung.com
6 years, 5 months ago (2014-07-21 11:38:48 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/388783003/100001
6 years, 5 months ago (2014-07-21 11:39:37 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 14:42:47 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 14:47:21 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/208609)
6 years, 5 months ago (2014-07-21 14:47:22 UTC) #37
Nikhil
The CQ bit was checked by n.bansal@samsung.com
6 years, 5 months ago (2014-07-21 17:46:10 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/388783003/100001
6 years, 5 months ago (2014-07-21 17:47:13 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 17:54:31 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 17:59:38 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/208681)
6 years, 5 months ago (2014-07-21 17:59:39 UTC) #42
Nikhil
On 2014/07/21 17:59:39, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 5 months ago (2014-07-21 19:08:47 UTC) #43
Vitaly Buka (NO REVIEWS)
On 2014/07/21 19:08:47, Nikhil wrote: > On 2014/07/21 17:59:39, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-21 19:31:37 UTC) #44
Nikhil
PTAL at fix for Android trybot failure. I was able to reproduce error locally by ...
6 years, 5 months ago (2014-07-22 12:37:18 UTC) #45
Nikhil
vitalybuka@ - <ping!> On 2014/07/22 12:37:18, Nikhil wrote: > PTAL at fix for Android trybot ...
6 years, 5 months ago (2014-07-23 14:34:03 UTC) #46
Vitaly Buka (NO REVIEWS)
lgtm sorry for delay.
6 years, 5 months ago (2014-07-23 22:38:05 UTC) #47
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 08:29:28 UTC) #48
Message was sent while issue was closed.
Change committed as 285159

Powered by Google App Engine
This is Rietveld 408576698