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

Unified Diff: ash/wm/window_cycle_list.h

Issue 2096063002: [ash-md] Adds UMA items count and selection depth for Alt+Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Adds UMA items count and selection depth for Alt+Tab (comments) Created 4 years, 6 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/window_cycle_controller.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9420a29bc8a33990248dfa89e09a32cc1f97d6b5 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., the position of an active window in a global MRU ordering.
int current_index_;
// Wrapper for the window brought to the front.
« no previous file with comments | « ash/wm/window_cycle_controller.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698