Handle keyboard events with AtomEventProcessingWindow.

Some system events like cmd+` will be handled by it automatically.
This commit is contained in:
Cheng Zhao 2013-04-12 20:31:15 +08:00
parent f62b00eaac
commit 26d6df7852
5 changed files with 24 additions and 5 deletions

View file

@ -49,6 +49,11 @@ class NativeWindowMac : public NativeWindow {
protected:
void SetNonLionFullscreen(bool fullscreen);
// Implementations of content::WebContentsDelegate.
virtual void HandleKeyboardEvent(
content::WebContents*,
const content::NativeWebKeyboardEvent&) OVERRIDE;
private:
void InstallView();
void UninstallView();