diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-28 03:49:33 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-28 03:49:33 +0000 |
commit | a68711278e0e26c9ab1640ea34d83a09b645d4e6 (patch) | |
tree | 2637500f6f12018c70d5518fa6b2c79127495ed4 /apps/shell_window.h | |
parent | 8e022325321033975ca84d8f776e144936d44587 (diff) | |
download | chromium_src-a68711278e0e26c9ab1640ea34d83a09b645d4e6.zip chromium_src-a68711278e0e26c9ab1640ea34d83a09b645d4e6.tar.gz chromium_src-a68711278e0e26c9ab1640ea34d83a09b645d4e6.tar.bz2 |
Leave fullscreen mode in an app window when ESC key is pressed.
A few things might need to be discussed like the ability for an app to prevent
the default behaviour and letting the user know about the ability to leave the
fullscreen mode using ESC.
BUG=320487
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237393
Review URL: https://codereview.chromium.org/62763003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/shell_window.h')
-rw-r--r-- | apps/shell_window.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/shell_window.h b/apps/shell_window.h index 86dafb5..e833f75 100644 --- a/apps/shell_window.h +++ b/apps/shell_window.h @@ -374,6 +374,10 @@ class ShellWindow : public content::NotificationObserver, const gfx::Rect& initial_pos, bool user_gesture, bool* was_blocked) OVERRIDE; + virtual bool PreHandleKeyboardEvent( + content::WebContents* source, + const content::NativeWebKeyboardEvent& event, + bool* is_keyboard_shortcut) OVERRIDE; virtual void HandleKeyboardEvent( content::WebContents* source, const content::NativeWebKeyboardEvent& event) OVERRIDE; |