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

Side by Side Diff: printing/page_setup.h

Issue 7799003: Add printing.dll to the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « printing/page_range.h ('k') | printing/pdf_metafile_cairo_linux.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 #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 "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
9 10
10 namespace printing { 11 namespace printing {
11 12
12 // Margins for a page setup. 13 // Margins for a page setup.
13 class PageMargins { 14 class PRINTING_EXPORT PageMargins {
14 public: 15 public:
15 PageMargins(); 16 PageMargins();
16 17
17 void Clear(); 18 void Clear();
18 19
19 // Equality operator. 20 // Equality operator.
20 bool Equals(const PageMargins& rhs) const; 21 bool Equals(const PageMargins& rhs) const;
21 22
22 // Vertical space for the overlay from the top of the sheet. 23 // Vertical space for the overlay from the top of the sheet.
23 int header; 24 int header;
24 // Vertical space for the overlay from the bottom of the sheet. 25 // Vertical space for the overlay from the bottom of the sheet.
25 int footer; 26 int footer;
26 // Margin on each side of the sheet. 27 // Margin on each side of the sheet.
27 int left; 28 int left;
28 int right; 29 int right;
29 int top; 30 int top;
30 int bottom; 31 int bottom;
31 }; 32 };
32 33
33 // 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
34 // unspecified. 35 // unspecified.
35 class PageSetup { 36 class PRINTING_EXPORT PageSetup {
36 public: 37 public:
37 PageSetup(); 38 PageSetup();
38 ~PageSetup(); 39 ~PageSetup();
39 40
40 void Clear(); 41 void Clear();
41 42
42 // Equality operator. 43 // Equality operator.
43 bool Equals(const PageSetup& rhs) const; 44 bool Equals(const PageSetup& rhs) const;
44 45
45 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area, 46 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Requested margins. 79 // Requested margins.
79 PageMargins requested_margins_; 80 PageMargins requested_margins_;
80 81
81 // Space that must be kept free for the overlays. 82 // Space that must be kept free for the overlays.
82 int text_height_; 83 int text_height_;
83 }; 84 };
84 85
85 } // namespace printing 86 } // namespace printing
86 87
87 #endif // PRINTING_PAGE_SETUP_H_ 88 #endif // PRINTING_PAGE_SETUP_H_
OLDNEW
« no previous file with comments | « printing/page_range.h ('k') | printing/pdf_metafile_cairo_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698