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

Unified Diff: ui/views/controls/link.cc

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: Created 4 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
Index: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 176330bf30d9b30cd87727d89e05cf340cc780d5..1f069eadb064e561eca8e8845cf2940cf2874622 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -174,6 +174,10 @@ void Link::SetEnabledColor(SkColor color) {
Label::SetEnabledColor(GetEnabledColor());
}
+bool Link::IsSelectionSupported() const {
+ return false;
+}
+
void Link::SetUnderline(bool underline) {
if (underline_ == underline)
return;

Powered by Google App Engine
This is Rietveld 408576698