OLD | NEW |
| (Empty) |
1 // Copyright 2013 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 ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | |
6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "third_party/skia/include/core/SkColor.h" | |
10 | |
11 namespace ash { | |
12 | |
13 enum ShelfConstant { | |
14 // Size of the shelf when visible (height when the shelf is horizontal and | |
15 // width when the shelf is vertical). | |
16 SHELF_SIZE, | |
17 | |
18 // Insets allocated for shelf when it is auto hidden. | |
19 SHELF_INSETS_FOR_AUTO_HIDE | |
20 }; | |
21 | |
22 // We reserve a small area on the edge of the workspace area to ensure that | |
23 // the resize handle at the edge of the window can be hit. | |
24 extern const int kWorkspaceAreaVisibleInset; | |
25 | |
26 // When autohidden we extend the touch hit target onto the screen so that the | |
27 // user can drag the shelf out. | |
28 extern const int kWorkspaceAreaAutoHideInset; | |
29 | |
30 // Size of the shelf when auto-hidden. | |
31 ASH_EXPORT extern const int kShelfAutoHideSize; | |
32 | |
33 // Animation duration for switching black shelf and dock background on and off. | |
34 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; | |
35 | |
36 // The default base color of the shelf to which different alpha values are | |
37 // applied based on the desired shelf opacity level. | |
38 ASH_EXPORT extern const SkColor kShelfDefaultBaseColor; | |
39 | |
40 // Size allocated for each app button on the shelf. | |
41 ASH_EXPORT extern const int kShelfButtonSize; | |
42 | |
43 // Size of the space between buttons on the shelf. | |
44 ASH_EXPORT extern const int kShelfButtonSpacing; | |
45 | |
46 // Highlight color used for shelf button activated states. | |
47 // TODO(bruthig|mohsen): Use of this color is temporary. Draw the active state | |
48 // using the material design ripple animation. | |
49 ASH_EXPORT extern const SkColor kShelfButtonActivatedHighlightColor; | |
50 | |
51 // Ink drop color for shelf items. | |
52 extern const SkColor kShelfInkDropBaseColor; | |
53 | |
54 // Opacity of the ink drop ripple for shelf items when the ripple is visible. | |
55 extern const float kShelfInkDropVisibleOpacity; | |
56 | |
57 // The foreground color of the icons used in the shelf (launcher, | |
58 // notifications, etc). | |
59 ASH_EXPORT extern const SkColor kShelfIconColor; | |
60 | |
61 // The alpha value for the shelf background when a window is overlapping. | |
62 ASH_EXPORT extern const int kShelfTranslucentAlpha; | |
63 | |
64 // The width and height of the material design overflow button. | |
65 // TODO(tdanderson): Refactor constants which are common between the shelf | |
66 // and the tray. See crbug.com/623987. | |
67 extern const int kOverflowButtonSize; | |
68 | |
69 // The radius of the rounded corners of the overflow button. | |
70 extern const int kOverflowButtonCornerRadius; | |
71 | |
72 // The radius of the circular material design app list button. | |
73 extern const int kAppListButtonRadius; | |
74 | |
75 // The direction of the focus cycling. | |
76 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | |
77 | |
78 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | |
79 | |
80 } // namespace ash | |
81 | |
82 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | |
OLD | NEW |