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

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 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_selector_item.h
diff --git a/ash/wm/overview/window_selector_item.h b/ash/wm/overview/window_selector_item.h
index 2cae6749572887de55d0cb18ad70759655e537e4..279aed82ce2a496b01ed6e271d98ebff6292cb63 100644
--- a/ash/wm/overview/window_selector_item.h
+++ b/ash/wm/overview/window_selector_item.h
@@ -79,6 +79,11 @@ class WindowSelectorItem : public views::ButtonListener,
// label is read.
void SendFocusAlert() const;
+ // Sets if the item is dimmed in the overview. Changing the value will also
+ // change the visibility of the transform windows.
+ virtual void SetDimmed(bool dimmed);
+ bool dimmed() const { return dimmed_; }
+
const gfx::Rect& bounds() const { return bounds_; }
const gfx::Rect& target_bounds() const { return target_bounds_; }
@@ -100,6 +105,13 @@ class WindowSelectorItem : public views::ButtonListener,
// Sets the bounds used by the selector item's windows.
void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; }
+ // Changes the opacity of all the windows the item owns.
+ virtual void SetOpacity(float opacity);
+
+ // 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