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

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: gesture change 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
« no previous file with comments | « ash/wm/gestures/bezel_gesture_handler.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9f5b8be9cfbe0092609e3955ca6347601a7b6007 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,11 @@ 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 |top_most_at_end| the window list will return in ascending order instead
+ // of the default descending.
static std::vector<aura::Window*> BuildWindowList(
- const std::list<aura::Window*>* mru_windows);
+ const std::list<aura::Window*>* mru_windows,
+ bool top_most_at_end);
private:
// Call to start cycling windows. You must call StopCycling() when done.
« no previous file with comments | « ash/wm/gestures/bezel_gesture_handler.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698