| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "ash/wm/window_modality_controller.h" | 9 #include "ash/wm/window_modality_controller.h" |
| 10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
| 11 #include "base/auto_reset.h" | 11 #include "base/auto_reset.h" |
| 12 #include "ui/aura/client/activation_delegate.h" | 12 #include "ui/aura/client/activation_delegate.h" |
| 13 #include "ui/aura/client/aura_constants.h" | 13 #include "ui/aura/client/aura_constants.h" |
| 14 #include "ui/aura/env.h" | 14 #include "ui/aura/env.h" |
| 15 #include "ui/aura/root_window.h" | 15 #include "ui/aura/root_window.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/aura/window_delegate.h" | 17 #include "ui/aura/window_delegate.h" |
| 18 #include "ui/base/ui_base_types.h" | 18 #include "ui/base/ui_base_types.h" |
| 19 #include "ui/gfx/compositor/layer.h" | 19 #include "ui/compositor/layer.h" |
| 20 | 20 |
| 21 namespace ash { | 21 namespace ash { |
| 22 namespace internal { | 22 namespace internal { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // These are the list of container ids of containers which may contain windows | 25 // These are the list of container ids of containers which may contain windows |
| 26 // that need to be activated in the order that they should be activated. | 26 // that need to be activated in the order that they should be activated. |
| 27 const int kWindowContainerIds[] = { | 27 const int kWindowContainerIds[] = { |
| 28 kShellWindowId_LockSystemModalContainer, | 28 kShellWindowId_LockSystemModalContainer, |
| 29 kShellWindowId_SettingBubbleContainer, | 29 kShellWindowId_SettingBubbleContainer, |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 if (*i != ignore && | 318 if (*i != ignore && |
| 319 CanActivateWindowWithEvent(*i, NULL, CURRENT_VISIBILITY) && | 319 CanActivateWindowWithEvent(*i, NULL, CURRENT_VISIBILITY) && |
| 320 !wm::IsWindowMinimized(*i)) | 320 !wm::IsWindowMinimized(*i)) |
| 321 return *i; | 321 return *i; |
| 322 } | 322 } |
| 323 return NULL; | 323 return NULL; |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace internal | 326 } // namespace internal |
| 327 } // namespace ash | 327 } // namespace ash |
| OLD | NEW |