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

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

Issue 7693017: Removed use of memset with PrintMsg_Print_Params struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as per Kausalya's comments Created 9 years, 4 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 | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/print_messages.h"
6
7 #include "base/basictypes.h"
8 #include "base/string16.h"
9 #include "ui/gfx/size.h"
10
11 PrintMsg_Print_Params::PrintMsg_Print_Params()
12 : page_size(),
13 printable_size(),
14 margin_top(0),
15 margin_left(0),
16 dpi(0),
17 min_shrink(0),
18 max_shrink(0),
19 desired_dpi(0),
20 document_cookie(0),
21 selection_only(0),
22 supports_alpha_blend(0),
23 preview_request_id(0),
24 is_first_request(0),
25 display_header_footer(0),
26 date(),
27 title(),
28 url() {
29 }
30
31 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
32
33 void PrintMsg_Print_Params::Reset() {
34 dpi = 0;
35 max_shrink = 0;
36 min_shrink = 0;
37 desired_dpi = 0;
38 selection_only = 0;
39 document_cookie = 0;
40 page_size = gfx::Size();
41 page_size = gfx::Size();
42 printable_size = gfx::Size();
43 margin_left = 0;
44 margin_top = 0;
45 is_first_request = 0;
46 preview_request_id = 0;
47 display_header_footer = 0;
48 date = string16();
49 title = string16();
50 url = string16();
51 }
52
53 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
54 : pages() {
55 }
56
57 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
58
59 void PrintMsg_PrintPages_Params::Reset() {
60 params.Reset();
61 pages = std::vector<int>();
62 }
63
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