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

Side by Side Diff: printing/page_setup.h

Issue 1731423002: printing: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « printing/backend/print_backend.cc ('k') | printing/page_setup.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 #ifndef PRINTING_PAGE_SETUP_H_ 5 #ifndef PRINTING_PAGE_SETUP_H_
6 #define PRINTING_PAGE_SETUP_H_ 6 #define PRINTING_PAGE_SETUP_H_
7 7
8 #include "printing/printing_export.h" 8 #include "printing/printing_export.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 10
(...skipping 18 matching lines...) Expand all
29 int right; 29 int right;
30 int top; 30 int top;
31 int bottom; 31 int bottom;
32 }; 32 };
33 33
34 // Settings that define the size and printable areas of a page. Unit is 34 // Settings that define the size and printable areas of a page. Unit is
35 // unspecified. 35 // unspecified.
36 class PRINTING_EXPORT PageSetup { 36 class PRINTING_EXPORT PageSetup {
37 public: 37 public:
38 PageSetup(); 38 PageSetup();
39 PageSetup(const PageSetup& other);
39 ~PageSetup(); 40 ~PageSetup();
40 41
41 void Clear(); 42 void Clear();
42 43
43 // Equality operator. 44 // Equality operator.
44 bool Equals(const PageSetup& rhs) const; 45 bool Equals(const PageSetup& rhs) const;
45 46
46 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area, 47 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area,
47 int text_height); 48 int text_height);
48 49
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // True when |effective_margins_| respects |printable_area_| else false. 95 // True when |effective_margins_| respects |printable_area_| else false.
95 bool forced_margins_; 96 bool forced_margins_;
96 97
97 // Space that must be kept free for the overlays. 98 // Space that must be kept free for the overlays.
98 int text_height_; 99 int text_height_;
99 }; 100 };
100 101
101 } // namespace printing 102 } // namespace printing
102 103
103 #endif // PRINTING_PAGE_SETUP_H_ 104 #endif // PRINTING_PAGE_SETUP_H_
OLDNEW
« no previous file with comments | « printing/backend/print_backend.cc ('k') | printing/page_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698