Chromium Code Reviews| 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 | 9 |
| 10 namespace ash { | 10 namespace ash { |
| 11 | 11 |
| 12 enum ShelfLayoutConstant { | |
| 13 // Size of the shelf when visible (height when the shelf is horizontal). | |
|
bruthig
2016/05/25 20:24:52
nit: Can you add 'and width when the shelf is vert
yiyix
2016/06/02 03:54:53
Done.
| |
| 14 SHELF_SIZE, | |
| 15 | |
| 16 // Size of the space between buttons on the shelf. | |
| 17 SHELF_BUTTON_SPACING, | |
| 18 | |
| 19 // Size allocated for each button on the shelf. | |
| 20 SHELF_BUTTON_SIZE | |
| 21 }; | |
| 22 | |
| 23 ASH_EXPORT int GetShelfLayoutConstant(ShelfLayoutConstant constant); | |
| 24 | |
| 12 // Invalid image resource id used for ShelfItemDetails. | 25 // Invalid image resource id used for ShelfItemDetails. |
| 13 extern const int kInvalidImageResourceID; | 26 extern const int kInvalidImageResourceID; |
| 14 | 27 |
| 28 // We reserve a small area on the edge of the workspace area to ensure that | |
| 29 // the resize handle at the edge of the window can be hit. | |
| 30 extern const int kWorkspaceAreaVisibleInset; | |
|
bruthig
2016/05/25 20:24:52
Please wrap these three constants in a class. 'kA
tdanderson
2016/05/26 22:55:56
For the purposes of this CL, I would actually refr
yiyix
2016/06/02 03:54:53
I wanted to move most of the shelf property relate
| |
| 31 | |
| 32 // When autohidden we extend the touch hit target onto the screen so that the | |
| 33 // user can drag the shelf out. | |
| 34 extern const int kWorkspaceAreaAutoHideInset; | |
| 35 | |
| 36 // Size of the shelf when auto-hidden. | |
| 37 ASH_EXPORT extern const int kAutoHideSize; | |
| 38 | |
| 15 const int kInvalidShelfID = 0; | 39 const int kInvalidShelfID = 0; |
| 16 | 40 |
| 17 // Size of the shelf when visible (height when the shelf is horizontal). | |
| 18 ASH_EXPORT extern const int kShelfSize; | |
| 19 | |
| 20 // Size of the space between buttons on the shelf. | |
| 21 ASH_EXPORT extern const int kShelfButtonSpacing; | |
| 22 | |
| 23 // Size allocated for each button on the shelf. | |
| 24 ASH_EXPORT extern const int kShelfButtonSize; | |
| 25 | |
| 26 // The direction of the focus cycling. | 41 // The direction of the focus cycling. |
| 27 enum CycleDirection { | 42 enum CycleDirection { |
| 28 CYCLE_FORWARD, | 43 CYCLE_FORWARD, |
| 29 CYCLE_BACKWARD | 44 CYCLE_BACKWARD |
| 30 }; | 45 }; |
| 31 | 46 |
| 32 } // namespace ash | 47 } // namespace ash |
| 33 | 48 |
| 34 #endif // ASH_SHELF_SHELF_CONSTANTS_H_ | 49 #endif // ASH_SHELF_SHELF_CONSTANTS_H_ |
| OLD | NEW |