Chromium Code Reviews| Index: ash/wm/window_cycle_list.h |
| diff --git a/ash/wm/window_cycle_list.h b/ash/wm/window_cycle_list.h |
| index 722f8ac52f63f9288f7fa02eba74b4df7e2b274c..228f6e17ae38579e0c06d59f15649c4ac3a1c306 100644 |
| --- a/ash/wm/window_cycle_list.h |
| +++ b/ash/wm/window_cycle_list.h |
| @@ -31,6 +31,8 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver { |
| // Cycles to the next or previous window based on |direction|. |
| void Step(WindowCycleController::Direction direction); |
| + int current_index() const { return current_index_; } |
| + |
| private: |
| friend class WindowCycleControllerTest; |
| const WindowList& windows() const { return windows_; } |
| @@ -47,7 +49,8 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver { |
| // alt key). |
| WindowList windows_; |
| - // Current position in the |windows_| |
| + // Current position in the |windows_|. Can be used to query selection depth |
| + // i.e. position of an active window in a global MRU ordering. |
|
tdanderson
2016/06/24 19:25:56
micro nit: "... query selection depth, i.e., the p
varkha
2016/06/24 19:59:46
Done.
|
| int current_index_; |
| // Wrapper for the window brought to the front. |