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

Side by Side Diff: chrome/common/print_messages.h

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Refactored JS code 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
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 // 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 "base/values.h" 8 #include "base/values.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Cookie for the document to ensure correctness. 43 // Cookie for the document to ensure correctness.
44 IPC_STRUCT_MEMBER(int, document_cookie) 44 IPC_STRUCT_MEMBER(int, document_cookie)
45 45
46 // Should only print currently selected text. 46 // Should only print currently selected text.
47 IPC_STRUCT_MEMBER(bool, selection_only) 47 IPC_STRUCT_MEMBER(bool, selection_only)
48 48
49 // Does the printer support alpha blending? 49 // Does the printer support alpha blending?
50 IPC_STRUCT_MEMBER(bool, supports_alpha_blend) 50 IPC_STRUCT_MEMBER(bool, supports_alpha_blend)
51 51
52 IPC_STRUCT_MEMBER(int, preview_request_id) 52 IPC_STRUCT_MEMBER(int, preview_request_id)
53
54 // Specifies if the header and footer should be rendered.
55 IPC_STRUCT_MEMBER(bool, display_header_footer)
56
57 // Date string to be printed as header if requested by the user.
58 IPC_STRUCT_MEMBER(string16, date)
59
60 // Title string to be printed as header if requested by the user.
61 IPC_STRUCT_MEMBER(string16, title)
62
63 // URL string to be printed as footer if requested by the user.
64 IPC_STRUCT_MEMBER(string16, url)
53 IPC_STRUCT_END() 65 IPC_STRUCT_END()
54 66
55 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) 67 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
56 // Parameters to render the page as a printed page. It must always be the same 68 // Parameters to render the page as a printed page. It must always be the same
57 // value for all the document. 69 // value for all the document.
58 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) 70 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params)
59 71
60 // The page number is the indicator of the square that should be rendered 72 // The page number is the indicator of the square that should be rendered
61 // according to the layout specified in PrintMsg_Print_Params. 73 // according to the layout specified in PrintMsg_Print_Params.
62 IPC_STRUCT_MEMBER(int, page_number) 74 IPC_STRUCT_MEMBER(int, page_number)
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, 286 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview,
275 PrintHostMsg_DidPreviewDocument_Params /* params */) 287 PrintHostMsg_DidPreviewDocument_Params /* params */)
276 288
277 // Tell the browser printing failed. 289 // Tell the browser printing failed.
278 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 290 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
279 int /* document cookie */) 291 int /* document cookie */)
280 292
281 // Tell the browser print preview failed. 293 // Tell the browser print preview failed.
282 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 294 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
283 int /* document cookie */) 295 int /* document cookie */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698