pwg_raster_settings.h 957 B

1234567891011121314151617181920212223242526272829303132333435
  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
  3. // found in the LICENSE file.
  4. #ifndef PRINTING_PWG_RASTER_SETTINGS_H_
  5. #define PRINTING_PWG_RASTER_SETTINGS_H_
  6. #include "printing/mojom/print.mojom.h"
  7. #include "printing/print_job_constants.h"
  8. namespace printing {
  9. enum PwgRasterTransformType {
  10. TRANSFORM_NORMAL,
  11. TRANSFORM_ROTATE_180,
  12. TRANSFORM_FLIP_HORIZONTAL,
  13. TRANSFORM_FLIP_VERTICAL,
  14. TRANSFORM_TYPE_LAST = TRANSFORM_FLIP_VERTICAL
  15. };
  16. struct PwgRasterSettings {
  17. mojom::DuplexMode duplex_mode;
  18. // How to transform odd-numbered pages.
  19. PwgRasterTransformType odd_page_transform;
  20. // Rotate all pages (on top of odd-numbered page transform).
  21. bool rotate_all_pages;
  22. // Rasterize pages in reverse order.
  23. bool reverse_page_order;
  24. // Rasterize pages in color.
  25. bool use_color;
  26. };
  27. } // namespace printing
  28. #endif // PRINTING_PWG_RASTER_SETTINGS_H_