OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 8 #include <stdint.h> |
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 "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "components/printing/common/printing_param_traits_macros.h" | 16 #include "components/printing/common/printing_param_traits_macros.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "printing/page_range.h" | 18 #include "printing/page_range.h" |
19 #include "printing/page_size_margins.h" | 19 #include "printing/page_size_margins.h" |
20 #include "printing/print_job_constants.h" | 20 #include "printing/print_job_constants.h" |
21 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" | 21 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" |
22 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
23 #include "ui/gfx/ipc/gfx_param_traits.h" | 23 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
24 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 24 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
27 // Force multiple inclusion of the param traits file to generate all methods. | 27 // Force multiple inclusion of the param traits file to generate all methods. |
28 #undef COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_ | 28 #undef COMPONENTS_PRINTING_COMMON_PRINTING_PARAM_TRAITS_MACROS_H_ |
29 | 29 |
30 #ifndef COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_ | 30 #ifndef COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_ |
31 #define COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_ | 31 #define COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_ |
32 | 32 |
33 struct PrintMsg_Print_Params { | 33 struct PrintMsg_Print_Params { |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 474 |
475 // Tell the browser to show the print preview, when the document is sufficiently | 475 // Tell the browser to show the print preview, when the document is sufficiently |
476 // loaded such that the renderer can determine whether it is modifiable or not. | 476 // loaded such that the renderer can determine whether it is modifiable or not. |
477 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 477 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
478 bool /* is_modifiable */) | 478 bool /* is_modifiable */) |
479 | 479 |
480 // Notify the browser to set print presets based on source PDF document. | 480 // Notify the browser to set print presets based on source PDF document. |
481 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 481 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
482 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 482 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
483 #endif // defined(ENABLE_PRINT_PREVIEW) | 483 #endif // defined(ENABLE_PRINT_PREVIEW) |
OLD | NEW |