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

Unified Diff: ui/base/resource/resource_bundle.h

Issue 144073004: rAc: remove bold section labels on linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui::ResourceBundle::BoldOnlyIfItLooksGood() Created 6 years, 11 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/base/resource/resource_bundle.h
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index 9ce24664524f555747068e21c1e3800b6309057d..1c2a8e3b0c9f24fd1e3abf41a097f969b59f025b 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -238,6 +238,10 @@ class UI_BASE_EXPORT ResourceBundle {
// Returns the font for the specified style.
const gfx::Font& GetFont(FontStyle style);
+ // Returns a bold font style if it looks good for the current platform.
+ // Bolding is currently omitted on Linux Aura.
+ static FontStyle BoldOnlyIfItLooksGood();
+
// Resets and reloads the cached fonts. This is useful when the fonts of the
// system have changed, for example, when the locale has changed.
void ReloadFonts();

Powered by Google App Engine
This is Rietveld 408576698