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

Issue 7817013: PrintPreview: Added code to identify the printer default duplex value. (Closed)

Created:
9 years, 3 months ago by kmadhusu
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

PrintPreview: Added code to identify the printer default duplex value. Added code to identify the printer default duplex value. If we are unable to get the default value, hide the two sided option in the preview tab. BUG=89204 TEST=Please refer to bug description. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100233

Patch Set 1 #

Patch Set 2 : Fix test failures #

Total comments: 14

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : hide two sided option if the printer default duplex value is unknown #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : Hide the two sided option if the selected printer is PRINT-TO-PDF #

Total comments: 10

Patch Set 9 : Addressed review comments. #

Patch Set 10 : '' #

Total comments: 4

Patch Set 11 : Fixed nits #

Patch Set 12 : '' #

Total comments: 1

Patch Set 13 : '' #

Total comments: 6

Patch Set 14 : Addressed dpapad@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -27 lines) Patch
M chrome/browser/printing/print_dialog_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -12 lines 0 comments Download
M chrome/browser/resources/print_preview/copies_settings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +36 lines, -8 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 6 chunks +26 lines, -5 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 9 5 chunks +54 lines, -0 lines 0 comments Download
M printing/print_job_constants.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M printing/printing_context_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M printing/printing_context_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
kmadhusu
Previously, we were just sending the user selected duplex value (SIMPLEX or LONG_EDGE) from the ...
9 years, 3 months ago (2011-09-02 02:08:45 UTC) #1
dpapad
http://codereview.chromium.org/7817013/diff/2001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/2001/chrome/browser/resources/print_preview/copies_settings.js#newcode26 chrome/browser/resources/print_preview/copies_settings.js:26: this.printerDefaultDuplexValue = -1; Rename member var to printerDefaultDuplexValue_. http://codereview.chromium.org/7817013/diff/2001/chrome/browser/resources/print_preview/copies_settings.js#newcode62 ...
9 years, 3 months ago (2011-09-02 03:01:07 UTC) #2
vandebo (ex-Chrome)
http://codereview.chromium.org/7817013/diff/2001/chrome/renderer/print_web_view_helper_browsertest.cc File chrome/renderer/print_web_view_helper_browsertest.cc (right): http://codereview.chromium.org/7817013/diff/2001/chrome/renderer/print_web_view_helper_browsertest.cc#newcode39 chrome/renderer/print_web_view_helper_browsertest.cc:39: Probably should add a test for the new code ...
9 years, 3 months ago (2011-09-02 18:12:49 UTC) #3
kmadhusu
http://codereview.chromium.org/7817013/diff/2001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/2001/chrome/browser/resources/print_preview/copies_settings.js#newcode26 chrome/browser/resources/print_preview/copies_settings.js:26: this.printerDefaultDuplexValue = -1; On 2011/09/02 03:01:07, dpapad wrote: > ...
9 years, 3 months ago (2011-09-03 00:34:00 UTC) #4
vandebo (ex-Chrome)
LGTM with nits. http://codereview.chromium.org/7817013/diff/9001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/9001/chrome/browser/resources/print_preview/copies_settings.js#newcode76 chrome/browser/resources/print_preview/copies_settings.js:76: // Ref bug: http://code.google.com/p/chromium/issues/detail?id=89204 http://crbug.com/89204 http://codereview.chromium.org/7817013/diff/9001/chrome/browser/resources/print_preview/copies_settings.js#newcode77 ...
9 years, 3 months ago (2011-09-03 00:58:26 UTC) #5
kmadhusu
http://codereview.chromium.org/7817013/diff/9001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/9001/chrome/browser/resources/print_preview/copies_settings.js#newcode76 chrome/browser/resources/print_preview/copies_settings.js:76: // Ref bug: http://code.google.com/p/chromium/issues/detail?id=89204 On 2011/09/03 00:58:26, vandebo wrote: ...
9 years, 3 months ago (2011-09-03 02:44:53 UTC) #6
dpapad
LGTM
9 years, 3 months ago (2011-09-03 04:48:00 UTC) #7
vandebo (ex-Chrome)
http://codereview.chromium.org/7817013/diff/9003/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/9003/chrome/browser/resources/print_preview/copies_settings.js#newcode72 chrome/browser/resources/print_preview/copies_settings.js:72: // On Windows, some printer doesn't specify their duplex ...
9 years, 3 months ago (2011-09-04 17:06:53 UTC) #8
kmadhusu
If the printer default duplex value is unknown, hide the two sided option in preview ...
9 years, 3 months ago (2011-09-07 20:57:33 UTC) #9
vandebo (ex-Chrome)
http://codereview.chromium.org/7817013/diff/19001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/19001/chrome/browser/resources/print_preview/copies_settings.js#newcode72 chrome/browser/resources/print_preview/copies_settings.js:72: else if (!this.twoSidedCheckbox_.checked) nit: remove the ! and switch ...
9 years, 3 months ago (2011-09-07 21:55:57 UTC) #10
kmadhusu
http://codereview.chromium.org/7817013/diff/19001/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/19001/chrome/browser/resources/print_preview/copies_settings.js#newcode72 chrome/browser/resources/print_preview/copies_settings.js:72: else if (!this.twoSidedCheckbox_.checked) On 2011/09/07 21:55:57, vandebo wrote: > ...
9 years, 3 months ago (2011-09-07 23:21:56 UTC) #11
vandebo (ex-Chrome)
LGTM http://codereview.chromium.org/7817013/diff/27001/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/7817013/diff/27001/chrome/browser/printing/print_dialog_gtk.cc#newcode203 chrome/browser/printing/print_dialog_gtk.cc:203: const char* cups_duplex_mode; Put this entire block in ...
9 years, 3 months ago (2011-09-07 23:32:22 UTC) #12
kmadhusu
http://codereview.chromium.org/7817013/diff/27001/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/7817013/diff/27001/chrome/browser/printing/print_dialog_gtk.cc#newcode203 chrome/browser/printing/print_dialog_gtk.cc:203: const char* cups_duplex_mode; On 2011/09/07 23:32:22, vandebo wrote: > ...
9 years, 3 months ago (2011-09-07 23:43:48 UTC) #13
vandebo (ex-Chrome)
LGTM http://codereview.chromium.org/7817013/diff/26018/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/7817013/diff/26018/chrome/browser/printing/print_dialog_gtk.cc#newcode216 chrome/browser/printing/print_dialog_gtk.cc:216: break; nit: add a NOTREACHED or remove the ...
9 years, 3 months ago (2011-09-08 00:03:57 UTC) #14
dpapad
http://codereview.chromium.org/7817013/diff/5003/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/5003/chrome/browser/resources/print_preview/copies_settings.js#newcode75 chrome/browser/resources/print_preview/copies_settings.js:75: return this.SIMPLEX; Nit: you could compress this if statement ...
9 years, 3 months ago (2011-09-08 15:52:06 UTC) #15
kmadhusu
http://codereview.chromium.org/7817013/diff/5003/chrome/browser/resources/print_preview/copies_settings.js File chrome/browser/resources/print_preview/copies_settings.js (right): http://codereview.chromium.org/7817013/diff/5003/chrome/browser/resources/print_preview/copies_settings.js#newcode75 chrome/browser/resources/print_preview/copies_settings.js:75: return this.SIMPLEX; On 2011/09/08 15:52:06, dpapad wrote: > Nit: ...
9 years, 3 months ago (2011-09-08 17:13:10 UTC) #16
dpapad
9 years, 3 months ago (2011-09-08 17:32:16 UTC) #17
LGTM

Powered by Google App Engine
This is Rietveld 408576698