Index: ui/native_theme/material_design_constants.h |
diff --git a/ui/native_theme/material_design_constants.h b/ui/native_theme/material_design_constants.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9688a1a1fa144847fb13041f872663e423bc9606 |
--- /dev/null |
+++ b/ui/native_theme/material_design_constants.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 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. |
+ |
+#ifndef UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ |
+#define UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ |
Peter Kasting
2016/10/17 19:10:24
You've named this file like it's a general-purpose
bokan
2016/10/17 23:21:03
Ok, I've renamed the file to overlay_scrollbar_con
|
+ |
+#include "ui/gfx/skia_util.h" |
+ |
+namespace ui { |
+ |
+const SkAlpha kMDScrollbarAlphaNormal = 0x4D; |
Peter Kasting
2016/10/17 19:10:24
Why do the file name and these constant names all
bokan
2016/10/17 23:21:03
Done.
|
+const SkAlpha kMDScrollbarAlphaHovered = 0x80; |
+const SkAlpha kMDScrollbarAlphaPressed = 0x80; |
+ |
+const SkColor kMDScrollbarThumbColor = SkColorSetRGB(0x0, 0x0, 0x0); |
+ |
+const SkColor kMDScrollbarStrokeColor = SkColorSetRGB(0xFF, 0xFF, 0xFF); |
+const int kMDScrollbarStrokeWidth = 1; |
+ |
+const int kMDScrollbarThumbWidthNormal = 6; |
+const int kMDScrollbarThumbWidthHovered = 10; |
+const int kMDScrollbarThumbWidthPressed = 10; |
+ |
+const int kMDScrollbarFadeOutDelayMs = 1000; |
+const int kMDScrollbarFadeOutDurationMs = 200; |
+ |
+// TODO(bokan): This is still undetermined. crbug.com/652520. |
+const int kMDScrollbarThinningDurationMs = 200; |
+ |
+const int kMDScrollbarMinimumLength = 12; |
+ |
+} // namespace ui |
+ |
+#endif // UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ |