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

Unified Diff: ash/common/shelf/shelf_constants.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/common/shelf/shelf_constants.h ('k') | ash/common/shelf/shelf_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_constants.cc
diff --git a/ash/common/shelf/shelf_constants.cc b/ash/common/shelf/shelf_constants.cc
deleted file mode 100644
index 80aafcd1c7a250e6db6c9369567df6a3a792a018..0000000000000000000000000000000000000000
--- a/ash/common/shelf/shelf_constants.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/shelf/shelf_constants.h"
-
-#include "base/logging.h"
-#include "third_party/skia/include/core/SkColor.h"
-
-namespace ash {
-
-const int kTimeToSwitchBackgroundMs = 1000;
-const int kWorkspaceAreaVisibleInset = 2;
-const int kWorkspaceAreaAutoHideInset = 5;
-const int kShelfAutoHideSize = 3;
-const SkColor kShelfDefaultBaseColor = SK_ColorBLACK;
-const int kShelfButtonSize = 48;
-const int kShelfButtonSpacing = 16;
-const SkColor kShelfButtonActivatedHighlightColor =
- SkColorSetA(SK_ColorWHITE, 100);
-const SkColor kShelfInkDropBaseColor = SK_ColorWHITE;
-const float kShelfInkDropVisibleOpacity = 0.2f;
-const SkColor kShelfIconColor = SK_ColorWHITE;
-const int kShelfTranslucentAlpha = 153;
-const int kOverflowButtonSize = 32;
-const int kOverflowButtonCornerRadius = 2;
-const int kAppListButtonRadius = kOverflowButtonSize / 2;
-
-int GetShelfConstant(ShelfConstant shelf_constant) {
- const int kShelfSize[] = {47, 48, 48};
- const int kShelfInsetsForAutoHide[] = {3, 0, 0};
-
- // TODO(estade): clean this up --- remove unneeded constants and reduce
- // remaining arrays to a single constant.
- const int mode = 1;
- switch (shelf_constant) {
- case SHELF_SIZE:
- return kShelfSize[mode];
- case SHELF_INSETS_FOR_AUTO_HIDE:
- return kShelfInsetsForAutoHide[mode];
- }
- NOTREACHED();
- return 0;
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/shelf/shelf_constants.h ('k') | ash/common/shelf/shelf_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698