Index: ash/wm/overview/window_grid.h |
diff --git a/ash/wm/overview/window_grid.h b/ash/wm/overview/window_grid.h |
index fe4bf780ccc21a98c4ef46edd122fd684f5a437c..0b1797bfb76e0df6e27753f7dbffdca3b4eb0632 100644 |
--- a/ash/wm/overview/window_grid.h |
+++ b/ash/wm/overview/window_grid.h |
@@ -57,7 +57,7 @@ class ASH_EXPORT WindowGrid : public aura::WindowObserver { |
// Updates |selected_index_| according to the specified |direction| and calls |
// MoveSelectionWidget(). Returns |true| if the new selection index is out of |
// this window grid bounds. |
- bool Move(WindowSelector::Direction direction); |
+ bool Move(WindowSelector::Direction direction, bool animate); |
// Returns the target selected window, or NULL if there is none selected. |
WindowSelectorItem* SelectedWindow() const; |
@@ -66,6 +66,12 @@ class ASH_EXPORT WindowGrid : public aura::WindowObserver { |
// this grid owns. |
bool Contains(const aura::Window* window) const; |
+ // Dims the items whose titles do not contain |pattern| and prevents their |
+ // selection. The pattern has its accents removed and is converted to |
+ // lowercase in a l10n sensitive context. |
+ // If |pattern| is empty, no item is dimmed. |
+ void FilterItems(const base::string16& pattern); |
+ |
// Returns true if the grid has no more windows. |
bool empty() const { return window_list_.empty(); } |
@@ -98,7 +104,8 @@ class ASH_EXPORT WindowGrid : public aura::WindowObserver { |
// Moves the selection widget to the specified |direction|. |
void MoveSelectionWidget(WindowSelector::Direction direction, |
bool recreate_selection_widget, |
- bool out_of_bounds); |
+ bool out_of_bounds, |
+ bool animate); |
// Moves the selection widget to the targeted window. |
void MoveSelectionWidgetToTarget(bool animate); |