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_WM_WINDOW_CYCLE_CONTROLLER_H_ | 5 #ifndef ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ |
6 #define ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ | 6 #define ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/time/time.h" |
11 | 12 |
12 namespace ui { | 13 namespace ui { |
13 class EventHandler; | 14 class EventHandler; |
14 } | 15 } |
15 | 16 |
16 namespace ash { | 17 namespace ash { |
17 | 18 |
18 class WindowCycleList; | 19 class WindowCycleList; |
19 | 20 |
20 // Controls cycling through windows with the keyboard via alt-tab. | 21 // Controls cycling through windows with the keyboard via alt-tab. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 59 |
59 private: | 60 private: |
60 // Cycles to the next or previous window based on |direction|. | 61 // Cycles to the next or previous window based on |direction|. |
61 void Step(Direction direction); | 62 void Step(Direction direction); |
62 | 63 |
63 scoped_ptr<WindowCycleList> window_cycle_list_; | 64 scoped_ptr<WindowCycleList> window_cycle_list_; |
64 | 65 |
65 // Event handler to watch for release of alt key. | 66 // Event handler to watch for release of alt key. |
66 scoped_ptr<ui::EventHandler> event_handler_; | 67 scoped_ptr<ui::EventHandler> event_handler_; |
67 | 68 |
| 69 base::Time cycle_start_time_; |
| 70 |
68 DISALLOW_COPY_AND_ASSIGN(WindowCycleController); | 71 DISALLOW_COPY_AND_ASSIGN(WindowCycleController); |
69 }; | 72 }; |
70 | 73 |
71 } // namespace ash | 74 } // namespace ash |
72 | 75 |
73 #endif // ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ | 76 #endif // ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ |
OLD | NEW |