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

Side by Side Diff: printing/print_job_constants.cc

Issue 2795453002: Use DPI from Print Preview on Windows, handle non square (Closed)
Patch Set: Address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/print_job_constants.h" 5 #include "printing/print_job_constants.h"
6 6
7 #include "printing/features/features.h" 7 #include "printing/features/features.h"
8 8
9 namespace printing { 9 namespace printing {
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Number of copies. 50 // Number of copies.
51 const char kSettingCopies[] = "copies"; 51 const char kSettingCopies[] = "copies";
52 52
53 // Device name: Unique printer identifier. 53 // Device name: Unique printer identifier.
54 const char kSettingDeviceName[] = "deviceName"; 54 const char kSettingDeviceName[] = "deviceName";
55 55
56 // Option to disable scaling. True if scaling is disabled else false. 56 // Option to disable scaling. True if scaling is disabled else false.
57 const char kSettingDisableScaling[] = "disableScaling"; 57 const char kSettingDisableScaling[] = "disableScaling";
58 58
59 // Horizontal DPI
60 const char kSettingDpiHorizontal[] = "dpiHorizontal";
61
62 // Vertical DPI
63 const char kSettingDpiVertical[] = "dpiVertical";
64
59 // Scaling value required to fit the document to page. 65 // Scaling value required to fit the document to page.
60 const char kSettingFitToPageScaling[] = "fitToPageScaling"; 66 const char kSettingFitToPageScaling[] = "fitToPageScaling";
61 67
62 // Print job duplex mode. 68 // Print job duplex mode.
63 const char kSettingDuplexMode[] = "duplex"; 69 const char kSettingDuplexMode[] = "duplex";
64 70
65 // Option to fit source page contents to printer paper size: true if 71 // Option to fit source page contents to printer paper size: true if
66 // selected else false. 72 // selected else false.
67 const char kSettingFitToPageEnabled[] = "fitToPageEnabled"; 73 const char kSettingFitToPageEnabled[] = "fitToPageEnabled";
68 74
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 const char kMono[] = "Mono"; 216 const char kMono[] = "Mono";
211 const char kMonochrome[] = "Monochrome"; 217 const char kMonochrome[] = "Monochrome";
212 const char kNormal[] = "Normal"; 218 const char kNormal[] = "Normal";
213 const char kNormalGray[] = "Normal.Gray"; 219 const char kNormalGray[] = "Normal.Gray";
214 const char kRGB[] = "RGB"; 220 const char kRGB[] = "RGB";
215 const char kRGBA[] = "RGBA"; 221 const char kRGBA[] = "RGBA";
216 const char kRGB16[] = "RGB16"; 222 const char kRGB16[] = "RGB16";
217 #endif 223 #endif
218 224
219 } // namespace printing 225 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698