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

Side by Side Diff: ash/common/system/tray/system_tray.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // non-zero, then the view is automatically closed after the specified time. 67 // non-zero, then the view is automatically closed after the specified time.
68 void ShowDetailedView(SystemTrayItem* item, 68 void ShowDetailedView(SystemTrayItem* item,
69 int close_delay_in_seconds, 69 int close_delay_in_seconds,
70 bool activate, 70 bool activate,
71 BubbleCreationType creation_type); 71 BubbleCreationType creation_type);
72 72
73 // Continue showing the existing detailed view, if any, for |close_delay| 73 // Continue showing the existing detailed view, if any, for |close_delay|
74 // seconds. 74 // seconds.
75 void SetDetailedViewCloseDelay(int close_delay); 75 void SetDetailedViewCloseDelay(int close_delay);
76 76
77 // Hides the detailed view for |item|. 77 // Hides the detailed view for |item|. If |hide_animation| is false, disable
78 void HideDetailedView(SystemTrayItem* item); 78 // the hiding animation for hiding |item|.
79 void HideDetailedView(SystemTrayItem* item, bool hide_animation);
Daniel Erat 2016/07/28 22:20:40 |hide_animation| is a confusing name, since it cou
Qiang(Joe) Xu 2016/07/28 23:15:57 Done.
79 80
80 // Shows the notification view for |item|. 81 // Shows the notification view for |item|.
81 void ShowNotificationView(SystemTrayItem* item); 82 void ShowNotificationView(SystemTrayItem* item);
82 83
83 // Hides the notification view for |item|. 84 // Hides the notification view for |item|.
84 void HideNotificationView(SystemTrayItem* item); 85 void HideNotificationView(SystemTrayItem* item);
85 86
86 // Updates the items when the login status of the system changes. 87 // Updates the items when the login status of the system changes.
87 void UpdateAfterLoginStatusChange(LoginStatus login_status); 88 void UpdateAfterLoginStatusChange(LoginStatus login_status);
88 89
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // A reference to the Screen share and capture item. 256 // A reference to the Screen share and capture item.
256 ScreenTrayItem* screen_capture_tray_item_; // not owned 257 ScreenTrayItem* screen_capture_tray_item_; // not owned
257 ScreenTrayItem* screen_share_tray_item_; // not owned 258 ScreenTrayItem* screen_share_tray_item_; // not owned
258 259
259 DISALLOW_COPY_AND_ASSIGN(SystemTray); 260 DISALLOW_COPY_AND_ASSIGN(SystemTray);
260 }; 261 };
261 262
262 } // namespace ash 263 } // namespace ash
263 264
264 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_ 265 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698