| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ |
| 6 #define ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ | 6 #define ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 | 13 |
| 14 namespace ui { | |
| 15 class EventHandler; | |
| 16 } | |
| 17 | |
| 18 namespace ash { | 14 namespace ash { |
| 19 | 15 |
| 20 class WindowCycleEventFilter; | 16 class WindowCycleEventFilter; |
| 21 class WindowCycleList; | 17 class WindowCycleList; |
| 22 class WmWindow; | 18 class WmWindow; |
| 23 | 19 |
| 24 // Controls cycling through windows with the keyboard via alt-tab. | 20 // Controls cycling through windows with the keyboard via alt-tab. |
| 25 // Windows are sorted primarily by most recently used, and then by screen order. | 21 // Windows are sorted primarily by most recently used, and then by screen order. |
| 26 // We activate windows as you cycle through them, so the order on the screen | 22 // We activate windows as you cycle through them, so the order on the screen |
| 27 // may change during the gesture, but the most recently used list isn't updated | 23 // may change during the gesture, but the most recently used list isn't updated |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 std::unique_ptr<WindowCycleEventFilter> event_filter_; | 67 std::unique_ptr<WindowCycleEventFilter> event_filter_; |
| 72 | 68 |
| 73 base::Time cycle_start_time_; | 69 base::Time cycle_start_time_; |
| 74 | 70 |
| 75 DISALLOW_COPY_AND_ASSIGN(WindowCycleController); | 71 DISALLOW_COPY_AND_ASSIGN(WindowCycleController); |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 } // namespace ash | 74 } // namespace ash |
| 79 | 75 |
| 80 #endif // ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ | 76 #endif // ASH_COMMON_WM_WINDOW_CYCLE_CONTROLLER_H_ |
| OLD | NEW |