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

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

Issue 515573002: Use active state on touch start for tray icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 b56efa9404014e9974e2f2c07fedf520bb73a421..2ee7051b0c8e01925271a09a37fff7bdd80b6aed 100644
--- a/ash/system/overview/overview_button_tray.cc
+++ b/ash/system/overview/overview_button_tray.cc
@@ -54,7 +54,10 @@ void OverviewButtonTray::UpdateAfterLoginStatusChange(
}
bool OverviewButtonTray::PerformAction(const ui::Event& event) {
- Shell::GetInstance()->window_selector_controller()->ToggleOverview();
+ WindowSelectorController* controller =
+ Shell::GetInstance()->window_selector_controller();
+ controller->ToggleOverview();
+ SetDrawBackgroundAsActive(controller->IsSelecting());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698