Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 #ifndef UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ | |
| 6 #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
| |
| 7 | |
| 8 #include "ui/gfx/skia_util.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 | |
| 12 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.
| |
| 13 const SkAlpha kMDScrollbarAlphaHovered = 0x80; | |
| 14 const SkAlpha kMDScrollbarAlphaPressed = 0x80; | |
| 15 | |
| 16 const SkColor kMDScrollbarThumbColor = SkColorSetRGB(0x0, 0x0, 0x0); | |
| 17 | |
| 18 const SkColor kMDScrollbarStrokeColor = SkColorSetRGB(0xFF, 0xFF, 0xFF); | |
| 19 const int kMDScrollbarStrokeWidth = 1; | |
| 20 | |
| 21 const int kMDScrollbarThumbWidthNormal = 6; | |
| 22 const int kMDScrollbarThumbWidthHovered = 10; | |
| 23 const int kMDScrollbarThumbWidthPressed = 10; | |
| 24 | |
| 25 const int kMDScrollbarFadeOutDelayMs = 1000; | |
| 26 const int kMDScrollbarFadeOutDurationMs = 200; | |
| 27 | |
| 28 // TODO(bokan): This is still undetermined. crbug.com/652520. | |
| 29 const int kMDScrollbarThinningDurationMs = 200; | |
| 30 | |
| 31 const int kMDScrollbarMinimumLength = 12; | |
| 32 | |
| 33 } // namespace ui | |
| 34 | |
| 35 #endif // UI_NATIVE_THEME_MATERIAL_DESIGN_CONSTANTS_H_ | |
| OLD | NEW |