Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BITMAP_TRANSFORM_SETTINGS_H_ | 5 #ifndef PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ |
| 6 #define PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ | 6 #define PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/tuple.h" | |
| 9 #include "ipc/ipc_param_traits.h" | 8 #include "ipc/ipc_param_traits.h" |
|
Nico
2014/12/09 06:16:50
this is unused too
tzik
2014/12/09 09:26:55
Done.
| |
| 10 #include "printing/printing_export.h" | 9 #include "printing/printing_export.h" |
|
Nico
2014/12/09 06:16:50
this is unused too
tzik
2014/12/09 09:26:55
Done.
| |
| 11 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
|
Nico
2014/12/09 06:16:50
this is unused too
tzik
2014/12/09 09:26:55
Done.
| |
| 12 | 11 |
| 13 namespace printing { | 12 namespace printing { |
| 14 | 13 |
| 15 enum PwgRasterTransformType { | 14 enum PwgRasterTransformType { |
| 16 TRANSFORM_NORMAL, | 15 TRANSFORM_NORMAL, |
| 17 TRANSFORM_ROTATE_180, | 16 TRANSFORM_ROTATE_180, |
| 18 TRANSFORM_FLIP_HORIZONTAL, | 17 TRANSFORM_FLIP_HORIZONTAL, |
| 19 TRANSFORM_FLIP_VERTICAL, | 18 TRANSFORM_FLIP_VERTICAL, |
| 20 TRANSFORM_TYPE_LAST = TRANSFORM_FLIP_VERTICAL | 19 TRANSFORM_TYPE_LAST = TRANSFORM_FLIP_VERTICAL |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 struct PwgRasterSettings { | 22 struct PwgRasterSettings { |
| 24 // How to transform odd-numbered pages. | 23 // How to transform odd-numbered pages. |
| 25 PwgRasterTransformType odd_page_transform; | 24 PwgRasterTransformType odd_page_transform; |
| 26 // Rotate all pages (on top of odd-numbered page transform). | 25 // Rotate all pages (on top of odd-numbered page transform). |
| 27 bool rotate_all_pages; | 26 bool rotate_all_pages; |
| 28 // Rasterize pages in reverse order. | 27 // Rasterize pages in reverse order. |
| 29 bool reverse_page_order; | 28 bool reverse_page_order; |
| 30 }; | 29 }; |
| 31 | 30 |
| 32 } // namespace printing | 31 } // namespace printing |
| 33 | 32 |
| 34 #endif // PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ | 33 #endif // PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ |
| OLD | NEW |