diff options
Diffstat (limited to 'ash/wm/mru_window_tracker.cc')
-rw-r--r-- | ash/wm/mru_window_tracker.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ash/wm/mru_window_tracker.cc b/ash/wm/mru_window_tracker.cc index ef00dfc..0952f49 100644 --- a/ash/wm/mru_window_tracker.cc +++ b/ash/wm/mru_window_tracker.cc @@ -54,11 +54,8 @@ bool CompareWindowState(aura::Window* w1, aura::Window* w2) { // Returns a list of windows ordered by their stacking order. // If |mru_windows| is passed, these windows are moved to the front of the list. -// If |top_most_at_end|, the list is returned in descending (bottom-most / least -// recently used) order. MruWindowTracker::WindowList BuildWindowListInternal( - const std::list<aura::Window*>* mru_windows, - bool top_most_at_end) { + const std::list<aura::Window*>* mru_windows) { MruWindowTracker::WindowList windows; aura::Window::Windows root_windows = Shell::GetAllRootWindows(); @@ -115,8 +112,7 @@ MruWindowTracker::WindowList BuildWindowListInternal( std::stable_sort(windows.begin(), windows.end(), CompareWindowState); // Window cycling expects the topmost window at the front of the list. - if (!top_most_at_end) - std::reverse(windows.begin(), windows.end()); + std::reverse(windows.begin(), windows.end()); return windows; } @@ -143,13 +139,12 @@ MruWindowTracker::~MruWindowTracker() { } // static -MruWindowTracker::WindowList MruWindowTracker::BuildWindowList( - bool top_most_at_end) { - return BuildWindowListInternal(NULL, top_most_at_end); +MruWindowTracker::WindowList MruWindowTracker::BuildWindowList() { + return BuildWindowListInternal(NULL); } MruWindowTracker::WindowList MruWindowTracker::BuildMruWindowList() { - return BuildWindowListInternal(&mru_windows_, false); + return BuildWindowListInternal(&mru_windows_); } void MruWindowTracker::SetIgnoreActivations(bool ignore) { |