Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: ash/shell.h

Issue 9295049: Allow focus to be sent between browser window and launcher/status window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fix Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/focus_cycler.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 16add64ab50f47014fc13803f5be4f8f8518fe7a..8283881afaf1fd4f2b0f5449fffdf2312547662c 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);
@@ -115,6 +121,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();
}
@@ -190,6 +199,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_;
« no previous file with comments | « ash/focus_cycler.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698