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 "ipc/ipc_message_utils.h" | 8 #include "ipc/ipc_message_utils.h" |
9 #include "ipc/ipc_param_traits.h" | 9 #include "ipc/ipc_param_traits.h" |
10 #include "printing/printing_export.h" | 10 #include "printing/printing_export.h" |
11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
12 #include "ui/gfx/ipc/gfx_param_traits.h" | 12 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
13 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 13 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
14 | 14 |
15 namespace printing { | 15 namespace printing { |
16 | 16 |
17 // Defining PDF rendering settings. | 17 // Defining PDF rendering settings. |
18 class PdfRenderSettings { | 18 class PdfRenderSettings { |
19 public: | 19 public: |
20 PdfRenderSettings() {} | 20 PdfRenderSettings() {} |
21 PdfRenderSettings(gfx::Rect area, int dpi, bool autorotate) | 21 PdfRenderSettings(gfx::Rect area, int dpi, bool autorotate) |
22 : area_(area), dpi_(dpi), autorotate_(autorotate) {} | 22 : area_(area), dpi_(dpi), autorotate_(autorotate) {} |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 l->append(", "); | 56 l->append(", "); |
57 LogParam(p.dpi_, l); | 57 LogParam(p.dpi_, l); |
58 l->append(", "); | 58 l->append(", "); |
59 LogParam(p.autorotate_, l); | 59 LogParam(p.autorotate_, l); |
60 } | 60 } |
61 }; | 61 }; |
62 | 62 |
63 } // namespace IPC | 63 } // namespace IPC |
64 | 64 |
65 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ | 65 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ |
OLD | NEW |