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

Unified Diff: ash/wm/overview/window_selector_item.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_selector_item.h
diff --git a/ash/wm/overview/window_selector_item.h b/ash/wm/overview/window_selector_item.h
index ac57266c12266fba0482d92dc692c8e82dbdb17a..d76912ea0ca7f9bc32608d103b4f808056f10113 100644
--- a/ash/wm/overview/window_selector_item.h
+++ b/ash/wm/overview/window_selector_item.h
@@ -83,6 +83,11 @@ class WindowSelectorItem : public views::ButtonListener {
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
+ // Sets if the item is dimmed in the overview. Changing the value will also
+ // change the visibility of the transform windows.
+ void SetDimmed(bool dimmed);
+ bool dimmed() const { return dimmed_; }
+
protected:
// Sets the bounds of this selector's items to |target_bounds| in
// |root_window|. If |animate| the windows are animated from their current
@@ -91,9 +96,16 @@ class WindowSelectorItem : public views::ButtonListener {
const gfx::Rect& target_bounds,
bool animate) = 0;
+ // Changes the visibility of the item.
+ virtual void ChangeItemVisibility(bool visible) = 0;
flackr 2014/06/26 17:33:08 nit: Items aren't becoming invisible, just not ful
Nina 2014/06/27 15:20:39 Done.
+
// Sets the bounds used by the selector item's windows.
void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; }
+ // True if the item is being shown in the overview, false if it's being
+ // filtered.
+ bool dimmed_;
+
private:
friend class WindowSelectorTest;

Powered by Google App Engine
This is Rietveld 408576698