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

Unified Diff: sky/framework/view-configuration.dart

Issue 955653005: Add ViewConfiguration and make our scrollbar size match Android (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« sky/framework/sky-scrollable.sky ('K') | « sky/framework/sky-scrollable.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/view-configuration.dart
diff --git a/sky/framework/view-configuration.dart b/sky/framework/view-configuration.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5100d9cdbcc790753e19e8d6ded459cb2c764ea4
--- /dev/null
+++ b/sky/framework/view-configuration.dart
@@ -0,0 +1,12 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Modeled after Android's ViewConfiguration:
+// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewConfiguration.java
+
+class ViewConfiguration {
+ final int kScrollbarSize = 10;
+ final int kScrollbarFadeDelay = 300;
+ final int kScrollbarFadeDuration = 250;
+}
abarth-chromium 2015/02/24 21:48:25 Why not just have top-level constants in this file
« sky/framework/sky-scrollable.sky ('K') | « sky/framework/sky-scrollable.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698