| OLD | NEW |
| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 IPC_STRUCT_BEGIN(PrintHostMsg_DidGetPreviewPageCount_Params) | 196 IPC_STRUCT_BEGIN(PrintHostMsg_DidGetPreviewPageCount_Params) |
| 197 // Cookie for the document to ensure correctness. | 197 // Cookie for the document to ensure correctness. |
| 198 IPC_STRUCT_MEMBER(int, document_cookie) | 198 IPC_STRUCT_MEMBER(int, document_cookie) |
| 199 | 199 |
| 200 // Total page count. | 200 // Total page count. |
| 201 IPC_STRUCT_MEMBER(int, page_count) | 201 IPC_STRUCT_MEMBER(int, page_count) |
| 202 | 202 |
| 203 // Indicates whether the previewed document is modifiable. | 203 // Indicates whether the previewed document is modifiable. |
| 204 IPC_STRUCT_MEMBER(bool, is_modifiable) | 204 IPC_STRUCT_MEMBER(bool, is_modifiable) |
| 205 | 205 |
| 206 // Indicates whether the printing frame has page size style. |
| 207 IPC_STRUCT_MEMBER(bool, has_page_size_style) |
| 208 |
| 206 // The id of the preview request. | 209 // The id of the preview request. |
| 207 IPC_STRUCT_MEMBER(int, preview_request_id) | 210 IPC_STRUCT_MEMBER(int, preview_request_id) |
| 208 | 211 |
| 209 // Indicates whether the existing preview data needs to be cleared or not. | 212 // Indicates whether the existing preview data needs to be cleared or not. |
| 210 IPC_STRUCT_MEMBER(bool, clear_preview_data) | 213 IPC_STRUCT_MEMBER(bool, clear_preview_data) |
| 211 IPC_STRUCT_END() | 214 IPC_STRUCT_END() |
| 212 | 215 |
| 213 // Parameters to describe a rendered page. | 216 // Parameters to describe a rendered page. |
| 214 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params) | 217 IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params) |
| 215 // A shared memory handle to the EMF data. This data can be quite large so a | 218 // A shared memory handle to the EMF data. This data can be quite large so a |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 383 |
| 381 // Tell the browser print preview was cancelled. | 384 // Tell the browser print preview was cancelled. |
| 382 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, | 385 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
| 383 int /* document cookie */) | 386 int /* document cookie */) |
| 384 | 387 |
| 385 // Tell the browser print preview found the selected printer has invalid | 388 // Tell the browser print preview found the selected printer has invalid |
| 386 // settings (which typically caused by disconnected network printer or printer | 389 // settings (which typically caused by disconnected network printer or printer |
| 387 // driver is bogus). | 390 // driver is bogus). |
| 388 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, | 391 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, |
| 389 int /* document cookie */) | 392 int /* document cookie */) |
| OLD | NEW |