Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 | 8 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 bool is_modifiable; | 70 bool is_modifiable; |
| 71 bool webnode_only; | 71 bool webnode_only; |
| 72 bool has_selection; | 72 bool has_selection; |
| 73 bool selection_only; | 73 bool selection_only; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // AW_COMMON_PRINT_MESSAGES_H_ | 76 #endif // AW_COMMON_PRINT_MESSAGES_H_ |
| 77 | 77 |
| 78 #define IPC_MESSAGE_START PrintMsgStart | 78 #define IPC_MESSAGE_START PrintMsgStart |
| 79 | 79 |
| 80 IPC_ENUM_TRAITS(printing::MarginType) | 80 IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType, |
| 81 IPC_ENUM_TRAITS(blink::WebPrintScalingOption) | 81 printing::iMarginType::MARGIN_TYPE_LAST) |
| 82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPrintScalingOption, | |
| 83 blink::WebPrintScalingOption::WebPrintScalingOptionLast) | |
|
nasko
2014/09/26 05:19:27
Please format per the style guide or use clang-for
MRV
2014/09/26 05:22:50
Dear Mr.nasko, thanks for your feedback.
I have ma
| |
| 82 | 84 |
| 83 // Parameters for a render request. | 85 // Parameters for a render request. |
| 84 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) | 86 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) |
| 85 // Physical size of the page, including non-printable margins, | 87 // Physical size of the page, including non-printable margins, |
| 86 // in pixels according to dpi. | 88 // in pixels according to dpi. |
| 87 IPC_STRUCT_TRAITS_MEMBER(page_size) | 89 IPC_STRUCT_TRAITS_MEMBER(page_size) |
| 88 | 90 |
| 89 // In pixels according to dpi_x and dpi_y. | 91 // In pixels according to dpi_x and dpi_y. |
| 90 IPC_STRUCT_TRAITS_MEMBER(content_size) | 92 IPC_STRUCT_TRAITS_MEMBER(content_size) |
| 91 | 93 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 437 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
| 436 | 438 |
| 437 // Tell the browser to show the print preview, when the document is sufficiently | 439 // Tell the browser to show the print preview, when the document is sufficiently |
| 438 // loaded such that the renderer can determine whether it is modifiable or not. | 440 // loaded such that the renderer can determine whether it is modifiable or not. |
| 439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 441 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 440 bool /* is_modifiable */) | 442 bool /* is_modifiable */) |
| 441 | 443 |
| 442 // Notify the browser that the PDF in the initiator renderer has disabled print | 444 // Notify the browser that the PDF in the initiator renderer has disabled print |
| 443 // scaling option. | 445 // scaling option. |
| 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 446 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
| OLD | NEW |