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

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 Terry's comments. Created 6 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
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..7c9deec0ec2ebf3db7b6ac612cba5e78fdfb8393 100644
--- a/ash/wm/overview/window_grid.h
+++ b/ash/wm/overview/window_grid.h
@@ -66,6 +66,11 @@ class ASH_EXPORT WindowGrid : public aura::WindowObserver {
// this grid owns.
bool Contains(const aura::Window* window) const;
+ // Dims the items that do not match the given pattern and prevents their
flackr 2014/06/26 17:33:07 nit:s/that do not match the given pattern/whose ti
Nina 2014/06/27 15:20:39 Done.
+ // selection. The pattern has its accents removed and is converted to
+ // lowercase in a l10n sensitive context.
+ void FilterItems(const base::string16& pattern);
+
// Returns true if the grid has no more windows.
bool empty() const { return window_list_.empty(); }
@@ -124,6 +129,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_;

Powered by Google App Engine
This is Rietveld 408576698