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

Unified Diff: ui/views/controls/textfield/textfield.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/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 835b10509babbaf1fe5147d13903fde02867f278..668936a5d5de84a4e0790137b60a9b113a90d630 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -1762,6 +1762,10 @@ bool Textfield::IsReadOnly() const {
return read_only();
}
+bool Textfield::SupportsDrag() const {
+ return true;
+}
+
void Textfield::SetTextBeingDragged(bool value) {
initiating_drag_ = value;
}

Powered by Google App Engine
This is Rietveld 408576698