Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/view.h" | 5 #include "views/view.h" |
| 6 | 6 |
| 7 namespace { | |
| 8 // Default horizontal drag threshold in pixels. | |
|
sky
2011/11/10 21:37:03
nit: newline between 7 and 8
jennyz
2011/11/10 21:47:25
Done.
| |
| 9 // Use the default horizontal drag threshold on gtk for now. | |
| 10 const int kDefaultHorizontalDragThreshold = 8; | |
| 11 | |
| 12 } // namespace | |
| 13 | |
| 7 namespace views { | 14 namespace views { |
| 8 | 15 |
| 9 gfx::NativeViewAccessible View::GetNativeViewAccessible() { | 16 gfx::NativeViewAccessible View::GetNativeViewAccessible() { |
| 10 return NULL; | 17 return NULL; |
| 11 } | 18 } |
| 12 | 19 |
| 13 int View::GetHorizontalDragThreshold() { | 20 int View::GetHorizontalDragThreshold() { |
| 14 return 0; | 21 // TODO(jennyz): We may need to adjust this value for different platforms. |
| 22 return kDefaultHorizontalDragThreshold; | |
| 15 } | 23 } |
| 16 | 24 |
| 17 int View::GetVerticalDragThreshold() { | 25 int View::GetVerticalDragThreshold() { |
| 18 return 0; | 26 return GetHorizontalDragThreshold(); |
| 19 } | 27 } |
| 20 | 28 |
| 21 } // namespace views | 29 } // namespace views |
| OLD | NEW |