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

Unified Diff: views/view_aura.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
« views/metrics_aura.cc ('K') | « views/metrics_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_aura.cc
diff --git a/views/view_aura.cc b/views/view_aura.cc
index f01e9b9b8cf9300782a4e74fbc15dc035f3fdea3..1cb7c6953f73e9113fd22599735dea96a679db72 100644
--- a/views/view_aura.cc
+++ b/views/view_aura.cc
@@ -11,11 +11,13 @@ gfx::NativeViewAccessible View::GetNativeViewAccessible() {
}
int View::GetHorizontalDragThreshold() {
- return 0;
+ // Use the default horizontal drag threshold on gtk for now.
oshima 2011/11/11 01:52:32 same as what gtk uses.
+ // TODO(jennyz): We may need to adjust this value for different platform.
+ return 8;
oshima 2011/11/11 01:52:32 This has to be adjusted for different display dens
}
int View::GetVerticalDragThreshold() {
- return 0;
+ return GetHorizontalDragThreshold();
}
} // namespace views
« views/metrics_aura.cc ('K') | « views/metrics_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698