summaryrefslogtreecommitdiffstats
path: root/ash/wm/window_cycle_list.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 04:55:56 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 04:55:56 +0000
commit21729bcb4518c34d00a23d4fa984ea15eb19f3e2 (patch)
tree931b50f9f7c8ed354e55e333914df3bdae971e21 /ash/wm/window_cycle_list.h
parent9b0a925d5195a52ecaeb4128f3a69856ec87cf0e (diff)
downloadchromium_src-21729bcb4518c34d00a23d4fa984ea15eb19f3e2.zip
chromium_src-21729bcb4518c34d00a23d4fa984ea15eb19f3e2.tar.gz
chromium_src-21729bcb4518c34d00a23d4fa984ea15eb19f3e2.tar.bz2
Remove ShellDelegate::GetCycleWindowList. Because alt-tab operates on
all windows now there is no need to push the implementation to the delegate and it can instead be consolidated. Also added a couple more test cases, and fixed a bug that occurred if there is a single window but it wasn't active. BUG=120987 TEST=see bug, also covered by test. R=jamescook@chromium.org Review URL: http://codereview.chromium.org/9969075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130315 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_cycle_list.h')
-rw-r--r--ash/wm/window_cycle_list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ash/wm/window_cycle_list.h b/ash/wm/window_cycle_list.h
index aad0658..be12da6 100644
--- a/ash/wm/window_cycle_list.h
+++ b/ash/wm/window_cycle_list.h
@@ -34,6 +34,8 @@ class ASH_EXPORT WindowCycleList : public aura::WindowObserver {
// Cycles to the next or previous window based on |direction|.
void Step(Direction direction);
+ const WindowList& windows() const { return windows_; }
+
private:
// Returns the index of |window| in |windows_| or -1 if it isn't there.
int GetWindowIndex(aura::Window* window);