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

Side by Side Diff: ash/common/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 from @tdanderson 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_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
17 // Size of the shelf when visible (height when the shelf is horizontal and
18 // width when the shelf is vertical).
19 SHELF_SIZE,
20
21 // Size of the space between buttons on the shelf.
22 SHELF_BUTTON_SPACING,
23
24 // Size allocated for each button on the shelf.
25 SHELF_BUTTON_SIZE
16 }; 26 };
17 27
18 // Invalid image resource id used for ShelfItemDetails. 28 // Invalid image resource id used for ShelfItemDetails.
19 extern const int kInvalidImageResourceID; 29 extern const int kInvalidImageResourceID;
20 30
31 // We reserve a small area on the edge of the workspace area to ensure that
32 // the resize handle at the edge of the window can be hit.
33 extern const int kWorkspaceAreaVisibleInset;
34
35 // When autohidden we extend the touch hit target onto the screen so that the
36 // user can drag the shelf out.
37 extern const int kWorkspaceAreaAutoHideInset;
38
39 // Size of the shelf when auto-hidden.
40 ASH_EXPORT extern const int kShelfAutoHideSize;
41
42 // Inset between the inner edge of the shelf (towards centre of screen), and
43 // the shelf items, notifications, status area etc.
44 extern const int kShelfItemInset;
45
21 const int kInvalidShelfID = 0; 46 const int kInvalidShelfID = 0;
22 47
23 // Size of the shelf when visible (height when the shelf is horizontal).
24 ASH_EXPORT extern const int kShelfSize;
25
26 // Size of the space between buttons on the shelf.
27 ASH_EXPORT extern const int kShelfButtonSpacing;
28
29 // Size allocated for each button on the shelf.
30 ASH_EXPORT extern const int kShelfButtonSize;
31
32 // Animation duration for switching black shelf and dock background on and off. 48 // Animation duration for switching black shelf and dock background on and off.
33 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; 49 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs;
34 50
35 // The base color of the shelf to which different alpha values are applied 51 // The base color of the shelf to which different alpha values are applied
36 // based on the desired shelf opacity level. 52 // based on the desired shelf opacity level.
37 ASH_EXPORT extern const SkColor kShelfBaseColor; 53 ASH_EXPORT extern const SkColor kShelfBaseColor;
38 54
39 // The foreground color of the icons used in the shelf (launcher, 55 // The foreground color of the icons used in the shelf (launcher,
40 // notifications, etc). 56 // notifications, etc).
41 ASH_EXPORT extern const SkColor kShelfIconColor; 57 ASH_EXPORT extern const SkColor kShelfIconColor;
42 58
43 // The direction of the focus cycling. 59 // The direction of the focus cycling.
44 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; 60 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD };
45 61
46 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); 62 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant);
47 63
48 } // namespace ash 64 } // namespace ash
49 65
50 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ 66 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/shelf/shelf_constants.cc » ('j') | ash/common/system/tray/tray_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698