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 #include "base/strings/string16.h" | 5 #include "base/strings/string16.h" |
6 #include "ui/gfx/geometry/size.h" | 6 #include "ui/gfx/geometry/size.h" |
7 | 7 |
8 #define IPC_MESSAGE_IMPL | 8 #define IPC_MESSAGE_IMPL |
9 #include "components/printing/common/print_messages.h" | 9 #include "components/printing/common/print_messages.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "components/printing/common/print_messages.h" | 34 #include "components/printing/common/print_messages.h" |
35 } // namespace IPC | 35 } // namespace IPC |
36 | 36 |
37 PrintMsg_Print_Params::PrintMsg_Print_Params() | 37 PrintMsg_Print_Params::PrintMsg_Print_Params() |
38 : page_size(), | 38 : page_size(), |
39 content_size(), | 39 content_size(), |
40 printable_area(), | 40 printable_area(), |
41 margin_top(0), | 41 margin_top(0), |
42 margin_left(0), | 42 margin_left(0), |
43 dpi(0), | 43 dpi(0), |
| 44 min_shrink(0), |
| 45 max_shrink(0), |
44 desired_dpi(0), | 46 desired_dpi(0), |
45 document_cookie(0), | 47 document_cookie(0), |
46 selection_only(false), | 48 selection_only(false), |
47 supports_alpha_blend(false), | 49 supports_alpha_blend(false), |
48 preview_ui_id(-1), | 50 preview_ui_id(-1), |
49 preview_request_id(0), | 51 preview_request_id(0), |
50 is_first_request(false), | 52 is_first_request(false), |
51 print_scaling_option(blink::WebPrintScalingOptionSourceSize), | 53 print_scaling_option(blink::WebPrintScalingOptionSourceSize), |
52 print_to_pdf(false), | 54 print_to_pdf(false), |
53 display_header_footer(false), | 55 display_header_footer(false), |
54 title(), | 56 title(), |
55 url(), | 57 url(), |
56 should_print_backgrounds(false) { | 58 should_print_backgrounds(false) { |
57 } | 59 } |
58 | 60 |
59 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 61 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
60 | 62 |
61 void PrintMsg_Print_Params::Reset() { | 63 void PrintMsg_Print_Params::Reset() { |
62 page_size = gfx::Size(); | 64 page_size = gfx::Size(); |
63 content_size = gfx::Size(); | 65 content_size = gfx::Size(); |
64 printable_area = gfx::Rect(); | 66 printable_area = gfx::Rect(); |
65 margin_top = 0; | 67 margin_top = 0; |
66 margin_left = 0; | 68 margin_left = 0; |
67 dpi = 0; | 69 dpi = 0; |
| 70 min_shrink = 0; |
| 71 max_shrink = 0; |
68 desired_dpi = 0; | 72 desired_dpi = 0; |
69 document_cookie = 0; | 73 document_cookie = 0; |
70 selection_only = false; | 74 selection_only = false; |
71 supports_alpha_blend = false; | 75 supports_alpha_blend = false; |
72 preview_ui_id = -1; | 76 preview_ui_id = -1; |
73 preview_request_id = 0; | 77 preview_request_id = 0; |
74 is_first_request = false; | 78 is_first_request = false; |
75 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | 79 print_scaling_option = blink::WebPrintScalingOptionSourceSize; |
76 print_to_pdf = false; | 80 print_to_pdf = false; |
77 display_header_footer = false; | 81 display_header_footer = false; |
(...skipping 29 matching lines...) Expand all Loading... |
107 PrintHostMsg_SetOptionsFromDocument_Params() | 111 PrintHostMsg_SetOptionsFromDocument_Params() |
108 : is_scaling_disabled(false), | 112 : is_scaling_disabled(false), |
109 copies(0), | 113 copies(0), |
110 duplex(printing::UNKNOWN_DUPLEX_MODE) { | 114 duplex(printing::UNKNOWN_DUPLEX_MODE) { |
111 } | 115 } |
112 | 116 |
113 PrintHostMsg_SetOptionsFromDocument_Params:: | 117 PrintHostMsg_SetOptionsFromDocument_Params:: |
114 ~PrintHostMsg_SetOptionsFromDocument_Params() { | 118 ~PrintHostMsg_SetOptionsFromDocument_Params() { |
115 } | 119 } |
116 #endif // defined(ENABLE_PRINT_PREVIEW) | 120 #endif // defined(ENABLE_PRINT_PREVIEW) |
OLD | NEW |