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

Unified Diff: ash/common/system/tray/system_tray_item.h

Issue 2190773002: Fix Volume slider is captured in screenshot done in touchview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable hiding animation; restoring volume does not notify UI 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/system/tray/system_tray_item.h
diff --git a/ash/common/system/tray/system_tray_item.h b/ash/common/system/tray/system_tray_item.h
index 4925f6a81c67cf2349d5711568f196270ea7ad16..8454c50ca636861697ee7883a7fba72cc4ba77dc 100644
--- a/ash/common/system/tray/system_tray_item.h
+++ b/ash/common/system/tray/system_tray_item.h
@@ -121,8 +121,9 @@ class ASH_EXPORT SystemTrayItem {
// currently-shown view is for this item.
void SetDetailedViewCloseDelay(int for_seconds);
- // Hides the detailed view for this item.
- void HideDetailedView();
+ // Hides the detailed view for this item. Disable hiding animation if
+ // |hide_animation| is false. Default is true.
+ void HideDetailedView(bool hide_animation = true);
// Shows a notification for this item.
void ShowNotificationView();

Powered by Google App Engine
This is Rietveld 408576698