| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/activation_controller.h" | 5 #include "ash/wm/activation_controller.h" |
| 6 | 6 |
| 7 #include "ash/wm/window_util.h" |
| 7 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
| 8 #include "ui/aura/client/activation_delegate.h" | 9 #include "ui/aura/client/activation_delegate.h" |
| 9 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
| 10 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 11 #include "ui/aura/window_delegate.h" | 12 #include "ui/aura/window_delegate.h" |
| 12 #include "ui/aura_shell/shell.h" | 13 #include "ui/aura_shell/shell.h" |
| 13 #include "ui/aura_shell/shell_window_ids.h" | 14 #include "ui/aura_shell/shell_window_ids.h" |
| 14 #include "ui/aura_shell/window_util.h" | |
| 15 | 15 |
| 16 namespace aura_shell { | 16 namespace aura_shell { |
| 17 namespace internal { | 17 namespace internal { |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 aura::Window* GetContainer(int id) { | 20 aura::Window* GetContainer(int id) { |
| 21 return Shell::GetInstance()->GetContainer(id); | 21 return Shell::GetInstance()->GetContainer(id); |
| 22 } | 22 } |
| 23 | 23 |
| 24 // Returns true if children of |window| can be activated. | 24 // Returns true if children of |window| can be activated. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 i != container->children().rend(); | 178 i != container->children().rend(); |
| 179 ++i) { | 179 ++i) { |
| 180 if (*i != ignore && CanActivateWindow(*i)) | 180 if (*i != ignore && CanActivateWindow(*i)) |
| 181 return *i; | 181 return *i; |
| 182 } | 182 } |
| 183 return NULL; | 183 return NULL; |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace internal | 186 } // namespace internal |
| 187 } // namespace aura_shell | 187 } // namespace aura_shell |
| OLD | NEW |