| 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_SHELF_SHELF_CONSTANTS_H_ | 5 #ifndef ASH_SHELF_SHELF_CONSTANTS_H_ |
| 6 #define ASH_SHELF_SHELF_CONSTANTS_H_ | 6 #define ASH_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 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 enum ShelfConstant { | 13 // Size of the shelf when visible (height when the shelf is horizontal and |
| 14 // Size of the shelf when visible (height when the shelf is horizontal and | 14 // width when the shelf is vertical). |
| 15 // width when the shelf is vertical). | 15 ASH_EXPORT constexpr int kShelfSize = 48; |
| 16 SHELF_SIZE, | |
| 17 | |
| 18 // Insets allocated for shelf when it is auto hidden. | |
| 19 SHELF_INSETS_FOR_AUTO_HIDE | |
| 20 }; | |
| 21 | 16 |
| 22 // We reserve a small area on the edge of the workspace area to ensure that | 17 // 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. | 18 // the resize handle at the edge of the window can be hit. |
| 24 constexpr int kWorkspaceAreaVisibleInset = 2; | 19 constexpr int kWorkspaceAreaVisibleInset = 2; |
| 25 | 20 |
| 26 // When autohidden we extend the touch hit target onto the screen so that the | 21 // When autohidden we extend the touch hit target onto the screen so that the |
| 27 // user can drag the shelf out. | 22 // user can drag the shelf out. |
| 28 constexpr int kWorkspaceAreaAutoHideInset = 5; | 23 constexpr int kWorkspaceAreaAutoHideInset = 5; |
| 29 | 24 |
| 30 // Size of the shelf when auto-hidden. | 25 // Size of the shelf when auto-hidden. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 71 |
| 77 // The radius of the rounded corners of the overflow button. | 72 // The radius of the rounded corners of the overflow button. |
| 78 constexpr int kOverflowButtonCornerRadius = 2; | 73 constexpr int kOverflowButtonCornerRadius = 2; |
| 79 | 74 |
| 80 // The radius of the circular material design app list button. | 75 // The radius of the circular material design app list button. |
| 81 constexpr int kAppListButtonRadius = kOverflowButtonSize / 2; | 76 constexpr int kAppListButtonRadius = kOverflowButtonSize / 2; |
| 82 | 77 |
| 83 // The direction of the focus cycling. | 78 // The direction of the focus cycling. |
| 84 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 79 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |
| 85 | 80 |
| 86 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | |
| 87 | |
| 88 } // namespace ash | 81 } // namespace ash |
| 89 | 82 |
| 90 #endif // ASH_SHELF_SHELF_CONSTANTS_H_ | 83 #endif // ASH_SHELF_SHELF_CONSTANTS_H_ |
| OLD | NEW |