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

Unified Diff: ui/views/views_delegate.h

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's comments 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index e2f33b05caa5e032b7575788c8e6b364d7b61e6d..0d2448f9a9d7094f495c291fe7f50c56144562d8 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -102,6 +102,10 @@ class VIEWS_EXPORT ViewsDelegate {
int item_count,
bool has_submenu);
+ // Invoked when an accelerator is pressed and a menu is shown. Intended as a
+ // way for accelerators to be processed while a menu is showing.
+ virtual void HandleKeyEventOnMenu(ui::KeyEvent* event);
sky 2015/09/09 15:44:52 In looking at how you use this function I think it
afakhry 2015/09/09 20:21:33 Done.
+
#if defined(OS_WIN)
// Retrieves the default window icon to use for windows if none is specified.
virtual HICON GetDefaultWindowIcon() const;
« ui/views/views.gyp ('K') | « ui/views/views.gyp ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698