Chromium Code Reviews| Index: views/view_aura.cc |
| diff --git a/views/view_aura.cc b/views/view_aura.cc |
| index f01e9b9b8cf9300782a4e74fbc15dc035f3fdea3..a16e04fce6d91a00d83fc9f22af75c454d64540f 100644 |
| --- a/views/view_aura.cc |
| +++ b/views/view_aura.cc |
| @@ -4,6 +4,14 @@ |
| #include "views/view.h" |
| +namespace { |
| + |
| +// Default horizontal drag threshold in pixels. |
| +// Use the default horizontal drag threshold on gtk for now. |
| +const int kDefaultHorizontalDragThreshold = 8; |
| + |
| +} // namespace |
| + |
| namespace views { |
| gfx::NativeViewAccessible View::GetNativeViewAccessible() { |
| @@ -11,11 +19,12 @@ gfx::NativeViewAccessible View::GetNativeViewAccessible() { |
| } |
| int View::GetHorizontalDragThreshold() { |
| - return 0; |
| + // TODO(jennyz): We may need to adjust this value for different platforms. |
| + return kDefaultHorizontalDragThreshold; |
| } |
| int View::GetVerticalDragThreshold() { |
| - return 0; |
| + return GetHorizontalDragThreshold(); |
|
msw
2011/11/10 22:10:56
nit: Make the const independent of vertical or hor
|
| } |
| } // namespace views |