summaryrefslogtreecommitdiffstats
path: root/views/controls/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/label.cc')
-rw-r--r--views/controls/label.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc
index 1b105f0..810769a 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -77,6 +77,10 @@ void Label::OnBoundsChanged() {
text_size_valid_ &= !is_multi_line_;
}
+std::string Label::GetClassName() const {
+ return kViewClassName;
+}
+
void Label::OnPaint(gfx::Canvas* canvas) {
OnPaintBackground(canvas);
@@ -128,6 +132,14 @@ const GURL Label::GetURL() const {
return url_set_ ? url_ : GURL(UTF16ToUTF8(text_));
}
+void Label::SetColor(const SkColor& color) {
+ color_ = color;
+}
+
+SkColor Label::GetColor() const {
+ return color_;
+}
+
void Label::SetHorizontalAlignment(Alignment alignment) {
// If the View's UI layout is right-to-left and rtl_alignment_mode_ is
// USE_UI_ALIGNMENT, we need to flip the alignment so that the alignment