diff options
| author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 09:53:29 +0000 |
|---|---|---|
| committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 09:53:29 +0000 |
| commit | 5188dca135b28af1bfe2ac2d562fe8c42a86e795 (patch) | |
| tree | 2de29d809c8b8c24bf9b7a556d921f8a30bc4fd1 /chrome/browser/extensions/extension_keybinding_registry.h | |
| parent | c29c63a69ce698dc756ce155f90c1341a1303ba6 (diff) | |
| download | chromium_src-5188dca135b28af1bfe2ac2d562fe8c42a86e795.zip chromium_src-5188dca135b28af1bfe2ac2d562fe8c42a86e795.tar.gz chromium_src-5188dca135b28af1bfe2ac2d562fe8c42a86e795.tar.bz2 | |
Config UI for Extension Commands (part 1).
This changes the current overlay so that input is possible (selecting which keyboard shortcut to use). It also suspends current Chrome keyboard handling (Views only), while capturing the shortcut, so that you can press ie. Ctrl-F without Chrome eating your keyboard assignment and instead showing the Find box.
NOTE: This does not persist the user's choice (future changelist).
BUG=121420
TEST=With a keybinding Extension installed, open chrome://extensions, click on Configure Commands, and notice that the shortcuts are listed in text boxes that are clickable and accept keyboard input.
Review URL: https://chromiumcodereview.appspot.com/10514003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_keybinding_registry.h')
| -rw-r--r-- | chrome/browser/extensions/extension_keybinding_registry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_keybinding_registry.h b/chrome/browser/extensions/extension_keybinding_registry.h index 39ca0d9..ff0850e 100644 --- a/chrome/browser/extensions/extension_keybinding_registry.h +++ b/chrome/browser/extensions/extension_keybinding_registry.h @@ -28,6 +28,10 @@ class ExtensionKeybindingRegistry : public content::NotificationObserver { explicit ExtensionKeybindingRegistry(Profile* profile); virtual ~ExtensionKeybindingRegistry(); + // Enables/Disables general shortcut handing in Chrome. Implemented in + // platform-specific ExtensionKeybindingsRegistry* files. + static void SetShortcutHandlingSuspended(bool suspended); + // Overridden from content::NotificationObserver: virtual void Observe(int type, const content::NotificationSource& source, |
