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

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

Issue 1697183002: Revert of Cleanup: Remove unused PrintSettings shrink factors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 24 matching lines...) Expand all
35 35
36 // Resets the members of the struct to 0. 36 // Resets the members of the struct to 0.
37 void Reset(); 37 void Reset();
38 38
39 gfx::Size page_size; 39 gfx::Size page_size;
40 gfx::Size content_size; 40 gfx::Size content_size;
41 gfx::Rect printable_area; 41 gfx::Rect printable_area;
42 int margin_top; 42 int margin_top;
43 int margin_left; 43 int margin_left;
44 double dpi; 44 double dpi;
45 double min_shrink;
46 double max_shrink;
45 int desired_dpi; 47 int desired_dpi;
46 int document_cookie; 48 int document_cookie;
47 bool selection_only; 49 bool selection_only;
48 bool supports_alpha_blend; 50 bool supports_alpha_blend;
49 int32_t preview_ui_id; 51 int32_t preview_ui_id;
50 int preview_request_id; 52 int preview_request_id;
51 bool is_first_request; 53 bool is_first_request;
52 blink::WebPrintScalingOption print_scaling_option; 54 blink::WebPrintScalingOption print_scaling_option;
53 bool print_to_pdf; 55 bool print_to_pdf;
54 bool display_header_footer; 56 bool display_header_footer;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 112
111 // The y-offset of the printable area, in pixels according to dpi. 113 // The y-offset of the printable area, in pixels according to dpi.
112 IPC_STRUCT_TRAITS_MEMBER(margin_top) 114 IPC_STRUCT_TRAITS_MEMBER(margin_top)
113 115
114 // The x-offset of the printable area, in pixels according to dpi. 116 // The x-offset of the printable area, in pixels according to dpi.
115 IPC_STRUCT_TRAITS_MEMBER(margin_left) 117 IPC_STRUCT_TRAITS_MEMBER(margin_left)
116 118
117 // Specifies dots per inch. 119 // Specifies dots per inch.
118 IPC_STRUCT_TRAITS_MEMBER(dpi) 120 IPC_STRUCT_TRAITS_MEMBER(dpi)
119 121
122 // Minimum shrink factor. See PrintSettings::min_shrink for more information.
123 IPC_STRUCT_TRAITS_MEMBER(min_shrink)
124
125 // Maximum shrink factor. See PrintSettings::max_shrink for more information.
126 IPC_STRUCT_TRAITS_MEMBER(max_shrink)
127
120 // Desired apparent dpi on paper. 128 // Desired apparent dpi on paper.
121 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) 129 IPC_STRUCT_TRAITS_MEMBER(desired_dpi)
122 130
123 // Cookie for the document to ensure correctness. 131 // Cookie for the document to ensure correctness.
124 IPC_STRUCT_TRAITS_MEMBER(document_cookie) 132 IPC_STRUCT_TRAITS_MEMBER(document_cookie)
125 133
126 // Should only print currently selected text. 134 // Should only print currently selected text.
127 IPC_STRUCT_TRAITS_MEMBER(selection_only) 135 IPC_STRUCT_TRAITS_MEMBER(selection_only)
128 136
129 // Does the printer support alpha blending? 137 // Does the printer support alpha blending?
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 479
472 // Tell the browser to show the print preview, when the document is sufficiently 480 // 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. 481 // loaded such that the renderer can determine whether it is modifiable or not.
474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, 482 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
475 bool /* is_modifiable */) 483 bool /* is_modifiable */)
476 484
477 // Notify the browser to set print presets based on source PDF document. 485 // Notify the browser to set print presets based on source PDF document.
478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, 486 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) 487 PrintHostMsg_SetOptionsFromDocument_Params /* params */)
480 #endif // defined(ENABLE_PRINT_PREVIEW) 488 #endif // defined(ENABLE_PRINT_PREVIEW)
OLDNEW
« no previous file with comments | « components/printing/browser/print_manager_utils.cc ('k') | components/printing/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698