OLD | NEW |
---|---|
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_SIZE_MARGINS_H_ | 5 #ifndef PRINTING_PAGE_SIZE_MARGINS_H_ |
6 #define PRINTING_PAGE_SIZE_MARGINS_H_ | 6 #define PRINTING_PAGE_SIZE_MARGINS_H_ |
7 | 7 |
8 namespace base { | |
9 class DictionaryValue; | |
10 } | |
11 | |
8 namespace printing { | 12 namespace printing { |
9 | 13 |
10 // Struct that holds margin and content area sizes of a page. Units are | 14 // Struct that holds margin and content area sizes of a page. Units are |
11 // arbitrary and can be chosen by the programmer. | 15 // arbitrary and can be chosen by the programmer. |
12 struct PageSizeMargins { | 16 struct PageSizeMargins { |
13 double content_width; | 17 double content_width; |
14 double content_height; | 18 double content_height; |
15 double margin_top; | 19 double margin_top; |
16 double margin_right; | 20 double margin_right; |
17 double margin_bottom; | 21 double margin_bottom; |
18 double margin_left; | 22 double margin_left; |
19 }; | 23 }; |
20 | 24 |
25 void extractPageSizeMargins(const base::DictionaryValue& settings, | |
vandebo (ex-Chrome)
2011/11/02 22:36:54
getCustomMarginsFromJobSettings?
dpapad
2011/11/03 00:15:27
Done.
| |
26 PageSizeMargins* page_size_margins); | |
27 | |
21 } // namespace printing | 28 } // namespace printing |
22 | 29 |
23 #endif // PRINTING_PAGE_SIZE_MARGINS_H_ | 30 #endif // PRINTING_PAGE_SIZE_MARGINS_H_ |
24 | |
OLD | NEW |