OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Modeled after Android's ViewConfiguration: | |
6 // https://github.com/android/platform_frameworks_base/blob/master/core/java/and
roid/view/ViewConfiguration.java | |
7 | |
8 const double kStatusBarHeight = 25.0; | |
9 const double kScrollbarSize = 10.0; | |
10 const double kScrollbarFadeDuration = 250.0; | |
11 const double kScrollbarFadeDelay = 300.0; | |
12 const double kFadingEdgeLength = 12.0; | |
13 const double kPressedStateDuration = 64.0; | |
14 const double kDefaultLongPressTimeout = 500.0; | |
15 const double kTapTimeout = 100.0; | |
16 const double kJumpTapTimeout = 500.0; | |
17 const double kDoubleTapTimeout = 300.0; | |
18 const double kDoubleTapMinTime = 40.0; | |
19 const double kHoverTapTimeout = 150.0; | |
20 const double kHoverTapSlop = 20.0; | |
21 const double kZoomControlsTimeout = 3000.0; | |
22 const double kEdgeSlop = 12.0; | |
23 const double kTouchSlop = 8.0; | |
24 const double kDoubleTapTouchSlop = kTouchSlop; | |
25 const double kPagingTouchSlop = kTouchSlop * 2.0; | |
26 const double kDoubleTapSlop = 100.0; | |
27 const double kWindowTouchSlop = 16.0; | |
28 const double kMinFlingVelocity = 50.0; | |
29 const double kMaxFlingVelocity = 8000.0; | |
OLD | NEW |