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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 #include "printing/page_size_margins.h" | 16 #include "printing/page_size_margins.h" |
17 #include "printing/print_job_constants.h" | 17 #include "printing/print_job_constants.h" |
18 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" | 18 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" |
| 19 #include "ui/gfx/ipc/gfx_param_traits.h" |
19 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
20 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/rect.h" |
21 | 22 |
22 #ifndef AW_COMMON_PRINT_MESSAGES_H_ | 23 #ifndef AW_COMMON_PRINT_MESSAGES_H_ |
23 #define AW_COMMON_PRINT_MESSAGES_H_ | 24 #define AW_COMMON_PRINT_MESSAGES_H_ |
24 | 25 |
25 struct PrintMsg_Print_Params { | 26 struct PrintMsg_Print_Params { |
26 PrintMsg_Print_Params(); | 27 PrintMsg_Print_Params(); |
27 ~PrintMsg_Print_Params(); | 28 ~PrintMsg_Print_Params(); |
28 | 29 |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
435 | 436 |
436 // Tell the browser to show the print preview, when the document is sufficiently | 437 // Tell the browser to show the print preview, when the document is sufficiently |
437 // loaded such that the renderer can determine whether it is modifiable or not. | 438 // loaded such that the renderer can determine whether it is modifiable or not. |
438 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
439 bool /* is_modifiable */) | 440 bool /* is_modifiable */) |
440 | 441 |
441 // Notify the browser that the PDF in the initiator renderer has disabled print | 442 // Notify the browser that the PDF in the initiator renderer has disabled print |
442 // scaling option. | 443 // scaling option. |
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |