OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/overview/window_selector.h" | 5 #include "ash/wm/overview/window_selector.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/wm/activation_controller.h" | |
11 #include "ash/wm/mru_window_tracker.h" | 10 #include "ash/wm/mru_window_tracker.h" |
12 #include "ash/wm/overview/window_overview.h" | 11 #include "ash/wm/overview/window_overview.h" |
13 #include "ash/wm/overview/window_selector_delegate.h" | 12 #include "ash/wm/overview/window_selector_delegate.h" |
14 #include "ash/wm/overview/window_selector_window.h" | 13 #include "ash/wm/overview/window_selector_window.h" |
15 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
16 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "ui/aura/client/activation_client.h" |
17 #include "ui/aura/client/focus_client.h" | 17 #include "ui/aura/client/focus_client.h" |
18 #include "ui/aura/root_window.h" | 18 #include "ui/aura/root_window.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 #include "ui/base/events/event.h" | 20 #include "ui/base/events/event.h" |
21 #include "ui/base/events/event_handler.h" | 21 #include "ui/base/events/event_handler.h" |
22 | 22 |
23 namespace ash { | 23 namespace ash { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // If the window is in the windows_ list it needs to continue to be observed. | 262 // If the window is in the windows_ list it needs to continue to be observed. |
263 if (std::find_if(windows_.begin(), windows_.end(), | 263 if (std::find_if(windows_.begin(), windows_.end(), |
264 WindowSelectorWindowComparator(restore_focus_window_)) == | 264 WindowSelectorWindowComparator(restore_focus_window_)) == |
265 windows_.end()) { | 265 windows_.end()) { |
266 restore_focus_window_->RemoveObserver(this); | 266 restore_focus_window_->RemoveObserver(this); |
267 } | 267 } |
268 restore_focus_window_ = NULL; | 268 restore_focus_window_ = NULL; |
269 } | 269 } |
270 | 270 |
271 } // namespace ash | 271 } // namespace ash |
OLD | NEW |