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

Unified Diff: ash/wm/overview/window_grid.h

Issue 358553004: Added text filtering to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unittest Created 6 years, 5 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/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);

Powered by Google App Engine
This is Rietveld 408576698