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

Unified Diff: ui/views/controls/label.h

Issue 2065003002: Do not SchedulePaint() inside views::Label::OnPaint() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a test Created 4 years, 6 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 | « no previous file | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index fd2a23e5fb9c41fa4f6e64906c884133c510b7cb..1663256bc8e0ea389de73d4728fe4fc6e5e00dea 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -180,8 +180,12 @@ class VIEWS_EXPORT Label : public View {
// Get the text size for the current layout.
gfx::Size GetTextSize() const;
+ // Updates |actual_{enabled,disabled}_color_| from requested colors.
void RecalculateColors();
+ // Applies |actual_{enabled,disabled}_color_| to |lines_|.
+ void ApplyTextColors();
+
// Updates any colors that have not been explicitly set from the theme.
void UpdateColorsFromTheme(const ui::NativeTheme* theme);
« no previous file with comments | « no previous file | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698