Chromium Code Reviews| 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 |