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

Side by Side Diff: chrome/common/print_messages.h

Issue 8784012: Cleanup: Rename PrintMsg_Print_Params struct member variable (printable_size => content_size). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/common/print_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/values.h" 11 #include "base/values.h"
12 #include "base/shared_memory.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 "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 18
19 #ifndef CHROME_COMMON_PRINT_MESSAGES_H_ 19 #ifndef CHROME_COMMON_PRINT_MESSAGES_H_
20 #define CHROME_COMMON_PRINT_MESSAGES_H_ 20 #define CHROME_COMMON_PRINT_MESSAGES_H_
21 21
22 struct PrintMsg_Print_Params { 22 struct PrintMsg_Print_Params {
23 PrintMsg_Print_Params(); 23 PrintMsg_Print_Params();
24 ~PrintMsg_Print_Params(); 24 ~PrintMsg_Print_Params();
25 25
26 // Resets the members of the struct to 0. 26 // Resets the members of the struct to 0.
27 void Reset(); 27 void Reset();
28 28
29 gfx::Size page_size; 29 gfx::Size page_size;
30 gfx::Size printable_size; 30 gfx::Size content_size;
31 int margin_top; 31 int margin_top;
32 int margin_left; 32 int margin_left;
33 double dpi; 33 double dpi;
34 double min_shrink; 34 double min_shrink;
35 double max_shrink; 35 double max_shrink;
36 int desired_dpi; 36 int desired_dpi;
37 int document_cookie; 37 int document_cookie;
38 bool selection_only; 38 bool selection_only;
39 bool supports_alpha_blend; 39 bool supports_alpha_blend;
40 std::string preview_ui_addr; 40 std::string preview_ui_addr;
(...skipping 22 matching lines...) Expand all
63 63
64 IPC_ENUM_TRAITS(printing::MarginType) 64 IPC_ENUM_TRAITS(printing::MarginType)
65 65
66 // Parameters for a render request. 66 // Parameters for a render request.
67 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) 67 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
68 // Physical size of the page, including non-printable margins, 68 // Physical size of the page, including non-printable margins,
69 // in pixels according to dpi. 69 // in pixels according to dpi.
70 IPC_STRUCT_TRAITS_MEMBER(page_size) 70 IPC_STRUCT_TRAITS_MEMBER(page_size)
71 71
72 // In pixels according to dpi_x and dpi_y. 72 // In pixels according to dpi_x and dpi_y.
73 IPC_STRUCT_TRAITS_MEMBER(printable_size) 73 IPC_STRUCT_TRAITS_MEMBER(content_size)
74 74
75 // The y-offset of the printable area, in pixels according to dpi. 75 // The y-offset of the printable area, in pixels according to dpi.
76 IPC_STRUCT_TRAITS_MEMBER(margin_top) 76 IPC_STRUCT_TRAITS_MEMBER(margin_top)
77 77
78 // The x-offset of the printable area, in pixels according to dpi. 78 // The x-offset of the printable area, in pixels according to dpi.
79 IPC_STRUCT_TRAITS_MEMBER(margin_left) 79 IPC_STRUCT_TRAITS_MEMBER(margin_left)
80 80
81 // Specifies dots per inch. 81 // Specifies dots per inch.
82 IPC_STRUCT_TRAITS_MEMBER(dpi) 82 IPC_STRUCT_TRAITS_MEMBER(dpi)
83 83
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // Tell the browser print preview found the selected printer has invalid 385 // Tell the browser print preview found the selected printer has invalid
386 // settings (which typically caused by disconnected network printer or printer 386 // settings (which typically caused by disconnected network printer or printer
387 // driver is bogus). 387 // driver is bogus).
388 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 388 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
389 int /* document cookie */) 389 int /* document cookie */)
390 390
391 // Run a nested message loop in the renderer until print preview for 391 // Run a nested message loop in the renderer until print preview for
392 // window.print() finishes. 392 // window.print() finishes.
393 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 393 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
394 bool /* is_modifiable */) 394 bool /* is_modifiable */)
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/common/print_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698