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

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

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/shelf/wm_shelf_util.cc
diff --git a/ash/common/wm/shelf/wm_shelf_constants.cc b/ash/common/shelf/wm_shelf_util.cc
similarity index 50%
rename from ash/common/wm/shelf/wm_shelf_constants.cc
rename to ash/common/shelf/wm_shelf_util.cc
index e393c26073777a48b0ff6f2fbd2693665c0dd8ed..05ba442a59dfa159c59c41a5cc4002770c830248 100644
--- a/ash/common/wm/shelf/wm_shelf_constants.cc
+++ b/ash/common/shelf/wm_shelf_util.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/common/wm/shelf/wm_shelf_constants.h"
+#include "ash/common/shelf/wm_shelf_util.h"
James Cook 2016/06/03 19:52:09 Also, reitveld is wrong about this file being a re
namespace ash {
-namespace wm {
-const int kShelfBackgroundAlpha = 204;
-const int kTimeToSwitchBackgroundMs = 1000;
+bool IsHorizontalAlignment(ShelfAlignment alignment) {
+ return alignment == SHELF_ALIGNMENT_BOTTOM ||
+ alignment == SHELF_ALIGNMENT_BOTTOM_LOCKED;
+}
-} // namespace wm
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698