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 #ifndef UI_VIEWS_VIEW_CONSTANTS_H_ | 5 #ifndef UI_VIEWS_VIEW_CONSTANTS_H_ |
6 #define UI_VIEWS_VIEW_CONSTANTS_H_ | 6 #define UI_VIEWS_VIEW_CONSTANTS_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 | 11 |
12 // Size (width or height) within which the user can hold the mouse and the | 12 // Size (width or height) within which the user can hold the mouse and the |
13 // view should scroll. | 13 // view should scroll. |
14 VIEWS_EXPORT extern const int kAutoscrollSize; | 14 VIEWS_EXPORT extern const int kAutoscrollSize; |
15 | 15 |
16 // Time in milliseconds to autoscroll by a row. This is used during drag and | 16 // Time in milliseconds to autoscroll by a row. This is used during drag and |
17 // drop. | 17 // drop. |
18 VIEWS_EXPORT extern const int kAutoscrollRowTimerMS; | 18 VIEWS_EXPORT extern const int kAutoscrollRowTimerMS; |
19 | 19 |
20 // Used to determine whether a drop is on an item or before/after it. If a drop | 20 // Used to determine whether a drop is on an item or before/after it. If a drop |
21 // occurs kDropBetweenPixels from the top/bottom it is considered before/after | 21 // occurs kDropBetweenPixels from the top/bottom it is considered before/after |
22 // the item, otherwise it is on the item. | 22 // the item, otherwise it is on the item. |
23 VIEWS_EXPORT extern const int kDropBetweenPixels; | 23 VIEWS_EXPORT extern const int kDropBetweenPixels; |
24 | 24 |
25 // A view will only be considered a candidate for touch fuzzing if the touch | |
26 // region covers at least |kFuzzingOverlapPercentage| percent of the area of | |
27 // the view's bounding rectangle. Note that the views tests named | |
sky
2012/08/02 15:52:08
Remove last sentence.
tdanderson
2012/08/02 18:11:37
Done.
| |
28 // GestureEventWithFuzzing and GetEventHandlerForRect may fail if the value | |
29 // of this constant is changed. | |
30 VIEWS_EXPORT extern const float kFuzzingOverlapPercentage; | |
31 | |
25 } // namespace views | 32 } // namespace views |
26 | 33 |
27 #endif // UI_VIEWS_VIEW_CONSTANTS_H_ | 34 #endif // UI_VIEWS_VIEW_CONSTANTS_H_ |
OLD | NEW |