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

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

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: ash/wm/common/shelf/wm_shelf_util.cc
diff --git a/ash/wm/common/shelf/wm_shelf_constants.cc b/ash/wm/common/shelf/wm_shelf_util.cc
similarity index 52%
copy from ash/wm/common/shelf/wm_shelf_constants.cc
copy to ash/wm/common/shelf/wm_shelf_util.cc
index fa0425c97a671ec2b850a611e87ee3aa395e90e6..5133feb7600ddba33547cf43974d2ab5edcd4bc6 100644
--- a/ash/wm/common/shelf/wm_shelf_constants.cc
+++ b/ash/wm/common/shelf/wm_shelf_util.cc
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/wm/common/shelf/wm_shelf_constants.h"
+#include "ash/wm/common/shelf/wm_shelf_util.h"
namespace ash {
namespace wm {
-const int kShelfBackgroundAlpha = 204;
-const int kTimeToSwitchBackgroundMs = 1000;
+bool IsHorizontalAlignment(wm::ShelfAlignment alignment) {
+ return alignment == wm::SHELF_ALIGNMENT_BOTTOM ||
+ alignment == wm::SHELF_ALIGNMENT_BOTTOM_LOCKED;
+}
} // namespace wm
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698