diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-07 07:41:51 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-07 07:41:51 +0000 |
commit | 3d29912aabadc1413d481e4d9b8b5f1d24516817 (patch) | |
tree | 3515d553ae909a50483d145d963d3bad08435342 /ash/shell.h | |
parent | 97b1b733eb4314c287c8c04c3514d530677bf945 (diff) | |
download | chromium_src-3d29912aabadc1413d481e4d9b8b5f1d24516817.zip chromium_src-3d29912aabadc1413d481e4d9b8b5f1d24516817.tar.gz chromium_src-3d29912aabadc1413d481e4d9b8b5f1d24516817.tar.bz2 |
Allow focus to be sent between browser window and launcher/status window
R=sky@chromium.org
BUG=104192
TEST=Use ctrl+forward/back to move between browser window and status area/launcher
Review URL: http://codereview.chromium.org/9295049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r-- | ash/shell.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/shell.h b/ash/shell.h index 4ffee25..374015d 100644 --- a/ash/shell.h +++ b/ash/shell.h @@ -47,6 +47,7 @@ class ActivationController; class AcceleratorFilter; class AppList; class DragDropController; +class FocusCycler; class InputMethodEventFilter; class RootWindowLayoutManager; class ShadowController; @@ -73,6 +74,11 @@ class ASH_EXPORT Shell { MODE_OVERLAPPING, }; + enum Direction { + FORWARD, + BACKWARD + }; + // A shell must be explicitly created so that it can call |Init()| with the // delegate set. |delegate| can be NULL (if not required for initialization). static Shell* CreateInstance(ShellDelegate* delegate); @@ -118,6 +124,9 @@ class ASH_EXPORT Shell { views::NonClientFrameView* CreateDefaultNonClientFrameView( views::Widget* widget); + // Rotate focus through containers that can recieve focus. + void RotateFocus(Direction direction); + AcceleratorController* accelerator_controller() { return accelerator_controller_.get(); } @@ -193,6 +202,7 @@ class ASH_EXPORT Shell { scoped_ptr<PowerButtonController> power_button_controller_; scoped_ptr<VideoDetector> video_detector_; scoped_ptr<WindowCycleController> window_cycle_controller_; + scoped_ptr<internal::FocusCycler> focus_cycler_; // An event filter that pre-handles all key events to send them to an IME. scoped_ptr<internal::InputMethodEventFilter> input_method_filter_; |