views: Use UnhandledKeyboardEventHandler to handle accelerators.

This commit is contained in:
Cheng Zhao 2014-07-07 23:02:46 +08:00
parent 3d36a6a793
commit b99262af32
2 changed files with 7 additions and 9 deletions

View file

@ -14,6 +14,7 @@
#include "ui/views/widget/widget_delegate.h"
namespace views {
class UnhandledKeyboardEventHandler;
class Widget;
}
@ -105,6 +106,9 @@ class NativeWindowViews : public NativeWindow,
scoped_ptr<views::Widget> window_;
views::View* web_view_; // Managed by inspectable_web_contents_.
// Handles unhandled keyboard messages coming back from the renderer process.
scoped_ptr<views::UnhandledKeyboardEventHandler> keyboard_event_handler_;
// Map from accelerator to menu item's command id.
accelerator_util::AcceleratorTable accelerator_table_;