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

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

Issue 533403002: Fix touch selection for Athena home card (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed NeedsNotificationWhenVisibleBoundsChange() Created 6 years, 3 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 | « ui/views/controls/textfield/textfield.h ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index bedee3a1c0c8cabcece0a1f5d192c79e9f5d5191..504f88d7a75c08bf86a254785bf9bee1cb06393d 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -923,6 +923,15 @@ void Textfield::OnBoundsChanged(const gfx::Rect& previous_bounds) {
OnCaretBoundsChanged();
}
+bool Textfield::GetNeedsNotificationWhenVisibleBoundsChange() const {
+ return true;
+}
+
+void Textfield::OnVisibleBoundsChanged() {
+ if (touch_selection_controller_)
+ touch_selection_controller_->SelectionChanged();
+}
+
void Textfield::OnEnabledChanged() {
View::OnEnabledChanged();
if (GetInputMethod())
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698