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