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

Side by Side Diff: printing/print_job_constants.cc

Issue 8227034: Change print setting conventions for margins to support more options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test compile Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « printing/print_job_constants.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 18 matching lines...) Expand all
29 29
30 // Key that specifies the height of the content area of the page. 30 // Key that specifies the height of the content area of the page.
31 const char kSettingContentHeight[] = "contentHeight"; 31 const char kSettingContentHeight[] = "contentHeight";
32 32
33 // Key that specifies the width of the content area of the page. 33 // Key that specifies the width of the content area of the page.
34 const char kSettingContentWidth[] = "contentWidth"; 34 const char kSettingContentWidth[] = "contentWidth";
35 35
36 // Number of copies. 36 // Number of copies.
37 const char kSettingCopies[] = "copies"; 37 const char kSettingCopies[] = "copies";
38 38
39 // Key that specifies if the default margins have been selected or not.
40 // True if selected, false if not.
41 const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected";
42
43 // Device name: Unique printer identifier. 39 // Device name: Unique printer identifier.
44 const char kSettingDeviceName[] = "deviceName"; 40 const char kSettingDeviceName[] = "deviceName";
45 41
46 // Print job duplex mode. 42 // Print job duplex mode.
47 const char kSettingDuplexMode[] = "duplex"; 43 const char kSettingDuplexMode[] = "duplex";
48 44
49 // True, when a new set of draft preview data is required. 45 // True, when a new set of draft preview data is required.
50 const char kSettingGenerateDraftData[] = "generateDraftData"; 46 const char kSettingGenerateDraftData[] = "generateDraftData";
51 47
52 // Option to print headers and Footers: true if selected, false if not. 48 // Option to print headers and Footers: true if selected, false if not.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 88
93 // Key that specifies the left margin of the page. 89 // Key that specifies the left margin of the page.
94 const char kSettingMarginLeft[] = "marginLeft"; 90 const char kSettingMarginLeft[] = "marginLeft";
95 91
96 // Key that specifies the right margin of the page. 92 // Key that specifies the right margin of the page.
97 const char kSettingMarginRight[] = "marginRight"; 93 const char kSettingMarginRight[] = "marginRight";
98 94
99 // Key that specifies the top margin of the page. 95 // Key that specifies the top margin of the page.
100 const char kSettingMarginTop[] = "marginTop"; 96 const char kSettingMarginTop[] = "marginTop";
101 97
102 // Key that specifies the array of custom margins as set by the user. 98 // Key that specifies the dictionary of custom margins as set by the user.
103 const char kSettingMargins[] = "margins"; 99 const char kSettingMarginsCustom[] = "marginsCustom";
100
101 // Key that specifies the type of margins to use. Value is an int from the
102 // MarginType enum.
103 const char kSettingMarginsType[] = "marginsType";
104 104
105 // A page range. 105 // A page range.
106 const char kSettingPageRange[] = "pageRange"; 106 const char kSettingPageRange[] = "pageRange";
107 107
108 // The first page of a page range. (1-based) 108 // The first page of a page range. (1-based)
109 const char kSettingPageRangeFrom[] = "from"; 109 const char kSettingPageRangeFrom[] = "from";
110 110
111 // The last page of a page range. (1-based) 111 // The last page of a page range. (1-based)
112 const char kSettingPageRangeTo[] = "to"; 112 const char kSettingPageRangeTo[] = "to";
113 113
114 // Printer name. 114 // Printer name.
115 const char kSettingPrinterName[] = "printerName"; 115 const char kSettingPrinterName[] = "printerName";
116 116
117 // Print to PDF option: true if selected, false if not. 117 // Print to PDF option: true if selected, false if not.
118 const char kSettingPrintToPDF[] = "printToPDF"; 118 const char kSettingPrintToPDF[] = "printToPDF";
119 119
120 // Indices used to represent first preview page and complete preview document. 120 // Indices used to represent first preview page and complete preview document.
121 const int FIRST_PAGE_INDEX = 0; 121 const int FIRST_PAGE_INDEX = 0;
122 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; 122 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
123 123
124 } // namespace printing 124 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698