Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: ui/views/view_constants.h

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No longer using screen coordinates Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
29
25 } // namespace views 30 } // namespace views
26 31
27 #endif // UI_VIEWS_VIEW_CONSTANTS_H_ 32 #endif // UI_VIEWS_VIEW_CONSTANTS_H_
OLDNEW
« ui/views/view.cc ('K') | « ui/views/view.cc ('k') | ui/views/view_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698