Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: components/printing/common/print_messages.h

Issue 811563008: Moving files from //chrome to //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fix Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/memory/shared_memory.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "printing/page_range.h" 14 #include "printing/page_range.h"
15 #include "printing/page_size_margins.h" 15 #include "printing/page_size_margins.h"
16 #include "printing/print_job_constants.h" 16 #include "printing/print_job_constants.h"
17 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" 17 #include "third_party/WebKit/public/web/WebPrintScalingOption.h"
18 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/ipc/gfx_param_traits.h" 19 #include "ui/gfx/ipc/gfx_param_traits.h"
20 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
21 21
22 #ifndef CHROME_COMMON_PRINT_MESSAGES_H_ 22 #ifndef COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_
23 #define CHROME_COMMON_PRINT_MESSAGES_H_ 23 #define COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_
24 24
25 struct PrintMsg_Print_Params { 25 struct PrintMsg_Print_Params {
26 PrintMsg_Print_Params(); 26 PrintMsg_Print_Params();
27 ~PrintMsg_Print_Params(); 27 ~PrintMsg_Print_Params();
28 28
29 // Resets the members of the struct to 0. 29 // Resets the members of the struct to 0.
30 void Reset(); 30 void Reset();
31 31
32 gfx::Size page_size; 32 gfx::Size page_size;
33 gfx::Size content_size; 33 gfx::Size content_size;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 struct PrintHostMsg_SetOptionsFromDocument_Params { 75 struct PrintHostMsg_SetOptionsFromDocument_Params {
76 PrintHostMsg_SetOptionsFromDocument_Params(); 76 PrintHostMsg_SetOptionsFromDocument_Params();
77 ~PrintHostMsg_SetOptionsFromDocument_Params(); 77 ~PrintHostMsg_SetOptionsFromDocument_Params();
78 78
79 bool is_scaling_disabled; 79 bool is_scaling_disabled;
80 int copies; 80 int copies;
81 printing::DuplexMode duplex; 81 printing::DuplexMode duplex;
82 printing::PageRanges page_ranges; 82 printing::PageRanges page_ranges;
83 }; 83 };
84 84
85 #endif // CHROME_COMMON_PRINT_MESSAGES_H_ 85 #endif // COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_
86 86
87 #define IPC_MESSAGE_START PrintMsgStart 87 #define IPC_MESSAGE_START PrintMsgStart
88 88
89 IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType, 89 IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
90 printing::MARGIN_TYPE_LAST) 90 printing::MARGIN_TYPE_LAST)
91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPrintScalingOption, 91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPrintScalingOption,
92 blink::WebPrintScalingOptionLast) 92 blink::WebPrintScalingOptionLast)
93 IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode, 93 IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
94 printing::UNKNOWN_DUPLEX_MODE, 94 printing::UNKNOWN_DUPLEX_MODE,
95 printing::SHORT_EDGE) 95 printing::SHORT_EDGE)
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) 470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview)
471 471
472 // Tell the browser to show the print preview, when the document is sufficiently 472 // Tell the browser to show the print preview, when the document is sufficiently
473 // loaded such that the renderer can determine whether it is modifiable or not. 473 // loaded such that the renderer can determine whether it is modifiable or not.
474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
475 bool /* is_modifiable */) 475 bool /* is_modifiable */)
476 476
477 // Notify the browser to set print presets based on source PDF document. 477 // Notify the browser to set print presets based on source PDF document.
478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 479 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698