| Index: ash/wm/window_util.cc
|
| diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
|
| index 4a94e1b957f0460ef60375898d2bcf52a2da5639..59769ec97f5a3efffd928235ef3565f7263fb55b 100644
|
| --- a/ash/wm/window_util.cc
|
| +++ b/ash/wm/window_util.cc
|
| @@ -53,6 +53,15 @@ aura::Window* GetActivatableWindow(aura::Window* window) {
|
| return internal::ActivationController::GetActivatableWindow(window, NULL);
|
| }
|
|
|
| +bool CanActivateWindow(aura::Window* window) {
|
| + DCHECK(window);
|
| + if (!window->GetRootWindow())
|
| + return false;
|
| + aura::client::ActivationClient* client =
|
| + aura::client::GetActivationClient(window->GetRootWindow());
|
| + return client && client->CanActivateWindow(window);
|
| +}
|
| +
|
| bool IsWindowNormal(aura::Window* window) {
|
| return window->GetProperty(aura::client::kShowStateKey) ==
|
| ui::SHOW_STATE_NORMAL ||
|
|
|