Chromium Code Reviews| 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 and excludes pinch gesture events. | |
|
bshe
2017/01/31 16:39:25
"excludes pinch gesture events" doesn't feel like
yhanada
2017/02/01 02:48:31
I removed that part.
| |
| 16 class KEYBOARD_EXPORT KeyboardEventFilter : public ui::EventHandler { | |
| 17 public: | |
| 18 KeyboardEventFilter(){}; | |
|
oshima
2017/01/31 21:06:53
space between ){. Did you run git cl format?
yhanada
2017/02/01 02:48:31
Yes. git cl format removes the spaces.
| |
| 19 ~KeyboardEventFilter() override{}; | |
|
bshe
2017/01/31 16:39:25
nit: use "= default"?
yhanada
2017/02/01 02:48:31
Done.
| |
| 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 |