OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 // Modeled after Android's ViewConfiguration: | 5 // Modeled after Android's ViewConfiguration: |
6 // https://github.com/android/platform_frameworks_base/blob/master/core/java/and
roid/view/ViewConfiguration.java | 6 // https://github.com/android/platform_frameworks_base/blob/master/core/java/and
roid/view/ViewConfiguration.java |
7 | 7 |
8 const double kNotificationAreaHeight = 25.0; | |
9 // TODO(ianh): Figure out actual specced height for status bar | 8 // TODO(ianh): Figure out actual specced height for status bar |
10 const double kStatusBarHeight = 50.0; | 9 const double kStatusBarHeight = 50.0; |
11 | 10 |
12 // TODO(eseidel) Toolbar needs to change size based on orientation: | 11 // TODO(eseidel) Toolbar needs to change size based on orientation: |
13 // http://www.google.com/design/spec/layout/structure.html#structure-app-bar | 12 // http://www.google.com/design/spec/layout/structure.html#structure-app-bar |
14 // Mobile Landscape: 48dp | 13 // Mobile Landscape: 48dp |
15 // Mobile Portrait: 56dp | 14 // Mobile Portrait: 56dp |
16 // Tablet/Desktop: 64dp | 15 // Tablet/Desktop: 64dp |
17 const double kToolBarHeight = 56.0; | 16 const double kToolBarHeight = 56.0; |
18 | 17 |
(...skipping 12 matching lines...) Expand all Loading... |
31 const double kHoverTapSlop = 20.0; | 30 const double kHoverTapSlop = 20.0; |
32 const double kZoomControlsTimeout = 3000.0; | 31 const double kZoomControlsTimeout = 3000.0; |
33 const double kEdgeSlop = 12.0; | 32 const double kEdgeSlop = 12.0; |
34 const double kTouchSlop = 8.0; | 33 const double kTouchSlop = 8.0; |
35 const double kDoubleTapTouchSlop = kTouchSlop; | 34 const double kDoubleTapTouchSlop = kTouchSlop; |
36 const double kPagingTouchSlop = kTouchSlop * 2.0; | 35 const double kPagingTouchSlop = kTouchSlop * 2.0; |
37 const double kDoubleTapSlop = 100.0; | 36 const double kDoubleTapSlop = 100.0; |
38 const double kWindowTouchSlop = 16.0; | 37 const double kWindowTouchSlop = 16.0; |
39 const double kMinFlingVelocity = 50.0; | 38 const double kMinFlingVelocity = 50.0; |
40 const double kMaxFlingVelocity = 8000.0; | 39 const double kMaxFlingVelocity = 8000.0; |
OLD | NEW |