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

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

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Refactor to use SelectionController(Delegate). Unfinished! Created 4 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | 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 450716ac1088b97707898e3849536fd4d1b3916b..85268cc7d6dab778bee541ddd8f22f4c4a2cdce5 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -231,6 +231,10 @@ class VIEWS_EXPORT Label : public View, public SelectionControllerDelegate {
void OnAfterPointerAction(bool text_changed, bool selection_changed) override;
bool PasteSelectionClipboard() override;
void UpdateSelectionClipboard() override;
+ SkColor GetSelectionTextColor() const override;
+ SkColor GetSelectionBackgroundColor() const override;
+ SkColor GetSelectionBackgroundUnfocusedColor() const override;
+ void OnWillChangeFocus(View* focused_before, View* focused_now) override;
const gfx::RenderText* GetRenderTextForSelectionController() const;
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698