1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PDF_PAGE_ORIENTATION_H_
6 #define PDF_PAGE_ORIENTATION_H_
10 namespace chrome_pdf {
12 // Enumeration of allowed page orientations. Assigned values permit simple
13 // modular arithmetic on orientations.
14 enum class PageOrientation : uint8_t {
15 // Original orientation.
18 // Rotated clockwise 90 degrees.
21 // Rotated (clockwise) 180 degrees.
24 // Rotated clockwise 270 degrees (counterclockwise 90 degrees).
27 // Last enumeration value.
31 // Rotates a page orientation clockwise by one step (90 degrees).
32 PageOrientation RotateClockwise(PageOrientation orientation);
34 // Rotates a page orientation counterclockwise by one step (90 degrees).
35 PageOrientation RotateCounterclockwise(PageOrientation orientation);
37 } // namespace chrome_pdf
39 #endif // PDF_PAGE_ORIENTATION_H_