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

Unified Diff: ash/system/overview/overview_button_tray.cc

Issue 1114383002: Show overview mode button in TouchView with open modal window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/system/overview/overview_button_tray.cc
diff --git a/ash/system/overview/overview_button_tray.cc b/ash/system/overview/overview_button_tray.cc
index ec2912fa209d008cc62ac4496737993227e6a4e5..c960077d11107a602f18281c5b3657ab9b3a71cd 100644
--- a/ash/system/overview/overview_button_tray.cc
+++ b/ash/system/overview/overview_button_tray.cc
@@ -114,9 +114,12 @@ void OverviewButtonTray::SetIconBorderForShelfAlignment() {
}
void OverviewButtonTray::UpdateIconVisibility() {
- SetVisible(Shell::GetInstance()->maximize_mode_controller()->
- IsMaximizeModeWindowManagerEnabled() &&
- Shell::GetInstance()->window_selector_controller()->CanSelect());
+ SetVisible(Shell::GetInstance()
+ ->maximize_mode_controller()
+ ->IsMaximizeModeWindowManagerEnabled() &&
+ Shell::GetInstance()
+ ->window_selector_controller()
+ ->IsUserInActiveDesktopEnvironment());
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698