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

Side by Side Diff: ui/gfx/font_render_params_linux.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/font_list.h ('k') | ui/gfx/gdi_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GFX_FONT_RENDER_PARAMS_LINUX_H_ 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
6 #define UI_GFX_FONT_RENDER_PARAMS_LINUX_H_ 6 #define UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
7 7
8 #include "ui/gfx/gfx_export.h" 8 #include "ui/gfx/gfx_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 // A collection of parameters describing how text should be rendered on Linux. 12 // A collection of parameters describing how text should be rendered on Linux.
13 struct UI_EXPORT FontRenderParams { 13 struct GFX_EXPORT FontRenderParams {
14 // No constructor to avoid static initialization. 14 // No constructor to avoid static initialization.
15 15
16 // Level of hinting to be applied. 16 // Level of hinting to be applied.
17 enum Hinting { 17 enum Hinting {
18 HINTING_NONE = 0, 18 HINTING_NONE = 0,
19 HINTING_SLIGHT, 19 HINTING_SLIGHT,
20 HINTING_MEDIUM, 20 HINTING_MEDIUM,
21 HINTING_FULL, 21 HINTING_FULL,
22 }; 22 };
23 23
(...skipping 23 matching lines...) Expand all
47 47
48 // Hinting level. 48 // Hinting level.
49 Hinting hinting; 49 Hinting hinting;
50 50
51 // Whether subpixel rendering should be used or not, and if so, the display's 51 // Whether subpixel rendering should be used or not, and if so, the display's
52 // subpixel order. 52 // subpixel order.
53 SubpixelRendering subpixel_rendering; 53 SubpixelRendering subpixel_rendering;
54 }; 54 };
55 55
56 // Returns the system's default parameters for font rendering. 56 // Returns the system's default parameters for font rendering.
57 UI_EXPORT const FontRenderParams& GetDefaultFontRenderParams(); 57 GFX_EXPORT const FontRenderParams& GetDefaultFontRenderParams();
58 58
59 // Returns the system's default parameters for WebKit font rendering. 59 // Returns the system's default parameters for WebKit font rendering.
60 UI_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams(); 60 GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams();
61 61
62 // Returns the system's default parameters for WebKit subpixel positioning. 62 // Returns the system's default parameters for WebKit subpixel positioning.
63 // Subpixel positioning is special since neither GTK nor FontConfig currently 63 // Subpixel positioning is special since neither GTK nor FontConfig currently
64 // track it as a preference. 64 // track it as a preference.
65 // See https://bugs.freedesktop.org/show_bug.cgi?id=50736 65 // See https://bugs.freedesktop.org/show_bug.cgi?id=50736
66 UI_EXPORT bool GetDefaultWebkitSubpixelPositioning(); 66 GFX_EXPORT bool GetDefaultWebkitSubpixelPositioning();
67 67
68 } // namespace gfx 68 } // namespace gfx
69 69
70 #endif // UI_GFX_FONT_RENDER_PARAMS_LINUX_H_ 70 #endif // UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
OLDNEW
« no previous file with comments | « ui/gfx/font_list.h ('k') | ui/gfx/gdi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698