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: chrome/common/print_messages.h

Issue 7647010: Print preview page selection should not require a rerendering of draft pages. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comment Created 9 years, 3 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 IPC_STRUCT_MEMBER(int, document_cookie) 195 IPC_STRUCT_MEMBER(int, document_cookie)
196 196
197 // Total page count. 197 // Total page count.
198 IPC_STRUCT_MEMBER(int, page_count) 198 IPC_STRUCT_MEMBER(int, page_count)
199 199
200 // Indicates whether the previewed document is modifiable. 200 // Indicates whether the previewed document is modifiable.
201 IPC_STRUCT_MEMBER(bool, is_modifiable) 201 IPC_STRUCT_MEMBER(bool, is_modifiable)
202 202
203 // The id of the preview request. 203 // The id of the preview request.
204 IPC_STRUCT_MEMBER(int, preview_request_id) 204 IPC_STRUCT_MEMBER(int, preview_request_id)
205
206 // Indicates whether the existing preview data needs to be cleared or not.
207 IPC_STRUCT_MEMBER(bool, clear_preview_data)
205 IPC_STRUCT_END() 208 IPC_STRUCT_END()
206 209
207 // Parameters to describe a rendered page. 210 // Parameters to describe a rendered page.
208 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params) 211 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params)
209 // A shared memory handle to the EMF data. This data can be quite large so a 212 // A shared memory handle to the EMF data. This data can be quite large so a
210 // memory map needs to be used. 213 // memory map needs to be used.
211 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) 214 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle)
212 215
213 // Size of the metafile data. 216 // Size of the metafile data.
214 IPC_STRUCT_MEMBER(uint32, data_size) 217 IPC_STRUCT_MEMBER(uint32, data_size)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 361
359 // Asks the browser whether the print preview has been cancelled. 362 // Asks the browser whether the print preview has been cancelled.
360 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel, 363 IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
361 std::string /* print preview ui address */, 364 std::string /* print preview ui address */,
362 int /* request id */, 365 int /* request id */,
363 bool /* print preview cancelled */) 366 bool /* print preview cancelled */)
364 367
365 // Sends back to the browser the complete rendered document for print preview 368 // Sends back to the browser the complete rendered document for print preview
366 // that was requested by a PrintMsg_PrintPreview message. The memory handle in 369 // that was requested by a PrintMsg_PrintPreview message. The memory handle in
367 // this message is already valid in the browser process. 370 // this message is already valid in the browser process.
368 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, 371 IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting,
369 PrintHostMsg_DidPreviewDocument_Params /* params */) 372 PrintHostMsg_DidPreviewDocument_Params /* params */)
370 373
371 // Tell the browser printing failed. 374 // Tell the browser printing failed.
372 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, 375 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
373 int /* document cookie */) 376 int /* document cookie */)
374 377
375 // Tell the browser print preview failed. 378 // Tell the browser print preview failed.
376 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, 379 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
377 int /* document cookie */) 380 int /* document cookie */)
378 381
379 // Tell the browser print preview was cancelled. 382 // Tell the browser print preview was cancelled.
380 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, 383 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled,
381 int /* document cookie */) 384 int /* document cookie */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698