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

Unified Diff: ash/shelf/shelf_tooltip_manager.cc

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: cleanup Created 4 years, 7 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/shelf/shelf_tooltip_manager.cc
diff --git a/ash/shelf/shelf_tooltip_manager.cc b/ash/shelf/shelf_tooltip_manager.cc
index 3f9bbed3ae24c7f216c18382cc1eb35a9da1728d..30de9421a3abf6bc3638f9769c63be70d7f37c25 100644
--- a/ash/shelf/shelf_tooltip_manager.cc
+++ b/ash/shelf/shelf_tooltip_manager.cc
@@ -239,7 +239,9 @@ void ShelfTooltipManager::WillChangeVisibilityState(
Close();
}
-void ShelfTooltipManager::OnAutoHideStateChanged(ShelfAutoHideState new_state) {
+void ShelfTooltipManager::OnAutoHideStateChanged(
+ ShelfLayoutManager* layout_manager,
+ ShelfAutoHideState new_state) {
if (new_state == SHELF_AUTO_HIDE_HIDDEN) {
timer_.Stop();
// AutoHide state change happens during an event filter, so immediate close

Powered by Google App Engine
This is Rietveld 408576698