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

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

Issue 2249853009: Don't reposition if shutdown is in progress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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.h
diff --git a/ash/common/wm/overview/window_selector.h b/ash/common/wm/overview/window_selector.h
index 55311cb619029f39cbc608ecf4914d449ad76d27..b36870893870154c11a9c68fc66c414cf6fbdbed 100644
--- a/ash/common/wm/overview/window_selector.h
+++ b/ash/common/wm/overview/window_selector.h
@@ -73,7 +73,9 @@ class ASH_EXPORT WindowSelector : public display::DisplayObserver,
return restoring_minimized_windows_;
}
- int text_filter_bottom() { return text_filter_bottom_; }
+ int text_filter_bottom() const { return text_filter_bottom_; }
+
+ bool shutdown() const { return shutdown_; }
varkha 2016/08/17 21:49:32 nit: consider is_shut_down or finalized() or is_sh
oshima 2016/08/17 22:00:26 Done.
// display::DisplayObserver:
void OnDisplayAdded(const display::Display& display) override;
@@ -181,6 +183,8 @@ class ASH_EXPORT WindowSelector : public display::DisplayObserver,
// the text filtering textfield.
int text_filter_bottom_;
varkha 2016/08/17 21:49:32 Comment?
oshima 2016/08/17 22:00:26 I changed it to in_shut_down_ and I believe it's s
+ bool shutdown_ = false;
+
DISALLOW_COPY_AND_ASSIGN(WindowSelector);
};

Powered by Google App Engine
This is Rietveld 408576698