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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/memory/shared_memory.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "base/shared_memory.h" | |
13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
14 #include "printing/page_size_margins.h" | 14 #include "printing/page_size_margins.h" |
15 #include "printing/print_job_constants.h" | 15 #include "printing/print_job_constants.h" |
16 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" | 16 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 | 19 |
20 #ifndef CHROME_COMMON_PRINT_MESSAGES_H_ | 20 #ifndef CHROME_COMMON_PRINT_MESSAGES_H_ |
21 #define CHROME_COMMON_PRINT_MESSAGES_H_ | 21 #define CHROME_COMMON_PRINT_MESSAGES_H_ |
22 | 22 |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 int /* document cookie */) | 434 int /* document cookie */) |
435 | 435 |
436 // Run a nested message loop in the renderer until print preview for | 436 // Run a nested message loop in the renderer until print preview for |
437 // window.print() finishes. | 437 // window.print() finishes. |
438 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, | 438 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, |
439 bool /* is_modifiable */) | 439 bool /* is_modifiable */) |
440 | 440 |
441 // Notify the browser that the PDF in the initiator renderer has disabled print | 441 // Notify the browser that the PDF in the initiator renderer has disabled print |
442 // scaling option. | 442 // scaling option. |
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |