| 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/window_cycle_controller.h" | 5 #include "ash/wm/window_cycle_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
| 10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
| 11 #include "ash/wm/activation_controller.h" | 11 #include "ash/wm/activation_controller.h" |
| 12 #include "ash/wm/window_cycle_list.h" | 12 #include "ash/wm/window_cycle_list.h" |
| 13 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
| 14 #include "ash/wm/workspace_controller.h" | 14 #include "ash/wm/workspace_controller.h" |
| 15 #include "ui/aura/event_filter.h" | 15 #include "ui/aura/event_filter.h" |
| 16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
| 17 #include "ui/base/event.h" | 17 #include "ui/base/events/event.h" |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // List of containers whose children we will cycle through. | 23 // List of containers whose children we will cycle through. |
| 24 const int kContainerIds[] = { | 24 const int kContainerIds[] = { |
| 25 internal::kShellWindowId_DefaultContainer, | 25 internal::kShellWindowId_DefaultContainer, |
| 26 internal::kShellWindowId_AlwaysOnTopContainer | 26 internal::kShellWindowId_AlwaysOnTopContainer |
| 27 }; | 27 }; |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 mru_windows_.remove(window); | 314 mru_windows_.remove(window); |
| 315 if (window->id() == internal::kShellWindowId_WorkspaceContainer) | 315 if (window->id() == internal::kShellWindowId_WorkspaceContainer) |
| 316 window->RemoveObserver(this); | 316 window->RemoveObserver(this); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void WindowCycleController::OnWindowDestroying(aura::Window* window) { | 319 void WindowCycleController::OnWindowDestroying(aura::Window* window) { |
| 320 window->RemoveObserver(this); | 320 window->RemoveObserver(this); |
| 321 } | 321 } |
| 322 | 322 |
| 323 } // namespace ash | 323 } // namespace ash |
| OLD | NEW |