OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_EXO_KEYBOARD_H_ | 5 #ifndef COMPONENTS_EXO_KEYBOARD_H_ |
6 #define COMPONENTS_EXO_KEYBOARD_H_ | 6 #define COMPONENTS_EXO_KEYBOARD_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/exo/surface_observer.h" | 11 #include "components/exo/surface_observer.h" |
12 #include "components/exo/wm_helper.h" | 12 #include "components/exo/wm_helper.h" |
13 #include "ui/aura/client/focus_change_observer.h" | 13 #include "ui/aura/client/focus_change_observer.h" |
14 #include "ui/events/event_handler.h" | 14 #include "ui/events/event_handler.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 enum class DomCode; | 17 enum class DomCode; |
18 class Event; | |
19 class KeyEvent; | 18 class KeyEvent; |
20 } | 19 } |
21 | 20 |
22 namespace exo { | 21 namespace exo { |
23 class KeyboardDelegate; | 22 class KeyboardDelegate; |
24 class Surface; | 23 class Surface; |
25 | 24 |
26 // This class implements a client keyboard that represents one or more keyboard | 25 // This class implements a client keyboard that represents one or more keyboard |
27 // devices. | 26 // devices. |
28 class Keyboard : public ui::EventHandler, | 27 class Keyboard : public ui::EventHandler, |
(...skipping 28 matching lines...) Expand all Loading... |
57 | 56 |
58 // Current set of modifier flags. | 57 // Current set of modifier flags. |
59 int modifier_flags_ = 0; | 58 int modifier_flags_ = 0; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(Keyboard); | 60 DISALLOW_COPY_AND_ASSIGN(Keyboard); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace exo | 63 } // namespace exo |
65 | 64 |
66 #endif // COMPONENTS_EXO_KEYBOARD_H_ | 65 #endif // COMPONENTS_EXO_KEYBOARD_H_ |
OLD | NEW |