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

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

Issue 403923002: Make GetCustomFontRenderParams() pass font style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/font_render_params_android.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_
6 #define UI_GFX_FONT_RENDER_PARAMS_H_ 6 #define UI_GFX_FONT_RENDER_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Returns the system's default parameters for font rendering. 60 // Returns the system's default parameters for font rendering.
61 GFX_EXPORT const FontRenderParams& GetDefaultFontRenderParams(); 61 GFX_EXPORT const FontRenderParams& GetDefaultFontRenderParams();
62 62
63 // Returns the system's default parameters for WebKit font rendering. 63 // Returns the system's default parameters for WebKit font rendering.
64 // TODO(derat): Rename to GetDefaultFontRenderParamsForWebContents(). 64 // TODO(derat): Rename to GetDefaultFontRenderParamsForWebContents().
65 GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams(); 65 GFX_EXPORT const FontRenderParams& GetDefaultWebKitFontRenderParams();
66 66
67 // Returns the appropriate parameters for rendering the font described by the 67 // Returns the appropriate parameters for rendering the font described by the
68 // passed-in-arguments, any of which may be NULL. If |family_out| is non-NULL, 68 // passed-in-arguments, any of which may be NULL. If |family_out| is non-NULL,
69 // it will be updated to contain the recommended font family from |family_list|. 69 // it will be updated to contain the recommended font family from |family_list|.
70 // TODO(derat): Also accept the font style, so that its bold and italic states 70 // |style| optionally points to a bit field of Font::FontStyle values.
71 // can be passed to Fontconfig in the Linux implementation.
72 GFX_EXPORT FontRenderParams GetCustomFontRenderParams( 71 GFX_EXPORT FontRenderParams GetCustomFontRenderParams(
73 bool for_web_contents, 72 bool for_web_contents,
74 const std::vector<std::string>* family_list, 73 const std::vector<std::string>* family_list,
75 const int* pixel_size, 74 const int* pixel_size,
76 const int* point_size, 75 const int* point_size,
76 const int* style,
77 std::string* family_out); 77 std::string* family_out);
78 78
79 } // namespace gfx 79 } // namespace gfx
80 80
81 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ 81 #endif // UI_GFX_FONT_RENDER_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/font_render_params_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698