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 #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. | |
| 28 VIEWS_EXPORT extern const float kFuzzingOverlapPercentage; | |
|
rjkroege
2012/07/16 23:35:48
So... If we have a really huge button, can we fail
tdanderson
2012/07/17 19:07:07
This is a good question, and I should have mention
| |
| 29 | |
| 25 } // namespace views | 30 } // namespace views |
| 26 | 31 |
| 27 #endif // UI_VIEWS_VIEW_CONSTANTS_H_ | 32 #endif // UI_VIEWS_VIEW_CONSTANTS_H_ |
| OLD | NEW |