diff options
Diffstat (limited to 'ash/switchable_windows.cc')
-rw-r--r-- | ash/switchable_windows.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ash/switchable_windows.cc b/ash/switchable_windows.cc index 86c31f6..352599b 100644 --- a/ash/switchable_windows.cc +++ b/ash/switchable_windows.cc @@ -5,6 +5,7 @@ #include "ash/switchable_windows.h" #include "ash/shell_window_ids.h" +#include "ui/aura/window.h" namespace ash { @@ -17,4 +18,14 @@ const int kSwitchableWindowContainerIds[] = { const size_t kSwitchableWindowContainerIdsLength = arraysize(kSwitchableWindowContainerIds); +bool IsSwitchableContainer(const aura::Window* window) { + if (!window) + return false; + for (size_t i = 0; i < kSwitchableWindowContainerIdsLength; ++i) { + if (window->id() == kSwitchableWindowContainerIds[i]) + return true; + } + return false; +} + } // namespace ash |