Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index b889e0bcd720e29e2b6116a56d212dbd026c2a7c..9db9e0e7c9f670affba2ff7ae8da7597abdbda74 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -11,6 +11,7 @@ |
#include "ash/app_list/app_list.h" |
#include "ash/ash_switches.h" |
#include "ash/drag_drop/drag_drop_controller.h" |
+#include "ash/focus_cycler.h" |
#include "ash/ime/input_method_event_filter.h" |
#include "ash/launcher/launcher.h" |
#include "ash/shell_delegate.h" |
@@ -297,6 +298,11 @@ void Shell::Init() { |
if (!command_line->HasSwitch(switches::kAuraNoShadows)) |
shadow_controller_.reset(new internal::ShadowController()); |
+ focus_cycler_.reset(new internal::FocusCycler()); |
+ focus_cycler_->AddWidget(status_widget_); |
+ if (!IsWindowModeCompact()) |
sky
2012/02/03 15:53:22
The window mode can be changed at runtime. See Cha
Zachary Kuznia
2012/02/06 05:48:09
Fixed to always add the launcher, and skip over it
|
+ focus_cycler_->AddWidget(launcher_->widget()); |
+ |
// Force a layout. |
root_window->layout_manager()->OnWindowResized(); |
@@ -418,6 +424,12 @@ views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView( |
return NULL; |
} |
+void Shell::RotateFocus(Direction direction) { |
+ focus_cycler_->RotateFocus( |
+ direction == FORWARD ? internal::FocusCycler::FORWARD : |
+ internal::FocusCycler::BACKWARD); |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// Shell, private: |