Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: ash/shelf/shelf_constants.h

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments & Refactor border around item implementation Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 and
14 // width when the shelf is vertical).
15 SHELF_SIZE,
16
17 // Size of the space between buttons on the shelf.
18 SHELF_BUTTON_SPACING,
19
20 // Size allocated for each button on the shelf.
21 SHELF_BUTTON_SIZE
22 };
23
24 ASH_EXPORT int GetShelfLayoutConstant(ShelfLayoutConstant constant);
25
12 // Invalid image resource id used for ShelfItemDetails. 26 // Invalid image resource id used for ShelfItemDetails.
13 extern const int kInvalidImageResourceID; 27 extern const int kInvalidImageResourceID;
14 28
29 // We reserve a small area on the edge of the workspace area to ensure that
30 // the resize handle at the edge of the window can be hit.
31 extern const int kWorkspaceAreaVisibleInset;
32
33 // When autohidden we extend the touch hit target onto the screen so that the
34 // user can drag the shelf out.
35 extern const int kWorkspaceAreaAutoHideInset;
36
37 // Size of the shelf when auto-hidden.
38 ASH_EXPORT extern const int kAutoHideSize;
bruthig 2016/06/03 20:18:17 |kAutoHideSize| is too general of a variable name
yiyix 2016/06/10 19:26:04 This constant is used in both shelf_layout_manager
39
40 // Inset between the inner edge of the shelf (towards centre of screen), and
41 // the shelf items, notifications, status area etc.
42 extern const int kShelfItemInset;
43
15 const int kInvalidShelfID = 0; 44 const int kInvalidShelfID = 0;
16 45
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. 46 // The direction of the focus cycling.
27 enum CycleDirection { 47 enum CycleDirection {
28 CYCLE_FORWARD, 48 CYCLE_FORWARD,
29 CYCLE_BACKWARD 49 CYCLE_BACKWARD
30 }; 50 };
31 51
32 } // namespace ash 52 } // namespace ash
33 53
34 #endif // ASH_SHELF_SHELF_CONSTANTS_H_ 54 #endif // ASH_SHELF_SHELF_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698