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

Side by Side Diff: chrome/common/print_messages.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
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 // IPC messages for printing. 5 // IPC messages for printing.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 int desired_dpi; 38 int desired_dpi;
39 int document_cookie; 39 int document_cookie;
40 bool selection_only; 40 bool selection_only;
41 bool supports_alpha_blend; 41 bool supports_alpha_blend;
42 int32 preview_ui_id; 42 int32 preview_ui_id;
43 int preview_request_id; 43 int preview_request_id;
44 bool is_first_request; 44 bool is_first_request;
45 WebKit::WebPrintScalingOption print_scaling_option; 45 WebKit::WebPrintScalingOption print_scaling_option;
46 bool print_to_pdf; 46 bool print_to_pdf;
47 bool display_header_footer; 47 bool display_header_footer;
48 string16 date;
49 string16 title; 48 string16 title;
50 string16 url; 49 string16 url;
51 bool should_print_backgrounds; 50 bool should_print_backgrounds;
52 }; 51 };
53 52
54 struct PrintMsg_PrintPages_Params { 53 struct PrintMsg_PrintPages_Params {
55 PrintMsg_PrintPages_Params(); 54 PrintMsg_PrintPages_Params();
56 ~PrintMsg_PrintPages_Params(); 55 ~PrintMsg_PrintPages_Params();
57 56
58 // Resets the members of the struct to 0. 57 // Resets the members of the struct to 0.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 129
131 // Specifies the page scaling option for preview printing. 130 // Specifies the page scaling option for preview printing.
132 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option) 131 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
133 132
134 // True if print to pdf is requested. 133 // True if print to pdf is requested.
135 IPC_STRUCT_TRAITS_MEMBER(print_to_pdf) 134 IPC_STRUCT_TRAITS_MEMBER(print_to_pdf)
136 135
137 // Specifies if the header and footer should be rendered. 136 // Specifies if the header and footer should be rendered.
138 IPC_STRUCT_TRAITS_MEMBER(display_header_footer) 137 IPC_STRUCT_TRAITS_MEMBER(display_header_footer)
139 138
140 // Date string to be printed as header if requested by the user.
141 IPC_STRUCT_TRAITS_MEMBER(date)
142
143 // Title string to be printed as header if requested by the user. 139 // Title string to be printed as header if requested by the user.
144 IPC_STRUCT_TRAITS_MEMBER(title) 140 IPC_STRUCT_TRAITS_MEMBER(title)
145 141
146 // URL string to be printed as footer if requested by the user. 142 // URL string to be printed as footer if requested by the user.
147 IPC_STRUCT_TRAITS_MEMBER(url) 143 IPC_STRUCT_TRAITS_MEMBER(url)
148 144
149 // True if print backgrounds is requested by the user. 145 // True if print backgrounds is requested by the user.
150 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) 146 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds)
151 IPC_STRUCT_TRAITS_END() 147 IPC_STRUCT_TRAITS_END()
152 148
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
440 436
441 // Tell the browser to show the print preview, when the document is sufficiently 437 // Tell the browser to show the print preview, when the document is sufficiently
442 // loaded such that the renderer can determine whether it is modifiable or not. 438 // loaded such that the renderer can determine whether it is modifiable or not.
443 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
444 bool /* is_modifiable */) 440 bool /* is_modifiable */)
445 441
446 // Notify the browser that the PDF in the initiator renderer has disabled print 442 // Notify the browser that the PDF in the initiator renderer has disabled print
447 // scaling option. 443 // scaling option.
448 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled)
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_page.html ('k') | chrome/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698