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

Unified Diff: ash/wm/overview/window_selector_controller.cc

Issue 1059903002: Allow Alt-Tab to move the focus to docked windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_controller.cc
diff --git a/ash/wm/overview/window_selector_controller.cc b/ash/wm/overview/window_selector_controller.cc
index df14d27e87c57fb4b8b912d3c195b48d7583c553..73b9c148146c1129afb2de9ddd2c4f98de5ff4cc 100644
--- a/ash/wm/overview/window_selector_controller.cc
+++ b/ash/wm/overview/window_selector_controller.cc
@@ -46,8 +46,13 @@ void WindowSelectorController::ToggleOverview() {
if (!CanSelect())
return;
- std::vector<aura::Window*> windows = ash::Shell::GetInstance()->
- mru_window_tracker()->BuildMruWindowList();
+ aura::Window::Windows windows =
+ ash::Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList();
+ auto end =
+ std::remove_if(windows.begin(), windows.end(),
+ std::not1(std::ptr_fun(&WindowSelector::IsSelectable)));
+ windows.resize(end - windows.begin());
+
// Don't enter overview mode with no windows.
if (windows.empty())
return;
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698