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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 7 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: chrome/browser/ui/libgtk2ui/gtk2_ui.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.h b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
index db62cf3fb9eabd85d9a24b985d0a8f1508ada4e8..025fcb44dfcf7540dcfbe0b63a7f83471633149b 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -63,7 +63,8 @@ class Gtk2UI : public views::LinuxUI {
void GetDefaultFontDescription(
std::string* family_out,
int* size_pixels_out,
- int* style_out,
+ bool* italic_out,
+ gfx::Font::Weight* weight_out,
gfx::FontRenderParams* params_out) const override;
// ui::ShellDialogLinux:
@@ -207,6 +208,7 @@ class Gtk2UI : public views::LinuxUI {
std::string default_font_family_;
int default_font_size_pixels_;
int default_font_style_; // Bitfield of gfx::Font::Style values.
+ gfx::Font::Weight default_font_weight_;
gfx::FontRenderParams default_font_render_params_;
#if defined(USE_GCONF)
« no previous file with comments | « chrome/browser/ui/extensions/icon_with_badge_image_source.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698