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_PDF_RENDER_SETTINGS_H_ | 5 #ifndef PRINTING_PDF_RENDER_SETTINGS_H_ |
6 #define PRINTING_PDF_RENDER_SETTINGS_H_ | 6 #define PRINTING_PDF_RENDER_SETTINGS_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
11 | 11 |
12 namespace printing { | 12 namespace printing { |
13 | 13 |
14 // Defining PDF rendering settings. | 14 // Defining PDF rendering settings. |
15 struct PdfRenderSettings { | 15 struct PdfRenderSettings { |
16 enum Mode { | 16 enum Mode { |
17 NORMAL = 0, | 17 NORMAL = 0, |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 19 TEXTONLY, |
19 GDI_TEXT, | 20 GDI_TEXT, |
20 POSTSCRIPT_LEVEL2, | 21 POSTSCRIPT_LEVEL2, |
21 POSTSCRIPT_LEVEL3, | 22 POSTSCRIPT_LEVEL3, |
22 LAST = POSTSCRIPT_LEVEL3, | 23 LAST = POSTSCRIPT_LEVEL3, |
23 #else | 24 #else |
24 LAST = NORMAL, | 25 LAST = NORMAL, |
25 #endif | 26 #endif |
26 }; | 27 }; |
27 | 28 |
28 PdfRenderSettings() : dpi(0), autorotate(false), mode(Mode::NORMAL) {} | 29 PdfRenderSettings() : dpi(0), autorotate(false), mode(Mode::NORMAL) {} |
(...skipping 12 matching lines...) Expand all Loading... |
41 gfx::Rect area; | 42 gfx::Rect area; |
42 gfx::Point offsets; | 43 gfx::Point offsets; |
43 int dpi; | 44 int dpi; |
44 bool autorotate; | 45 bool autorotate; |
45 Mode mode; | 46 Mode mode; |
46 }; | 47 }; |
47 | 48 |
48 } // namespace printing | 49 } // namespace printing |
49 | 50 |
50 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ | 51 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ |
OLD | NEW |