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