fixup! [M120 Migration][NaCl][PPFWK] Upgradable pepper plugin requirement
[platform/framework/web/chromium-efl.git] / pdf / page_orientation.h
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.
4
5 #ifndef PDF_PAGE_ORIENTATION_H_
6 #define PDF_PAGE_ORIENTATION_H_
7
8 #include <cstdint>
9
10 namespace chrome_pdf {
11
12 // Enumeration of allowed page orientations. Assigned values permit simple
13 // modular arithmetic on orientations.
14 enum class PageOrientation : uint8_t {
15   // Original orientation.
16   kOriginal = 0,
17
18   // Rotated clockwise 90 degrees.
19   kClockwise90 = 1,
20
21   // Rotated (clockwise) 180 degrees.
22   kClockwise180 = 2,
23
24   // Rotated clockwise 270 degrees (counterclockwise 90 degrees).
25   kClockwise270 = 3,
26
27   // Last enumeration value.
28   kLast = kClockwise270
29 };
30
31 // Rotates a page orientation clockwise by one step (90 degrees).
32 PageOrientation RotateClockwise(PageOrientation orientation);
33
34 // Rotates a page orientation counterclockwise by one step (90 degrees).
35 PageOrientation RotateCounterclockwise(PageOrientation orientation);
36
37 }  // namespace chrome_pdf
38
39 #endif  // PDF_PAGE_ORIENTATION_H_