Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: ui/views/controls/menu/menu_key_event_handler.h

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed OnTouchEvent() Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_KEY_EVENT_HANDLER_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_KEY_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 key events while the menu is open.
19 class VIEWS_EXPORT MenuKeyEventHandler : public ui::EventHandler {
20 public:
21 MenuKeyEventHandler();
22 ~MenuKeyEventHandler() override;
23
24 // ui::EventHandler:
25 void OnKeyEvent(ui::KeyEvent* event) override;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MenuKeyEventHandler);
29 };
30
31 } // namespace views
32
33 #endif // UI_VIEWS_CONTROLS_MENU_MENU_KEY_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_controller_unittest.cc ('k') | ui/views/controls/menu/menu_key_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698