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

Side by Side Diff: printing/pdf_render_settings.h

Issue 2970473002: Add generic text printing (Closed)
Patch Set: Change enum names Created 3 years, 5 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
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | printing/print_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PDF_RENDER_SETTINGS_H_ 5 #ifndef PRINTING_PDF_RENDER_SETTINGS_H_
6 #define PRINTING_PDF_RENDER_SETTINGS_H_ 6 #define PRINTING_PDF_RENDER_SETTINGS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/gfx/geometry/point.h" 9 #include "ui/gfx/geometry/point.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 11
12 namespace printing { 12 namespace printing {
13 13
14 // Defining PDF rendering settings. 14 // Defining PDF rendering settings.
15 struct PdfRenderSettings { 15 struct PdfRenderSettings {
16 enum Mode { 16 enum Mode {
17 NORMAL = 0, 17 NORMAL = 0,
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 TEXTONLY,
19 GDI_TEXT, 20 GDI_TEXT,
20 POSTSCRIPT_LEVEL2, 21 POSTSCRIPT_LEVEL2,
21 POSTSCRIPT_LEVEL3, 22 POSTSCRIPT_LEVEL3,
22 LAST = POSTSCRIPT_LEVEL3, 23 LAST = POSTSCRIPT_LEVEL3,
23 #else 24 #else
24 LAST = NORMAL, 25 LAST = NORMAL,
25 #endif 26 #endif
26 }; 27 };
27 28
28 PdfRenderSettings() : dpi(0), autorotate(false), mode(Mode::NORMAL) {} 29 PdfRenderSettings() : dpi(0), autorotate(false), mode(Mode::NORMAL) {}
(...skipping 12 matching lines...) Expand all
41 gfx::Rect area; 42 gfx::Rect area;
42 gfx::Point offsets; 43 gfx::Point offsets;
43 int dpi; 44 int dpi;
44 bool autorotate; 45 bool autorotate;
45 Mode mode; 46 Mode mode;
46 }; 47 };
47 48
48 } // namespace printing 49 } // namespace printing
49 50
50 #endif // PRINTING_PDF_RENDER_SETTINGS_H_ 51 #endif // PRINTING_PDF_RENDER_SETTINGS_H_
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698