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

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

Issue 2085623006: [merge-m52] Do not SchedulePaint() inside views::Label::OnPaint() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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 6dd1800584fa9ad6551de2ca048617cc06adea7f..8ede4c04b88b17e9880a5e69330d958e4806140c 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -176,8 +176,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