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

Unified Diff: ash/shelf/shelf_constants.h

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_constants.h
diff --git a/ash/shelf/shelf_constants.h b/ash/shelf/shelf_constants.h
index 65662ec399c6ca6440f0ebf064baa3c5417ed267..807493751c6dbae790b04f05c5b4ae93bbbdf120 100644
--- a/ash/shelf/shelf_constants.h
+++ b/ash/shelf/shelf_constants.h
@@ -10,14 +10,9 @@
namespace ash {
-enum ShelfConstant {
- // Size of the shelf when visible (height when the shelf is horizontal and
- // width when the shelf is vertical).
- SHELF_SIZE,
-
- // Insets allocated for shelf when it is auto hidden.
- SHELF_INSETS_FOR_AUTO_HIDE
-};
+// Size of the shelf when visible (height when the shelf is horizontal and
+// width when the shelf is vertical).
+ASH_EXPORT constexpr int kShelfSize = 48;
// We reserve a small area on the edge of the workspace area to ensure that
// the resize handle at the edge of the window can be hit.
@@ -83,8 +78,6 @@ constexpr int kAppListButtonRadius = kOverflowButtonSize / 2;
// The direction of the focus cycling.
enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD };
-ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant);
-
} // namespace ash
#endif // ASH_SHELF_SHELF_CONSTANTS_H_
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698