| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef UI_VIEWS_MOUSE_CONSTANTS_H_ | 5 #ifndef UI_VIEWS_MOUSE_CONSTANTS_H_ |
| 6 #define UI_VIEWS_MOUSE_CONSTANTS_H_ | 6 #define UI_VIEWS_MOUSE_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 | 8 |
| 10 namespace views { | 9 namespace views { |
| 11 | 10 |
| 12 // The amount of time the mouse should be down before a mouse release is | 11 // The amount of time the mouse should be down before a mouse release is |
| 13 // considered intentional. This is to prevent spurious mouse releases from | 12 // considered intentional. This is to prevent spurious mouse releases from |
| 14 // activating controls, especially when some UI element is revealed under the | 13 // activating controls, especially when some UI element is revealed under the |
| 15 // source of the activation (ex. menus showing underneath menu buttons). | 14 // source of the activation (ex. menus showing underneath menu buttons). |
| 16 const int kMinimumMsPressedToActivate = 200; | 15 const int kMinimumMsPressedToActivate = 200; |
| 17 | 16 |
| 18 // The amount of time, in milliseconds, between clicks until they're | 17 // The amount of time, in milliseconds, between clicks until they're |
| 19 // considered intentionally different. | 18 // considered intentionally different. |
| 20 const int kMinimumMsBetweenButtonClicks = 100; | 19 const int kMinimumMsBetweenButtonClicks = 100; |
| 21 | 20 |
| 22 } // namespace views | 21 } // namespace views |
| 23 | 22 |
| 24 #endif // UI_VIEWS_MOUSE_CONSTANTS_H_ | 23 #endif // UI_VIEWS_MOUSE_CONSTANTS_H_ |
| OLD | NEW |