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

Side by Side Diff: printing/print_job_constants.cc

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 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 | 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 24 matching lines...) Expand all
35 35
36 // Number of copies. 36 // Number of copies.
37 const char kSettingCopies[] = "copies"; 37 const char kSettingCopies[] = "copies";
38 38
39 // Device name: Unique printer identifier. 39 // Device name: Unique printer identifier.
40 const char kSettingDeviceName[] = "deviceName"; 40 const char kSettingDeviceName[] = "deviceName";
41 41
42 // Print job duplex mode. 42 // Print job duplex mode.
43 const char kSettingDuplexMode[] = "duplex"; 43 const char kSettingDuplexMode[] = "duplex";
44 44
45 // Key that specifies the fit to page option value.
46 const char kSettingFitToPageEnabled[] = "fitToPageEnabled";
47
45 // True, when a new set of draft preview data is required. 48 // True, when a new set of draft preview data is required.
46 const char kSettingGenerateDraftData[] = "generateDraftData"; 49 const char kSettingGenerateDraftData[] = "generateDraftData";
47 50
48 // Option to print headers and Footers: true if selected, false if not. 51 // Option to print headers and Footers: true if selected, false if not.
49 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled"; 52 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
50 53
51 // Default character spacing for text while printing headers and footers. 54 // Default character spacing for text while printing headers and footers.
52 // (For CoreGraphics only). 55 // (For CoreGraphics only).
53 const int kSettingHeaderFooterCharacterSpacing = 0; 56 const int kSettingHeaderFooterCharacterSpacing = 0;
54 57
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const char kGreyscale[] = "Greyscale"; 148 const char kGreyscale[] = "Greyscale";
146 const char kMonochrome[] = "Monochrome"; 149 const char kMonochrome[] = "Monochrome";
147 const char kNormal[] = "Normal"; 150 const char kNormal[] = "Normal";
148 const char kNormalGray[] = "Normal.Gray"; 151 const char kNormalGray[] = "Normal.Gray";
149 const char kRGB[] = "RGB"; 152 const char kRGB[] = "RGB";
150 const char kRGBA[] = "RGBA"; 153 const char kRGBA[] = "RGBA";
151 const char kRGB16[] = "RGB16"; 154 const char kRGB16[] = "RGB16";
152 #endif 155 #endif
153 156
154 } // namespace printing 157 } // namespace printing
OLDNEW
« chrome/test/data/webui/print_preview.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