OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Size of the space between buttons on the shelf. | 21 // Size of the space between buttons on the shelf. |
22 SHELF_BUTTON_SPACING, | 22 SHELF_BUTTON_SPACING, |
23 | 23 |
24 // Size allocated for each app button on the shelf. | 24 // Size allocated for each app button on the shelf. |
25 SHELF_BUTTON_SIZE, | 25 SHELF_BUTTON_SIZE, |
26 | 26 |
27 // Insets allocated for shelf when it is auto hidden. | 27 // Insets allocated for shelf when it is auto hidden. |
28 SHELF_INSETS_FOR_AUTO_HIDE | 28 SHELF_INSETS_FOR_AUTO_HIDE |
29 }; | 29 }; |
30 | 30 |
31 // Invalid image resource id used for shelf items. | |
32 const int kInvalidImageResourceID = -1; | |
33 | |
34 // We reserve a small area on the edge of the workspace area to ensure that | 31 // We reserve a small area on the edge of the workspace area to ensure that |
35 // the resize handle at the edge of the window can be hit. | 32 // the resize handle at the edge of the window can be hit. |
36 extern const int kWorkspaceAreaVisibleInset; | 33 extern const int kWorkspaceAreaVisibleInset; |
37 | 34 |
38 // When autohidden we extend the touch hit target onto the screen so that the | 35 // When autohidden we extend the touch hit target onto the screen so that the |
39 // user can drag the shelf out. | 36 // user can drag the shelf out. |
40 extern const int kWorkspaceAreaAutoHideInset; | 37 extern const int kWorkspaceAreaAutoHideInset; |
41 | 38 |
42 // Size of the shelf when auto-hidden. | 39 // Size of the shelf when auto-hidden. |
43 ASH_EXPORT extern const int kShelfAutoHideSize; | 40 ASH_EXPORT extern const int kShelfAutoHideSize; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 extern const int kAppListButtonRadius; | 79 extern const int kAppListButtonRadius; |
83 | 80 |
84 // The direction of the focus cycling. | 81 // The direction of the focus cycling. |
85 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 82 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |
86 | 83 |
87 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | 84 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); |
88 | 85 |
89 } // namespace ash | 86 } // namespace ash |
90 | 87 |
91 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 88 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
OLD | NEW |