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 #ifndef FOCUS_CYCLER_H_ | 5 #ifndef FOCUS_CYCLER_H_ |
6 #define FOCUS_CYCLER_H_ | 6 #define FOCUS_CYCLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "ash/ash_export.h" |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "ui/base/accelerators/accelerator.h" | 13 #include "ui/base/accelerators/accelerator.h" |
13 | 14 |
14 namespace views { | 15 namespace views { |
15 class Widget; | 16 class Widget; |
16 } // namespace views | 17 } // namespace views |
17 | 18 |
18 namespace ash { | 19 namespace ash { |
19 | 20 |
20 namespace internal { | 21 namespace internal { |
21 | 22 |
22 // This class handles moving focus between a set of widgets and the main browser | 23 // This class handles moving focus between a set of widgets and the main browser |
23 // window. | 24 // window. |
24 class FocusCycler : public ui::AcceleratorTarget { | 25 class ASH_EXPORT FocusCycler : public ui::AcceleratorTarget { |
25 public: | 26 public: |
26 enum Direction { | 27 enum Direction { |
27 FORWARD, | 28 FORWARD, |
28 BACKWARD | 29 BACKWARD |
29 }; | 30 }; |
30 | 31 |
31 FocusCycler(); | 32 FocusCycler(); |
32 virtual ~FocusCycler(); | 33 virtual ~FocusCycler(); |
33 | 34 |
34 // Returns the widget the FocusCycler is attempting to activate or NULL if | 35 // Returns the widget the FocusCycler is attempting to activate or NULL if |
(...skipping 18 matching lines...) Expand all Loading... |
53 views::Widget* widget_activating_; | 54 views::Widget* widget_activating_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(FocusCycler); | 56 DISALLOW_COPY_AND_ASSIGN(FocusCycler); |
56 }; | 57 }; |
57 | 58 |
58 } // namespace internal | 59 } // namespace internal |
59 | 60 |
60 } // namespace ash | 61 } // namespace ash |
61 | 62 |
62 #endif // FOCUS_CYCLER_H_ | 63 #endif // FOCUS_CYCLER_H_ |
OLD | NEW |