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

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: Check kContainerParamsKey property to find containers 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
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..5dfe44db4e4c92e0ea4a536a91fab1663dbaba94 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::NeedsNotificationWhenVisibleBoundsChange() const {
+ return true;
+}
+
+void Textfield::OnVisibleBoundsChanged() {
+ if (touch_selection_controller_)
+ touch_selection_controller_->SelectionChanged();
+}
+
void Textfield::OnEnabledChanged() {
View::OnEnabledChanged();
if (GetInputMethod())

Powered by Google App Engine
This is Rietveld 408576698