diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 13:00:55 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 13:00:55 +0000 |
commit | f553247ebf96528afde64b205cc4fb8733fb08ce (patch) | |
tree | 025fa9618eb4bec03f93e58a35fbf2b97dfa5a76 /ash/focus_cycler.cc | |
parent | 92e713a7e3b2b5a2458876f81a053d0c6b7ce5fd (diff) | |
download | chromium_src-f553247ebf96528afde64b205cc4fb8733fb08ce.zip chromium_src-f553247ebf96528afde64b205cc4fb8733fb08ce.tar.gz chromium_src-f553247ebf96528afde64b205cc4fb8733fb08ce.tar.bz2 |
Experimental Extension Keybinding (first cut).
Implemented in this cut:
- End-to-end extension keybinding -- in one dimension, that is -- no UI, just basic functionality, such as:
- Manifest changes to specify keybinding.
- A simple parser to parse the keybinding from the manifest.
- An Extension Keybinding Registry object.
- The ability to open browser action popups, page action popups and send named events to the Extension.
Not implemented:
- All non-Windows specific code.
- Install-success-bubble UI changes (that notify the user of new keybinding -- or of keybinding conflict)
- A UI to show all keybindings and keybinding conflicts, allowing user to reconfigure keybindings.
BUG=27702
TEST=This is tested by an automated test and requires an extension to test manually (one that registers keybinding shortcuts).
Review URL: https://chromiumcodereview.appspot.com/9402018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/focus_cycler.cc')
-rw-r--r-- | ash/focus_cycler.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ash/focus_cycler.cc b/ash/focus_cycler.cc index eccb992..f1877d1 100644 --- a/ash/focus_cycler.cc +++ b/ash/focus_cycler.cc @@ -27,9 +27,13 @@ void FocusCycler::AddWidget(views::Widget* widget) { widgets_.push_back(widget); widget->GetFocusManager()->RegisterAccelerator( - ui::Accelerator(ui::VKEY_F2, false, true, false), this); + ui::Accelerator(ui::VKEY_F2, false, true, false), + ui::AcceleratorManager::kNormalPriority, + this); widget->GetFocusManager()->RegisterAccelerator( - ui::Accelerator(ui::VKEY_F1, false, true, false), this); + ui::Accelerator(ui::VKEY_F1, false, true, false), + ui::AcceleratorManager::kNormalPriority, + this); } void FocusCycler::RotateFocus(Direction direction) { |