| 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 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 enum ShelfConstant { | 13 enum ShelfConstant { |
| 14 // The alpha value for the shelf background when a window is overlapping. | 14 // The alpha value for the shelf background when a window is overlapping. |
| 15 SHELF_BACKGROUND_ALPHA, | 15 SHELF_BACKGROUND_ALPHA, |
| 16 | 16 |
| 17 // Size of the shelf when visible (height when the shelf is horizontal and | 17 // Size of the shelf when visible (height when the shelf is horizontal and |
| 18 // width when the shelf is vertical). | 18 // width when the shelf is vertical). |
| 19 SHELF_SIZE, | 19 SHELF_SIZE, |
| 20 | 20 |
| 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 |
| 30 // Shelf item tooltip height. |
| 31 TOOLTIP_HEIGHT, |
| 32 |
| 33 // The maximum width of the tooltip bubble. The value matches that from |
| 34 // ash/tooltip/tooltip_controller.cc |
| 35 TOOLTIP_MAX_WIDTH, |
| 36 |
| 37 // Shelf item tooltip internal text margins. |
| 38 TOOLTIP_TOP_BOTTOM_MARGIN, |
| 39 TOOLTIP_LEFT_RIGHT_MARGIN, |
| 40 |
| 41 // The offset for the tooltip bubble - making sure that the bubble is flush |
| 42 // with the shelf (non-MD) or spaced with a fixed gap (MD). The offset |
| 43 // includes the arrow size in pixels as well as the activation bar and other |
| 44 // spacing elements. |
| 45 TOOLTIP_ARROW_TOP_BOTTOM_OFFSET, |
| 46 TOOLTIP_ARROW_LEFT_RIGHT_OFFSET, |
| 29 }; | 47 }; |
| 30 | 48 |
| 31 // Invalid image resource id used for ShelfItemDetails. | 49 // Invalid image resource id used for ShelfItemDetails. |
| 32 extern const int kInvalidImageResourceID; | 50 extern const int kInvalidImageResourceID; |
| 33 | 51 |
| 34 // We reserve a small area on the edge of the workspace area to ensure that | 52 // 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. | 53 // the resize handle at the edge of the window can be hit. |
| 36 extern const int kWorkspaceAreaVisibleInset; | 54 extern const int kWorkspaceAreaVisibleInset; |
| 37 | 55 |
| 38 // When autohidden we extend the touch hit target onto the screen so that the | 56 // When autohidden we extend the touch hit target onto the screen so that the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 extern const int kAppListButtonRadius; | 100 extern const int kAppListButtonRadius; |
| 83 | 101 |
| 84 // The direction of the focus cycling. | 102 // The direction of the focus cycling. |
| 85 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 103 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |
| 86 | 104 |
| 87 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | 105 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); |
| 88 | 106 |
| 89 } // namespace ash | 107 } // namespace ash |
| 90 | 108 |
| 91 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 109 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
| OLD | NEW |