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

Unified Diff: views/controls/button/text_button.h

Issue 5180002: Adjust default font sizes for new hand hinted fonts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: introduce CROS_HAND_HINTED_FONTS define, fix oobe/login buttons, dropdowns Created 10 years, 1 month 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: views/controls/button/text_button.h
diff --git a/views/controls/button/text_button.h b/views/controls/button/text_button.h
index 7e204d4c49422e049965ee63760c0cd5f4a89f08..2f1e5d5a4983248244aa2125ebb440b21ca7fb6e 100644
--- a/views/controls/button/text_button.h
+++ b/views/controls/button/text_button.h
@@ -138,6 +138,9 @@ class TextButton : public CustomButton {
void set_max_width(int max_width) { max_width_ = max_width; }
void SetFont(const gfx::Font& font);
+ // Return the font used by this button.
+ gfx::Font font() const { return font_; }
+
void SetEnabledColor(SkColor color);
void SetDisabledColor(SkColor color);
void SetHighlightColor(SkColor color);
« app/resource_bundle.cc ('K') | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698