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

Unified Diff: ash/common/wm/overview/window_selector.h

Issue 2667293002: [ash-md] Adds support for gesture to move selection in overview mode (Closed)
Patch Set: [ash-md] Adds support for gesture to move selection in overview mode Created 3 years, 11 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/common/wm/overview/window_selector.h
diff --git a/ash/common/wm/overview/window_selector.h b/ash/common/wm/overview/window_selector.h
index bb3f6d417088ef7326f40418600a82bf1041a31e..550c280e36cab42771b0d721db25a518a4972317 100644
--- a/ash/common/wm/overview/window_selector.h
+++ b/ash/common/wm/overview/window_selector.h
@@ -61,6 +61,14 @@ class ASH_EXPORT WindowSelector : public display::DisplayObserver,
// Called when the last window selector item from a grid is deleted.
void OnGridEmpty(WindowGrid* grid);
+ // Moves the current selection by |increment| items. Positive values of
+ // |increment| move the selection forward, negative values mov it backward.
tdanderson 2017/02/06 20:13:57 nit: "move"
varkha 2017/02/08 20:41:13 Done.
+ void IncrementSelection(int increment);
+
+ // Accepts current selection if any. Returns true if a selection was made,
+ // false otherwise.
+ bool AcceptSelection();
+
// Activates |item's| window.
void SelectWindow(WindowSelectorItem* item);
« no previous file with comments | « no previous file | ash/common/wm/overview/window_selector.cc » ('j') | ash/common/wm/overview/window_selector_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698