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

Unified Diff: ui/gfx/font_render_params.h

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for review issues. Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/font_render_params.h
diff --git a/ui/gfx/font_render_params.h b/ui/gfx/font_render_params.h
index b460c6d88b8b8d549cf20ae9162799176887315b..76ed14d3901f1715a132d9d7e8fa8ffa68f9d544 100644
--- a/ui/gfx/font_render_params.h
+++ b/ui/gfx/font_render_params.h
@@ -10,6 +10,7 @@
#include "build/build_config.h"
#include "third_party/skia/include/core/SkFontHost.h"
+#include "ui/gfx/font.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -91,6 +92,9 @@ struct GFX_EXPORT FontRenderParamsQuery {
// gfx::Font::FontStyle bit field, or -1 if unset.
int style;
+ // Weight of the font. WEIGHT_NORMAL by default.
msw 2016/03/22 18:24:11 nit: update enum value comment
Mikus 2016/03/23 17:53:21 Done.
+ gfx::Font::Weight weight;
+
// The device scale factor of the display, or 0 if unset.
float device_scale_factor;
};

Powered by Google App Engine
This is Rietveld 408576698