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

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: Removed header_footer_info param from IPC call. Created 9 years, 5 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 printed.
Chris Guillory 2011/07/26 00:10:45 Optional: printed -> rendered
Aayush Kumar 2011/07/26 01:55:41 Done.
55 IPC_STRUCT_MEMBER(bool, display_header_footer)
53 IPC_STRUCT_END() 56 IPC_STRUCT_END()
54 57
55 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) 58 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
56 // Parameters to render the page as a printed page. It must always be the same 59 // Parameters to render the page as a printed page. It must always be the same
57 // value for all the document. 60 // value for all the document.
58 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) 61 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params)
59 62
60 // The page number is the indicator of the square that should be rendered 63 // The page number is the indicator of the square that should be rendered
61 // according to the layout specified in PrintMsg_Print_Params. 64 // according to the layout specified in PrintMsg_Print_Params.
62 IPC_STRUCT_MEMBER(int, page_number) 65 IPC_STRUCT_MEMBER(int, page_number)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, 261 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview,
259 PrintHostMsg_DidPreviewDocument_Params /* params */) 262 PrintHostMsg_DidPreviewDocument_Params /* params */)
260 263
261 // Tell the browser printing failed. 264 // Tell the browser printing failed.
262 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 265 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
263 int /* document cookie */) 266 int /* document cookie */)
264 267
265 // Tell the browser print preview failed. 268 // Tell the browser print preview failed.
266 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 269 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
267 int /* document cookie */) 270 int /* document cookie */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698