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

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

Issue 22638016: Views Textfield: multiple clicks should alternate between double and triple click behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index 2ac35aac75cf0d252946fd1bde4f53c96478ebe9..edef1f730da4c86ea2766c248059ff32d7474296 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -1409,7 +1409,7 @@ void NativeTextfieldViews::TrackMouseClicks(const ui::MouseEvent& event) {
base::TimeDelta time_delta = event.time_stamp() - last_click_time_;
if (time_delta.InMilliseconds() <= GetDoubleClickInterval() &&
!ExceededDragThresholdFromLastClickLocation(event)) {
- aggregated_clicks_ = (aggregated_clicks_ + 1) % 3;
+ aggregated_clicks_ = (aggregated_clicks_ % 2) + 1;
msw 2013/08/09 18:12:11 nit: Add a comment here explaining how this will y
ckocagil 2013/08/10 15:50:27 Done.
} else {
aggregated_clicks_ = 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698