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

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

Issue 251099: Refactor cros library code into central location and have the UI elements obs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « views/controls/button/text_button.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/text_button.cc
===================================================================
--- views/controls/button/text_button.cc (revision 28124)
+++ views/controls/button/text_button.cc (working copy)
@@ -4,6 +4,8 @@
#include "views/controls/button/text_button.h"
+#include <algorithm>
+
#include "app/gfx/canvas.h"
#include "app/l10n_util.h"
#include "app/throb_animation.h"
@@ -184,6 +186,10 @@
icon_ = icon;
}
+void TextButton::SetFont(const gfx::Font& font) {
+ font_ = font;
+}
+
void TextButton::SetEnabledColor(SkColor color) {
color_enabled_ = color;
UpdateColor();
« no previous file with comments | « views/controls/button/text_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698