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

Side by Side Diff: printing/print_settings.h

Issue 7585015: Printing: Remove unused PageOverlay since header/footers are drawn in PrintWebViewHelper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 9 years, 4 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/page_overlays_unittest.cc ('k') | printing/print_settings.cc » ('j') | 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 #ifndef PRINTING_PRINT_SETTINGS_H_ 5 #ifndef PRINTING_PRINT_SETTINGS_H_
6 #define PRINTING_PRINT_SETTINGS_H_ 6 #define PRINTING_PRINT_SETTINGS_H_
7 7
8 #include "printing/page_overlays.h" 8 #include <string>
9
9 #include "printing/page_range.h" 10 #include "printing/page_range.h"
10 #include "printing/page_setup.h" 11 #include "printing/page_setup.h"
11 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
12 13
13 namespace printing { 14 namespace printing {
14 15
15 // OS-independent print settings. 16 // OS-independent print settings.
16 class PrintSettings { 17 class PrintSettings {
17 public: 18 public:
18 PrintSettings(); 19 PrintSettings();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // This number determines how small we are willing to reduce the page content 72 // This number determines how small we are willing to reduce the page content
72 // in order to accommodate the widest line. If the page would have to be 73 // in order to accommodate the widest line. If the page would have to be
73 // reduced smaller to make the widest line fit, we just clip instead (this 74 // reduced smaller to make the widest line fit, we just clip instead (this
74 // behavior matches MacIE and Mozilla, at least) 75 // behavior matches MacIE and Mozilla, at least)
75 double max_shrink; 76 double max_shrink;
76 77
77 // Desired visible dots per inch rendering for output. Printing should be 78 // Desired visible dots per inch rendering for output. Printing should be
78 // scaled to ScreenDpi/dpix*desired_dpi. 79 // scaled to ScreenDpi/dpix*desired_dpi.
79 int desired_dpi; 80 int desired_dpi;
80 81
81 // The various overlays (headers and footers).
82 PageOverlays overlays;
83
84 // Indicates if the user only wants to print the current selection. 82 // Indicates if the user only wants to print the current selection.
85 bool selection_only; 83 bool selection_only;
86 84
87 // Indicates whether we should use browser-controlled page overlays 85 // Indicates whether we should use browser-controlled page overlays
88 // (header, footer, margins etc). If it is false, the overlays are 86 // (header, footer, margins etc). If it is false, the overlays are
89 // controlled by the renderer. 87 // controlled by the renderer.
90 bool use_overlays; 88 bool use_overlays;
91 89
92 // Cookie generator. It is used to initialize PrintedDocument with its 90 // Cookie generator. It is used to initialize PrintedDocument with its
93 // associated PrintSettings, to be sure that each generated PrintedPage is 91 // associated PrintSettings, to be sure that each generated PrintedPage is
(...skipping 22 matching lines...) Expand all
116 // Is the orientation landscape or portrait. 114 // Is the orientation landscape or portrait.
117 bool landscape_; 115 bool landscape_;
118 116
119 // True if this printer supports AlphaBlend. 117 // True if this printer supports AlphaBlend.
120 bool supports_alpha_blend_; 118 bool supports_alpha_blend_;
121 }; 119 };
122 120
123 } // namespace printing 121 } // namespace printing
124 122
125 #endif // PRINTING_PRINT_SETTINGS_H_ 123 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW
« no previous file with comments | « printing/page_overlays_unittest.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698