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

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: Further Mac and Linux fixes. 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: 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 3dda6d284439b9bc9908411b2862f9e0a6478845..bec0759b55b2787718043e3d62c140e3f3464c2f 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:
@@ -199,6 +200,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)

Powered by Google App Engine
This is Rietveld 408576698