Separated alt-tab window cycle from overview mode
This change separates the logic into two different classes. It also
- Brings back a bounce animation when there is only one window that was
lost at some point in the past.
- Removes the minimized animation if there is only one window while alt tabbing.
Basically I brought back from the past two classes,
WindowCycleController and WindowCycleList and adapted them
to work with the new codebase. Also, I moved some tests from
WindowSelectorUnittest to WindowCycleControllerUnittest, and
removed the ones that are now irrelevant.
Finally, we are also dropping support for alt-tabbing while
in overview mode in favour of cancelling the latter.
BUG=365786
TEST=none
Review URL: https://codereview.chromium.org/260883005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269997 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/shell.h b/ash/shell.h
index 718a6c6d..c53185ae 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -363,6 +363,9 @@
VideoDetector* video_detector() {
return video_detector_.get();
}
+ WindowCycleController* window_cycle_controller() {
+ return window_cycle_controller_.get();
+ }
WindowSelectorController* window_selector_controller() {
return window_selector_controller_.get();
}
@@ -644,6 +647,7 @@
scoped_ptr<MruWindowTracker> mru_window_tracker_;
scoped_ptr< ::wm::UserActivityDetector> user_activity_detector_;
scoped_ptr<VideoDetector> video_detector_;
+ scoped_ptr<WindowCycleController> window_cycle_controller_;
scoped_ptr<WindowSelectorController> window_selector_controller_;
scoped_ptr<FocusCycler> focus_cycler_;
scoped_ptr<DisplayController> display_controller_;