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

Side by Side Diff: printing/print_settings.h

Issue 30443003: Use JS Date().toLocaleDateString() to format date in header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/renderer/printing/print_web_view_helper.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) 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 #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 <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Cookie generator. It is used to initialize PrintedDocument with its 103 // Cookie generator. It is used to initialize PrintedDocument with its
104 // associated PrintSettings, to be sure that each generated PrintedPage is 104 // associated PrintSettings, to be sure that each generated PrintedPage is
105 // correctly associated with its corresponding PrintedDocument. 105 // correctly associated with its corresponding PrintedDocument.
106 static int NewCookie(); 106 static int NewCookie();
107 107
108 // Updates the orientation and flip the page if needed. 108 // Updates the orientation and flip the page if needed.
109 void SetOrientation(bool landscape); 109 void SetOrientation(bool landscape);
110 110
111 // Strings to be printed as headers and footers if requested by the user. 111 // Strings to be printed as headers and footers if requested by the user.
112 base::string16 date;
113 base::string16 title; 112 base::string16 title;
114 base::string16 url; 113 base::string16 url;
115 114
116 // True if the user wants headers and footers to be displayed. 115 // True if the user wants headers and footers to be displayed.
117 bool display_header_footer; 116 bool display_header_footer;
118 117
119 // True if the user wants to print CSS backgrounds. 118 // True if the user wants to print CSS backgrounds.
120 bool should_print_backgrounds; 119 bool should_print_backgrounds;
121 120
122 private: 121 private:
(...skipping 18 matching lines...) Expand all
141 // True if this printer supports AlphaBlend. 140 // True if this printer supports AlphaBlend.
142 bool supports_alpha_blend_; 141 bool supports_alpha_blend_;
143 142
144 // If margin type is custom, this is what was requested. 143 // If margin type is custom, this is what was requested.
145 PageMargins requested_custom_margins_in_points_; 144 PageMargins requested_custom_margins_in_points_;
146 }; 145 };
147 146
148 } // namespace printing 147 } // namespace printing
149 148
150 #endif // PRINTING_PRINT_SETTINGS_H_ 149 #endif // PRINTING_PRINT_SETTINGS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698