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

Unified Diff: ash/common/wm/overview/window_selector_item.h

Issue 2146323004: [ash-md] Improves smoothness with many windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Improves smoothness with many windows in overview (rebased) Created 4 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/common/wm/overview/window_selector_item.h
diff --git a/ash/common/wm/overview/window_selector_item.h b/ash/common/wm/overview/window_selector_item.h
index bf62659ca3f491090ec49e84d788cf4f0dc88139..e95941967268f043a3b62f944f24074f9ecdb298 100644
--- a/ash/common/wm/overview/window_selector_item.h
+++ b/ash/common/wm/overview/window_selector_item.h
@@ -112,6 +112,7 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
// change the visibility of the transform windows.
void SetDimmed(bool dimmed);
bool dimmed() const { return dimmed_; }
+ void set_hide_header(bool hide_header) { hide_header_ = hide_header; }
const gfx::Rect& target_bounds() const { return target_bounds_; }
@@ -172,6 +173,10 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
// a window layer for display on another monitor.
bool in_bounds_update_;
+ // If true, mask the original window header while in overview. This has
+ // performance implications so it can be disabled when there are many windows.
+ bool hide_header_;
+
// Label displaying its name (active tab for tabbed windows).
// With Material Design this Widget owns |caption_container_view_| and is
// shown above the |transform_window_|.

Powered by Google App Engine
This is Rietveld 408576698