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

Side by Side Diff: sky/sdk/lib/theme/view_configuration.dart

Issue 1220353002: Add padding values to View.idl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/engine/public/platform/sky_display_metrics.h ('k') | sky/sdk/lib/widgets/scaffold.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
OLDNEW
« no previous file with comments | « sky/engine/public/platform/sky_display_metrics.h ('k') | sky/sdk/lib/widgets/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698