| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_AURA_KEY_EVENT_WATCHER_AURA_H_ | 5 #ifndef ASH_AURA_KEY_EVENT_WATCHER_AURA_H_ |
| 6 #define ASH_AURA_KEY_EVENT_WATCHER_AURA_H_ | 6 #define ASH_AURA_KEY_EVENT_WATCHER_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/key_event_watcher.h" | 11 #include "ash/key_event_watcher.h" |
| 12 #include "ui/events/event_handler.h" | 12 #include "ui/events/event_handler.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 class KeyEvent; | 15 class KeyEvent; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 // An EventHandler based KeyEventWatcher implementation. | 20 // An EventHandler based KeyEventWatcher implementation. |
| 21 class ASH_EXPORT KeyEventWatcherAura : public KeyEventWatcher, | 21 class ASH_EXPORT KeyEventWatcherAura : public KeyEventWatcher, |
| 22 public ui::EventHandler { | 22 public ui::EventHandler { |
| 23 public: | 23 public: |
| 24 KeyEventWatcherAura(); | 24 KeyEventWatcherAura(); |
| 25 ~KeyEventWatcherAura() override; | 25 ~KeyEventWatcherAura() override; |
| 26 | 26 |
| 27 // ui::EventHandler: | 27 // ui::EventHandler: |
| 28 void OnKeyEvent(ui::KeyEvent* event) override; | 28 void OnKeyEvent(ui::KeyEvent* event) override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(KeyEventWatcherAura); | 31 DISALLOW_COPY_AND_ASSIGN(KeyEventWatcherAura); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace ash | 34 } // namespace ash |
| 35 | 35 |
| 36 #endif // ASH_AURA_KEY_EVENT_WATCHER_AURA_H_ | 36 #endif // ASH_AURA_KEY_EVENT_WATCHER_AURA_H_ |
| OLD | NEW |