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..c95c1937025ec2995c76a94e4b2f08215d206427 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); |
@@ -124,6 +131,9 @@ class ASH_EXPORT WindowGrid : public aura::WindowObserver { |
// Current selected window position. |
size_t selected_index_; |
+ // Indicates if there is at least one undimmed item in the overview. |
+ bool has_active_item_; |
+ |
// Number of columns in the grid. |
size_t num_columns_; |