OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_OVERLAYS_H_ | 5 #ifndef PRINTING_PAGE_OVERLAYS_H_ |
6 #define PRINTING_PAGE_OVERLAYS_H_ | 6 #define PRINTING_PAGE_OVERLAYS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace printing { | 10 namespace printing { |
(...skipping 13 matching lines...) Expand all Loading... |
24 RIGHT, | 24 RIGHT, |
25 }; | 25 }; |
26 | 26 |
27 // Position of the header/footer. | 27 // Position of the header/footer. |
28 enum VerticalPosition { | 28 enum VerticalPosition { |
29 TOP, | 29 TOP, |
30 BOTTOM, | 30 BOTTOM, |
31 }; | 31 }; |
32 | 32 |
33 PageOverlays(); | 33 PageOverlays(); |
| 34 ~PageOverlays(); |
34 | 35 |
35 // Equality operator. | 36 // Equality operator. |
36 bool Equals(const PageOverlays& rhs) const; | 37 bool Equals(const PageOverlays& rhs) const; |
37 | 38 |
38 // Returns the string of an overlay according to its x,y position. | 39 // Returns the string of an overlay according to its x,y position. |
39 const std::wstring& GetOverlay(HorizontalPosition x, | 40 const std::wstring& GetOverlay(HorizontalPosition x, |
40 VerticalPosition y) const; | 41 VerticalPosition y) const; |
41 | 42 |
42 // Sets the string of an overlay according to its x,y position. | 43 // Sets the string of an overlay according to its x,y position. |
43 void SetOverlay(HorizontalPosition x, | 44 void SetOverlay(HorizontalPosition x, |
(...skipping 28 matching lines...) Expand all Loading... |
72 std::wstring top_center; | 73 std::wstring top_center; |
73 std::wstring top_right; | 74 std::wstring top_right; |
74 std::wstring bottom_left; | 75 std::wstring bottom_left; |
75 std::wstring bottom_center; | 76 std::wstring bottom_center; |
76 std::wstring bottom_right; | 77 std::wstring bottom_right; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace printing | 80 } // namespace printing |
80 | 81 |
81 #endif // PRINTING_PAGE_OVERLAYS_H_ | 82 #endif // PRINTING_PAGE_OVERLAYS_H_ |
OLD | NEW |