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

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

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/common/print_messages.h ('k') | chrome/renderer/mock_printer.h » ('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 #include "chrome/common/print_messages.h" 5 #include "chrome/common/print_messages.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "ui/gfx/size.h" 9 #include "ui/gfx/size.h"
10 10
11 PrintMsg_Print_Params::PrintMsg_Print_Params() 11 PrintMsg_Print_Params::PrintMsg_Print_Params()
12 : page_size(), 12 : page_size(),
13 printable_size(), 13 content_size(),
14 margin_top(0), 14 margin_top(0),
15 margin_left(0), 15 margin_left(0),
16 dpi(0), 16 dpi(0),
17 min_shrink(0), 17 min_shrink(0),
18 max_shrink(0), 18 max_shrink(0),
19 desired_dpi(0), 19 desired_dpi(0),
20 document_cookie(0), 20 document_cookie(0),
21 selection_only(false), 21 selection_only(false),
22 supports_alpha_blend(false), 22 supports_alpha_blend(false),
23 preview_ui_addr(), 23 preview_ui_addr(),
24 preview_request_id(0), 24 preview_request_id(0),
25 is_first_request(false), 25 is_first_request(false),
26 display_header_footer(false), 26 display_header_footer(false),
27 date(), 27 date(),
28 title(), 28 title(),
29 url() { 29 url() {
30 } 30 }
31 31
32 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} 32 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
33 33
34 void PrintMsg_Print_Params::Reset() { 34 void PrintMsg_Print_Params::Reset() {
35 page_size = gfx::Size(); 35 page_size = gfx::Size();
36 printable_size = gfx::Size(); 36 content_size = gfx::Size();
37 margin_top = 0; 37 margin_top = 0;
38 margin_left = 0; 38 margin_left = 0;
39 dpi = 0; 39 dpi = 0;
40 min_shrink = 0; 40 min_shrink = 0;
41 max_shrink = 0; 41 max_shrink = 0;
42 desired_dpi = 0; 42 desired_dpi = 0;
43 document_cookie = 0; 43 document_cookie = 0;
44 selection_only = false; 44 selection_only = false;
45 supports_alpha_blend = false; 45 supports_alpha_blend = false;
46 preview_ui_addr = std::string(); 46 preview_ui_addr = std::string();
47 preview_request_id = 0; 47 preview_request_id = 0;
48 is_first_request = false; 48 is_first_request = false;
49 display_header_footer = false; 49 display_header_footer = false;
50 date = string16(); 50 date = string16();
51 title = string16(); 51 title = string16();
52 url = string16(); 52 url = string16();
53 } 53 }
54 54
55 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() 55 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
56 : pages() { 56 : pages() {
57 } 57 }
58 58
59 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} 59 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
60 60
61 void PrintMsg_PrintPages_Params::Reset() { 61 void PrintMsg_PrintPages_Params::Reset() {
62 params.Reset(); 62 params.Reset();
63 pages = std::vector<int>(); 63 pages = std::vector<int>();
64 } 64 }
OLDNEW
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/mock_printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698