[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API
[platform/framework/web/chromium-efl.git] / printing / pdf_render_settings.h
1 // Copyright 2011 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 PRINTING_PDF_RENDER_SETTINGS_H_
6 #define PRINTING_PDF_RENDER_SETTINGS_H_
7
8 #include "build/build_config.h"
9 #include "ui/gfx/geometry/point.h"
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/geometry/size.h"
12
13 namespace printing {
14
15 // Defining PDF rendering settings.
16 struct PdfRenderSettings {
17   enum Mode {
18     NORMAL = 0,
19 #if BUILDFLAG(IS_WIN)
20     TEXTONLY,
21     POSTSCRIPT_LEVEL2,
22     POSTSCRIPT_LEVEL3,
23     EMF_WITH_REDUCED_RASTERIZATION,
24     POSTSCRIPT_LEVEL3_WITH_TYPE42_FONTS,
25     LAST = POSTSCRIPT_LEVEL3_WITH_TYPE42_FONTS
26 #else
27     LAST = NORMAL
28 #endif
29   };
30
31   PdfRenderSettings()
32       : autorotate(false), use_color(true), mode(Mode::NORMAL) {}
33   PdfRenderSettings(const gfx::Rect& area,
34                     const gfx::Point& offsets,
35                     const gfx::Size& dpi,
36                     bool autorotate,
37                     bool use_color,
38                     Mode mode)
39       : area(area),
40         offsets(offsets),
41         dpi(dpi),
42         autorotate(autorotate),
43         use_color(use_color),
44         mode(mode) {}
45   ~PdfRenderSettings() {}
46
47   gfx::Rect area;
48   gfx::Point offsets;
49   gfx::Size dpi;
50   bool autorotate;
51   bool use_color;
52   Mode mode;
53 };
54
55 }  // namespace printing
56
57 #endif  // PRINTING_PDF_RENDER_SETTINGS_H_