Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: printing/pwg_raster_settings.h

Issue 635253002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 8 #include "base/tuple.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/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace printing { 13 namespace printing {
14 14
15 enum PwgRasterTransformType { 15 enum PwgRasterTransformType {
16 TRANSFORM_NORMAL, 16 TRANSFORM_NORMAL,
17 TRANSFORM_ROTATE_180, 17 TRANSFORM_ROTATE_180,
18 TRANSFORM_FLIP_HORIZONTAL, 18 TRANSFORM_FLIP_HORIZONTAL,
19 TRANSFORM_FLIP_VERTICAL 19 TRANSFORM_FLIP_VERTICAL,
20 PWG_RASTER_TRANSFORM_TYPE_LAST = TRANSFORM_FLIP_VERTICAL
Vitaly Buka (NO REVIEWS) 2014/10/08 17:40:05 TRANSFORM_TYPE_LAST
20 }; 21 };
21 22
22 struct PwgRasterSettings { 23 struct PwgRasterSettings {
23 // How to transform odd-numbered pages. 24 // How to transform odd-numbered pages.
24 PwgRasterTransformType odd_page_transform; 25 PwgRasterTransformType odd_page_transform;
25 // Rotate all pages (on top of odd-numbered page transform). 26 // Rotate all pages (on top of odd-numbered page transform).
26 bool rotate_all_pages; 27 bool rotate_all_pages;
27 // Rasterize pages in reverse order. 28 // Rasterize pages in reverse order.
28 bool reverse_page_order; 29 bool reverse_page_order;
29 }; 30 };
30 31
31 } // namespace printing 32 } // namespace printing
32 33
33 #endif // PRINTING_BITMAP_TRANSFORM_SETTINGS_H_ 34 #endif // PRINTING_BITMAP_TRANSFORM_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698