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

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

Issue 8527015: Fix omnibox mouse click highlight/word select/focus issue in aura build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: views/controls/textfield/native_textfield_views.cc
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 07725fffba6e7513e1f4288c3917505fb99ddf15..7f097bccb87753d5e758ba5ee5a8699bff58f75d 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -94,6 +94,10 @@ NativeTextfieldViews::~NativeTextfieldViews() {
// NativeTextfieldViews, View overrides:
bool NativeTextfieldViews::OnMousePressed(const MouseEvent& event) {
+ if (textfield_->OnMousePressed(event)) {
msw 2011/11/11 01:28:58 Please add a comment here like "Allow the textfiel
jennyz 2011/11/12 01:50:17 Done.
+ return true;
+ }
oshima 2011/11/11 01:52:32 This should be after OnBeforeUserAction() and has
jennyz 2011/11/12 01:50:17 Done.
+
OnBeforeUserAction();
textfield_->RequestFocus();

Powered by Google App Engine
This is Rietveld 408576698