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 <stdint.h> | 8 #include "build/build_config.h" |
9 | |
10 #include "ipc/ipc_message_macros.h" | |
11 #include "ipc/ipc_message_utils.h" | |
12 #include "ipc/ipc_param_traits.h" | |
13 #include "printing/printing_export.h" | |
14 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
15 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" | |
17 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | |
18 | 11 |
19 namespace printing { | 12 namespace printing { |
20 | 13 |
21 // Defining PDF rendering settings. | 14 // Defining PDF rendering settings. |
22 struct PdfRenderSettings { | 15 struct PdfRenderSettings { |
23 enum Mode { | 16 enum Mode { |
24 NORMAL = 0, | 17 NORMAL = 0, |
25 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
26 GDI_TEXT, | 19 GDI_TEXT, |
27 POSTSCRIPT_LEVEL2, | 20 POSTSCRIPT_LEVEL2, |
(...skipping 20 matching lines...) Expand all Loading... |
48 gfx::Rect area; | 41 gfx::Rect area; |
49 gfx::Point offsets; | 42 gfx::Point offsets; |
50 int dpi; | 43 int dpi; |
51 bool autorotate; | 44 bool autorotate; |
52 Mode mode; | 45 Mode mode; |
53 }; | 46 }; |
54 | 47 |
55 } // namespace printing | 48 } // namespace printing |
56 | 49 |
57 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ | 50 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ |
OLD | NEW |