| 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/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/wm/activation_controller_delegate.h" | 10 #include "ash/wm/activation_controller_delegate.h" |
| 11 #include "ash/wm/property_util.h" | 11 #include "ash/wm/property_util.h" |
| 12 #include "ash/wm/window_modality_controller.h" | |
| 13 #include "ash/wm/window_util.h" | 12 #include "ash/wm/window_util.h" |
| 14 #include "ash/wm/workspace_controller.h" | 13 #include "ash/wm/workspace_controller.h" |
| 15 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
| 16 #include "ui/aura/client/activation_change_observer.h" | 15 #include "ui/aura/client/activation_change_observer.h" |
| 17 #include "ui/aura/client/activation_delegate.h" | 16 #include "ui/aura/client/activation_delegate.h" |
| 18 #include "ui/aura/client/aura_constants.h" | 17 #include "ui/aura/client/aura_constants.h" |
| 19 #include "ui/aura/client/focus_client.h" | 18 #include "ui/aura/client/focus_client.h" |
| 20 #include "ui/aura/env.h" | 19 #include "ui/aura/env.h" |
| 21 #include "ui/aura/root_window.h" | 20 #include "ui/aura/root_window.h" |
| 22 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 23 #include "ui/aura/window_delegate.h" | 22 #include "ui/aura/window_delegate.h" |
| 24 #include "ui/base/ui_base_types.h" | 23 #include "ui/base/ui_base_types.h" |
| 25 #include "ui/compositor/layer.h" | 24 #include "ui/compositor/layer.h" |
| 25 #include "ui/views/corewm/window_modality_controller.h" |
| 26 | 26 |
| 27 namespace ash { | 27 namespace ash { |
| 28 namespace internal { | 28 namespace internal { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // These are the list of container ids of containers which may contain windows | 31 // These are the list of container ids of containers which may contain windows |
| 32 // that need to be activated in the order that they should be activated. | 32 // that need to be activated in the order that they should be activated. |
| 33 const int kWindowContainerIds[] = { | 33 const int kWindowContainerIds[] = { |
| 34 kShellWindowId_LockSystemModalContainer, | 34 kShellWindowId_LockSystemModalContainer, |
| 35 kShellWindowId_SettingBubbleContainer, | 35 kShellWindowId_SettingBubbleContainer, |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 aura::Window* window = static_cast<aura::Window*>(event->target()); | 421 aura::Window* window = static_cast<aura::Window*>(event->target()); |
| 422 window = delegate_->WillFocusWindow(window); | 422 window = delegate_->WillFocusWindow(window); |
| 423 if (GetActiveWindow() != window) { | 423 if (GetActiveWindow() != window) { |
| 424 aura::client::GetFocusClient(window)->FocusWindow( | 424 aura::client::GetFocusClient(window)->FocusWindow( |
| 425 FindFocusableWindowFor(window), event); | 425 FindFocusableWindowFor(window), event); |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace internal | 429 } // namespace internal |
| 430 } // namespace ash | 430 } // namespace ash |
| OLD | NEW |