OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ |
6 #define UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ | 6 #define UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/events/event_handler.h" | 9 #include "ui/events/event_handler.h" |
10 #include "ui/keyboard/keyboard_export.h" | 10 #include "ui/keyboard/keyboard_export.h" |
11 | 11 |
12 namespace keyboard { | 12 namespace keyboard { |
13 | 13 |
14 // EventFilter for the keyboard window, which intercepts events before they are | 14 // EventFilter for the keyboard window, which intercepts events before they are |
15 // processed by the keyboard window. | 15 // processed by the keyboard window. |
16 class KEYBOARD_EXPORT KeyboardEventFilter : public ui::EventHandler { | 16 class KeyboardEventFilter : public ui::EventHandler { |
17 public: | 17 public: |
18 KeyboardEventFilter() = default; | 18 KeyboardEventFilter() = default; |
19 ~KeyboardEventFilter() override = default; | 19 ~KeyboardEventFilter() override = default; |
20 | 20 |
21 // ui::EventHandler overrides: | 21 // ui::EventHandler overrides: |
22 void OnGestureEvent(ui::GestureEvent* event) override; | 22 void OnGestureEvent(ui::GestureEvent* event) override; |
23 | 23 |
24 private: | 24 private: |
25 DISALLOW_COPY_AND_ASSIGN(KeyboardEventFilter); | 25 DISALLOW_COPY_AND_ASSIGN(KeyboardEventFilter); |
26 }; | 26 }; |
27 | 27 |
28 } // namespace keyboard | 28 } // namespace keyboard |
29 | 29 |
30 #endif // UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ | 30 #endif // UI_KEYBOARD_KEYBOARD_EVENT_FILTER_H_ |
OLD | NEW |