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

Unified Diff: ash/wm/window_cycle_controller.h

Issue 12618014: Switch Next Window Key functionality (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: protect against alt+tab+switch_windows interaction Created 7 years, 9 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
Index: ash/wm/window_cycle_controller.h
diff --git a/ash/wm/window_cycle_controller.h b/ash/wm/window_cycle_controller.h
index e6738928c72811f7b750fc37d7f00bd529e9eb31..4dd44fd77a0f472bcc95486df807b746976b3d75 100644
--- a/ash/wm/window_cycle_controller.h
+++ b/ash/wm/window_cycle_controller.h
@@ -58,6 +58,10 @@ class ASH_EXPORT WindowCycleController
// installs a key filter to watch for alt being released.
void HandleCycleWindow(Direction direction, bool is_alt_down);
+ // Cycles between windows without maintaining a multi-step cycle sequence
+ // (see above).
+ void HandleLinearCycleWindow();
+
// Informs the controller that the Alt key has been released and it can
// terminate the existing multi-step cycle.
void AltKeyReleased();
@@ -78,8 +82,10 @@ class ASH_EXPORT WindowCycleController
// windows being iterated over.
// If |mru_windows| is not NULL, windows in this list are put at the head of
// the window list.
+ // If |reverse_order| the window list will return in reverse order.
static std::vector<aura::Window*> BuildWindowList(
- const std::list<aura::Window*>* mru_windows);
+ const std::list<aura::Window*>* mru_windows,
+ bool reverse_order);
private:
// Call to start cycling windows. You must call StopCycling() when done.

Powered by Google App Engine
This is Rietveld 408576698