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.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "printing/features/features.h" | 18 #include "printing/features/features.h" |
19 #include "printing/page_range.h" | 19 #include "printing/page_range.h" |
20 #include "printing/page_size_margins.h" | 20 #include "printing/page_size_margins.h" |
21 #include "printing/print_job_constants.h" | 21 #include "printing/print_job_constants.h" |
22 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" | 22 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" |
23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" | 24 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
25 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 25 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
26 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 478 |
479 // Tell the browser to show the print preview, when the document is sufficiently | 479 // Tell the browser to show the print preview, when the document is sufficiently |
480 // loaded such that the renderer can determine whether it is modifiable or not. | 480 // loaded such that the renderer can determine whether it is modifiable or not. |
481 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 481 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
482 bool /* is_modifiable */) | 482 bool /* is_modifiable */) |
483 | 483 |
484 // Notify the browser to set print presets based on source PDF document. | 484 // Notify the browser to set print presets based on source PDF document. |
485 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 485 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
486 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 486 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
487 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 487 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
OLD | NEW |