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

Issue 407733002: [JS Changes] Support NumCopies print preset (Closed)

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

Description

Support NumCopies print preset Chrome side javascript 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/2604a9784e1c28e790533555bc3cfe97333289b1 Cr-Commit-Position: refs/heads/master@{#307454}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Name changes #

Total comments: 9

Patch Set 4 : Review feedback (add kSettingDisableScaling, remove dead code) #

Total comments: 12

Patch Set 5 : Review feedback (swap checks, update comments) #

Total comments: 6

Patch Set 6 : Review feedback (nit fixes) #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : Updated test case #

Patch Set 10 : Added test case #

Total comments: 4

Patch Set 11 : Review feedback (nit fixes for test case) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -21 lines) Patch
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 5 4 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 2 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +30 lines, -2 lines 0 comments Download
M printing/print_job_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_job_constants.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
Nikhil
Javascript changes to update print preview dialog to set copies based on NumCopies property set ...
6 years, 5 months ago (2014-07-19 13:43:18 UTC) #1
Nikhil
vitalybuka@, alekseys@ - PTAL at changes to update print preview dialog to set copies based ...
6 years, 1 month ago (2014-11-19 13:45:50 UTC) #3
Vitaly Buka (NO REVIEWS)
lgtm please also wait Aleksey's feedback.
6 years, 1 month ago (2014-11-20 16:40:47 UTC) #4
Aleksey Shlyapnikov
https://codereview.chromium.org/407733002/diff/40001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/407733002/diff/40001/chrome/browser/resources/print_preview/print_preview.js#newcode1007 chrome/browser/resources/print_preview/print_preview.js:1007: if (event.optionsFromDocument.copies) { Check this.printTicketStore_.copies.isCapabilityAvailable() too. What is the ...
6 years, 1 month ago (2014-11-20 18:56:56 UTC) #5
Nikhil
vitalybuka@, alekseys@ - Thanks for reviewing this! I've made changes as per review comments. PTAL. ...
6 years, 1 month ago (2014-11-21 10:45:32 UTC) #6
Aleksey Shlyapnikov
Thank you for making the change! https://codereview.chromium.org/407733002/diff/40001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/407733002/diff/40001/chrome/browser/resources/print_preview/print_preview.js#newcode1007 chrome/browser/resources/print_preview/print_preview.js:1007: if (event.optionsFromDocument.copies) { ...
6 years, 1 month ago (2014-11-21 22:50:42 UTC) #7
Nikhil
alekseys@ - Thanks for reviewing this! I've updated the code as per your review comments. ...
6 years ago (2014-11-24 12:57:30 UTC) #8
Aleksey Shlyapnikov
lgtm https://codereview.chromium.org/407733002/diff/80001/chrome/browser/resources/print_preview/native_layer.js File chrome/browser/resources/print_preview/native_layer.js (right): https://codereview.chromium.org/407733002/diff/80001/chrome/browser/resources/print_preview/native_layer.js#newcode656 chrome/browser/resources/print_preview/native_layer.js:656: * Update print preset options from source PDF ...
6 years ago (2014-11-24 19:47:58 UTC) #9
Nikhil
alekseys@ - Thank you for the quick reviews! I've addressed final nits. PTAL. Thanks! https://codereview.chromium.org/407733002/diff/80001/chrome/browser/resources/print_preview/native_layer.js ...
6 years ago (2014-11-25 06:36:13 UTC) #10
Nikhil
alekseys@ - Shall I go ahead and submit this? I've addressed the final nits. PTAL. ...
6 years ago (2014-11-26 09:11:19 UTC) #11
Aleksey Shlyapnikov
Indeed, go ahead and submit it. You got my lgtm already.
6 years ago (2014-12-01 17:53:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/407733002/120001
6 years ago (2014-12-01 18:08:36 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/10267) mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/10302)
6 years ago (2014-12-01 19:18:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/407733002/140001
6 years ago (2014-12-03 10:28:41 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/10998)
6 years ago (2014-12-03 11:33:24 UTC) #20
Aleksey Shlyapnikov
The test failure is real. You need to figure out why this test is failing ...
6 years ago (2014-12-03 19:24:12 UTC) #21
Nikhil
alekseys@ - I've updated the test case that was failing. I've also added a new ...
6 years ago (2014-12-04 10:19:31 UTC) #22
Aleksey Shlyapnikov
lgtm https://codereview.chromium.org/407733002/diff/180001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/407733002/diff/180001/chrome/test/data/webui/print_preview.js#newcode480 chrome/test/data/webui/print_preview.js:480: printPresetOptionsEvent.optionsFromDocument = printPresetOptions; Since you're not reusing them, ...
6 years ago (2014-12-04 18:45:57 UTC) #23
Aleksey Shlyapnikov
lgtm
6 years ago (2014-12-04 18:45:58 UTC) #24
Nikhil
alekseys@ - Thanks for reviewing this! I've addressed final nits for the test case. CQing ...
6 years ago (2014-12-09 11:00:22 UTC) #25
Nikhil
https://codereview.chromium.org/407733002/diff/180001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/407733002/diff/180001/chrome/test/data/webui/print_preview.js#newcode480 chrome/test/data/webui/print_preview.js:480: printPresetOptionsEvent.optionsFromDocument = printPresetOptions; On 2014/12/04 18:45:57, Aleksey Shlyapnikov wrote: ...
6 years ago (2014-12-09 11:00:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/407733002/200001
6 years ago (2014-12-09 11:01:37 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
6 years ago (2014-12-09 12:26:54 UTC) #29
commit-bot: I haz the power
6 years ago (2014-12-09 12:27:38 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/2604a9784e1c28e790533555bc3cfe97333289b1
Cr-Commit-Position: refs/heads/master@{#307454}

Powered by Google App Engine
This is Rietveld 408576698