| 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
|
|
|