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

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: Fix include Created 8 years, 11 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') | ash/shell.cc » ('J')
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 a1dcb76047e469a2736b781fe25a582a7f1f2919..799669e258e0c90bb19a81775292fe3ba9691555 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -46,6 +46,7 @@ class ActivationController;
class AcceleratorFilter;
class AppList;
class DragDropController;
+class FocusCycler;
class InputMethodEventFilter;
class RootWindowLayoutManager;
class ShadowController;
@@ -71,6 +72,11 @@ class ASH_EXPORT Shell {
COMPACT_MODE
};
+ 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);
@@ -113,6 +119,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();
}
@@ -188,6 +197,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') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698