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

Side by Side Diff: printing/print_job_constants.cc

Issue 12209086: Page range comparisons should use document size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Key that specifies the top margin of the page. 86 // Key that specifies the top margin of the page.
87 const char kSettingMarginTop[] = "marginTop"; 87 const char kSettingMarginTop[] = "marginTop";
88 88
89 // Key that specifies the dictionary of custom margins as set by the user. 89 // Key that specifies the dictionary of custom margins as set by the user.
90 const char kSettingMarginsCustom[] = "marginsCustom"; 90 const char kSettingMarginsCustom[] = "marginsCustom";
91 91
92 // Key that specifies the type of margins to use. Value is an int from the 92 // Key that specifies the type of margins to use. Value is an int from the
93 // MarginType enum. 93 // MarginType enum.
94 const char kSettingMarginsType[] = "marginsType"; 94 const char kSettingMarginsType[] = "marginsType";
95 95
96 // Number of pages to print.
97 const char kSettingPreviewPageCount[] = "pageCount";
98
96 // A page range. 99 // A page range.
97 const char kSettingPageRange[] = "pageRange"; 100 const char kSettingPageRange[] = "pageRange";
98 101
99 // The first page of a page range. (1-based) 102 // The first page of a page range. (1-based)
100 const char kSettingPageRangeFrom[] = "from"; 103 const char kSettingPageRangeFrom[] = "from";
101 104
102 // The last page of a page range. (1-based) 105 // The last page of a page range. (1-based)
103 const char kSettingPageRangeTo[] = "to"; 106 const char kSettingPageRangeTo[] = "to";
104 107
105 const char kSettingPreviewModifiable[] = "previewModifiable"; 108 const char kSettingPreviewModifiable[] = "previewModifiable";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const char kGreyscale[] = "Greyscale"; 145 const char kGreyscale[] = "Greyscale";
143 const char kMonochrome[] = "Monochrome"; 146 const char kMonochrome[] = "Monochrome";
144 const char kNormal[] = "Normal"; 147 const char kNormal[] = "Normal";
145 const char kNormalGray[] = "Normal.Gray"; 148 const char kNormalGray[] = "Normal.Gray";
146 const char kRGB[] = "RGB"; 149 const char kRGB[] = "RGB";
147 const char kRGBA[] = "RGBA"; 150 const char kRGBA[] = "RGBA";
148 const char kRGB16[] = "RGB16"; 151 const char kRGB16[] = "RGB16";
149 #endif 152 #endif
150 153
151 } // namespace printing 154 } // namespace printing
OLDNEW
« chrome/browser/resources/print_preview/preview_generator.js ('K') | « printing/print_job_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698