diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 20:21:07 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 20:21:07 +0000 |
commit | d33ed29955ac8892231bccbe80c8464803ba0bc5 (patch) | |
tree | 44925d32197c2ba9e4380a459f9f4b1380a88277 /printing | |
parent | 7e86d8b41a4b8740732a45c1d4bc444ae6a2cc49 (diff) | |
download | chromium_src-d33ed29955ac8892231bccbe80c8464803ba0bc5.zip chromium_src-d33ed29955ac8892231bccbe80c8464803ba0bc5.tar.gz chromium_src-d33ed29955ac8892231bccbe80c8464803ba0bc5.tar.bz2 |
Revert 100233 - 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.
Review URL: http://codereview.chromium.org/7817013
TBR=kmadhusu@chromium.org
Review URL: http://codereview.chromium.org/7828106
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/print_job_constants.h | 1 | ||||
-rw-r--r-- | printing/printing_context_mac.mm | 4 | ||||
-rw-r--r-- | printing/printing_context_win.cc | 4 |
3 files changed, 2 insertions, 7 deletions
diff --git a/printing/print_job_constants.h b/printing/print_job_constants.h index ebd63c2..99b2892 100644 --- a/printing/print_job_constants.h +++ b/printing/print_job_constants.h @@ -49,7 +49,6 @@ PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; // Print job duplex mode values. enum DuplexMode { - UNKNOWN_DUPLEX_MODE = -1, SIMPLEX, LONG_EDGE, SHORT_EDGE, diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm index 3534496..8ba4db8 100644 --- a/printing/printing_context_mac.mm +++ b/printing/printing_context_mac.mm @@ -236,11 +236,9 @@ bool PrintingContextMac::SetDuplexModeInPrintSettings(DuplexMode mode) { case SHORT_EDGE: duplexSetting = kPMDuplexTumble; break; - case SIMPLEX: + default: duplexSetting = kPMDuplexNone; break; - default: // UNKNOWN_DUPLEX_MODE - return true; } PMPrintSettings pmPrintSettings = diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc index c467457..a098a66 100644 --- a/printing/printing_context_win.cc +++ b/printing/printing_context_win.cc @@ -383,11 +383,9 @@ PrintingContext::Result PrintingContextWin::UpdatePrinterSettings( case SHORT_EDGE: dev_mode->dmDuplex = DMDUP_HORIZONTAL; break; - case SIMPLEX: + default: // simplex dev_mode->dmDuplex = DMDUP_SIMPLEX; break; - default: // UNKNOWN_DUPLEX_MODE - break; } dev_mode->dmOrientation = landscape ? DMORIENT_LANDSCAPE : DMORIENT_PORTRAIT; |