OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_EVENT_HANDLER_H_ | |
6 #define UI_VIEWS_CONTROLS_MENU_MENU_EVENT_HANDLER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/events/event_handler.h" | |
10 #include "ui/views/views_export.h" | |
11 | |
12 namespace ui { | |
13 class Accelerator; | |
14 } | |
15 | |
16 namespace views { | |
17 | |
18 // Handles events while a menu is open. | |
19 class VIEWS_EXPORT MenuEventHandler : public ui::EventHandler { | |
sky
2015/09/09 15:44:52
MenuEventHandler, and your description, are too ge
afakhry
2015/09/09 20:21:33
Even with the OnTouchEvent() present?
sky
2015/09/09 21:30:55
While not 100% accurate I feel that MenuKeyEventHa
afakhry
2015/09/09 23:59:52
Done.
| |
20 public: | |
21 MenuEventHandler(); | |
22 ~MenuEventHandler() override; | |
23 | |
24 // ui::EventHandler: | |
25 void OnKeyEvent(ui::KeyEvent* event) override; | |
26 void OnTouchEvent(ui::TouchEvent* event) override; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(MenuEventHandler); | |
30 }; | |
31 | |
32 } // namespace views | |
33 | |
34 #endif // UI_VIEWS_CONTROLS_MENU_MENU_EVENT_HANDLER_H_ | |
OLD | NEW |