OLD | NEW |
---|---|
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"; |
11 | 11 |
12 // Unique ID sent along every preview request. | 12 // Unique ID sent along every preview request. |
13 const char kPreviewRequestID[] = "requestID"; | 13 const char kPreviewRequestID[] = "requestID"; |
14 | 14 |
15 // Unique ID to identify a print preview UI. | |
16 const char kPreviewUIId[] = "previewUIId"; | |
17 | |
15 // Print using cloud print: true if selected, false if not. | 18 // Print using cloud print: true if selected, false if not. |
16 const char kSettingCloudPrintId[] = "cloudPrintID"; | 19 const char kSettingCloudPrintId[] = "cloudPrintID"; |
17 | 20 |
18 // Print job setting 'collate'. | 21 // Print job setting 'collate'. |
19 const char kSettingCollate[] = "collate"; | 22 const char kSettingCollate[] = "collate"; |
20 | 23 |
21 // Print out color: true for color, false for grayscale. | 24 // Print out color: true for color, false for grayscale. |
22 const char kSettingColor[] = "color"; | 25 const char kSettingColor[] = "color"; |
23 | 26 |
24 // Number of copies. | 27 // Number of copies. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 | 75 |
73 // The last page of a page range. (1-based) | 76 // The last page of a page range. (1-based) |
74 const char kSettingPageRangeTo[] = "to"; | 77 const char kSettingPageRangeTo[] = "to"; |
75 | 78 |
76 // Printer name. | 79 // Printer name. |
77 const char kSettingPrinterName[] = "printerName"; | 80 const char kSettingPrinterName[] = "printerName"; |
78 | 81 |
79 // Print to PDF option: true if selected, false if not. | 82 // Print to PDF option: true if selected, false if not. |
80 const char kSettingPrintToPDF[] = "printToPDF"; | 83 const char kSettingPrintToPDF[] = "printToPDF"; |
81 | 84 |
82 // Indices used to represent first page, invalid page and complete | 85 // Indices used to represent first page, invalid page and complete |
kmadhusu
2011/08/22 17:56:22
nit: Update the comment.
Lei Zhang
2011/08/22 20:22:14
Done.
| |
83 // preview document. | 86 // preview document. |
84 const int FIRST_PAGE_INDEX = 0; | 87 const int FIRST_PAGE_INDEX = 0; |
85 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 88 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
86 const int INVALID_PAGE_INDEX = -2; | |
87 | 89 |
88 } // namespace printing | 90 } // namespace printing |
OLD | NEW |