| Index: ash/wm/common/switchable_windows.cc
|
| diff --git a/ash/switchable_windows.cc b/ash/wm/common/switchable_windows.cc
|
| similarity index 52%
|
| rename from ash/switchable_windows.cc
|
| rename to ash/wm/common/switchable_windows.cc
|
| index 72b06bb9ae0e100a7abb7d8cf60edcac409bdd38..081d83684a89fcc234015a3fcfaa9019e55ad741 100644
|
| --- a/ash/switchable_windows.cc
|
| +++ b/ash/wm/common/switchable_windows.cc
|
| @@ -2,31 +2,32 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "ash/switchable_windows.h"
|
| +#include "ash/wm/common/switchable_windows.h"
|
|
|
| -#include "ash/shell_window_ids.h"
|
| -#include "ui/aura/window.h"
|
| +#include "ash/wm/common/wm_shell_window_ids.h"
|
| +#include "ash/wm/common/wm_window.h"
|
|
|
| namespace ash {
|
| +namespace wm {
|
|
|
| const int kSwitchableWindowContainerIds[] = {
|
| - kShellWindowId_DefaultContainer,
|
| - kShellWindowId_AlwaysOnTopContainer,
|
| - kShellWindowId_DockedContainer,
|
| - kShellWindowId_PanelContainer,
|
| + kShellWindowId_DefaultContainer, kShellWindowId_AlwaysOnTopContainer,
|
| + kShellWindowId_DockedContainer, kShellWindowId_PanelContainer,
|
| kShellWindowId_AppListContainer};
|
|
|
| const size_t kSwitchableWindowContainerIdsLength =
|
| arraysize(kSwitchableWindowContainerIds);
|
|
|
| -bool IsSwitchableContainer(const aura::Window* window) {
|
| +bool IsSwitchableContainer(const wm::WmWindow* window) {
|
| if (!window)
|
| return false;
|
| + const int shell_window_id = window->GetShellWindowId();
|
| for (size_t i = 0; i < kSwitchableWindowContainerIdsLength; ++i) {
|
| - if (window->id() == kSwitchableWindowContainerIds[i])
|
| + if (shell_window_id == kSwitchableWindowContainerIds[i])
|
| return true;
|
| }
|
| return false;
|
| }
|
|
|
| +} // namespace wm
|
| } // namespace ash
|
|
|