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

Side by Side Diff: printing/print_job_constants.cc

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactors and remove tab_helpers dependency Created 5 years, 5 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
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 namespace printing { 7 namespace printing {
8 8
9 // True if this is the first preview request. 9 // True if this is the first preview request.
10 const char kIsFirstRequest[] = "isFirstRequest"; 10 const char kIsFirstRequest[] = "isFirstRequest";
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Print job duplex mode. 57 // Print job duplex mode.
58 const char kSettingDuplexMode[] = "duplex"; 58 const char kSettingDuplexMode[] = "duplex";
59 59
60 // Option to fit source page contents to printer paper size: true if 60 // Option to fit source page contents to printer paper size: true if
61 // selected else false. 61 // selected else false.
62 const char kSettingFitToPageEnabled[] = "fitToPageEnabled"; 62 const char kSettingFitToPageEnabled[] = "fitToPageEnabled";
63 63
64 // True, when a new set of draft preview data is required. 64 // True, when a new set of draft preview data is required.
65 const char kSettingGenerateDraftData[] = "generateDraftData"; 65 const char kSettingGenerateDraftData[] = "generateDraftData";
66 66
67 // Option to print a distilled page: true if requested, false if not.
68 const char kSettingDistillPageEnabled[] = "distillPage";
69
67 // Option to print headers and Footers: true if selected, false if not. 70 // Option to print headers and Footers: true if selected, false if not.
68 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled"; 71 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
69 72
70 // Interstice or gap between different header footer components. Hardcoded to 73 // Interstice or gap between different header footer components. Hardcoded to
71 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea. 74 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea.
72 const float kSettingHeaderFooterInterstice = 14.2f; 75 const float kSettingHeaderFooterInterstice = 14.2f;
73 76
74 // Key that specifies the date of the page that will be printed in the headers 77 // Key that specifies the date of the page that will be printed in the headers
75 // and footers. 78 // and footers.
76 const char kSettingHeaderFooterDate[] = "date"; 79 const char kSettingHeaderFooterDate[] = "date";
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const char kGreyscale[] = "Greyscale"; 198 const char kGreyscale[] = "Greyscale";
196 const char kMonochrome[] = "Monochrome"; 199 const char kMonochrome[] = "Monochrome";
197 const char kNormal[] = "Normal"; 200 const char kNormal[] = "Normal";
198 const char kNormalGray[] = "Normal.Gray"; 201 const char kNormalGray[] = "Normal.Gray";
199 const char kRGB[] = "RGB"; 202 const char kRGB[] = "RGB";
200 const char kRGBA[] = "RGBA"; 203 const char kRGBA[] = "RGBA";
201 const char kRGB16[] = "RGB16"; 204 const char kRGB16[] = "RGB16";
202 #endif 205 #endif
203 206
204 } // namespace printing 207 } // namespace printing
OLDNEW
« printing/print_job_constants.h ('K') | « printing/print_job_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698