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

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

Issue 7313035: Print Preview: Associating preview requests and responses using an identifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed for win and mac (tested only on win), ignoring obsolete responses. 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 30 matching lines...) Expand all
41 IPC_STRUCT_MEMBER(int, desired_dpi) 41 IPC_STRUCT_MEMBER(int, desired_dpi)
42 42
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
52 IPC_STRUCT_MEMBER(int, preview_request_id)
51 IPC_STRUCT_END() 53 IPC_STRUCT_END()
52 54
53 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) 55 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
54 // Parameters to render the page as a printed page. It must always be the same 56 // Parameters to render the page as a printed page. It must always be the same
55 // value for all the document. 57 // value for all the document.
56 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) 58 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params)
57 59
58 // The page number is the indicator of the square that should be rendered 60 // The page number is the indicator of the square that should be rendered
59 // according to the layout specified in PrintMsg_Print_Params. 61 // according to the layout specified in PrintMsg_Print_Params.
60 IPC_STRUCT_MEMBER(int, page_number) 62 IPC_STRUCT_MEMBER(int, page_number)
(...skipping 21 matching lines...) Expand all
82 IPC_STRUCT_MEMBER(uint32, data_size) 84 IPC_STRUCT_MEMBER(uint32, data_size)
83 85
84 // Cookie for the document to ensure correctness. 86 // Cookie for the document to ensure correctness.
85 IPC_STRUCT_MEMBER(int, document_cookie) 87 IPC_STRUCT_MEMBER(int, document_cookie)
86 88
87 // Store the expected pages count. 89 // Store the expected pages count.
88 IPC_STRUCT_MEMBER(int, expected_pages_count) 90 IPC_STRUCT_MEMBER(int, expected_pages_count)
89 91
90 // Whether the preview can be modified. 92 // Whether the preview can be modified.
91 IPC_STRUCT_MEMBER(bool, modifiable) 93 IPC_STRUCT_MEMBER(bool, modifiable)
94
95 // The id of the preview request.
96 IPC_STRUCT_MEMBER(int, preview_request_id)
92 IPC_STRUCT_END() 97 IPC_STRUCT_END()
93 98
94 // Parameters to describe a rendered page. 99 // Parameters to describe a rendered page.
95 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params) 100 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params)
96 // A shared memory handle to the EMF data. This data can be quite large so a 101 // A shared memory handle to the EMF data. This data can be quite large so a
97 // memory map needs to be used. 102 // memory map needs to be used.
98 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) 103 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle)
99 104
100 // Size of the metafile data. 105 // Size of the metafile data.
101 IPC_STRUCT_MEMBER(uint32, data_size) 106 IPC_STRUCT_MEMBER(uint32, data_size)
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 254 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
250 int /* document cookie */) 255 int /* document cookie */)
251 256
252 // Tell the browser print preview failed. 257 // Tell the browser print preview failed.
253 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 258 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
254 int /* document cookie */) 259 int /* document cookie */)
255 260
256 // Tell the browser print preview was cancelled. 261 // Tell the browser print preview was cancelled.
257 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, 262 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled,
258 int /* document cookie */) 263 int /* document cookie */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698