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

Unified Diff: ash/wm/power_button_controller.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: nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/power_button_controller.h
diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h
index 970ddab86dc8ce1bec159fa736c39dad267c7513..7043966f92a9d439ef664804e47343fab0d6804c 100644
--- a/ash/wm/power_button_controller.h
+++ b/ash/wm/power_button_controller.h
@@ -87,6 +87,12 @@ class ASH_EXPORT PowerButtonController
// True when the volume down button is being held down.
bool volume_down_pressed_;
+#if defined(OS_CHROMEOS)
+ // Volume to be restored after a screenshot is taken by pressing the power
+ // button while holding VKEY_VOLUME_DOWN.
+ int volume_percent_before_screenshot_;
+#endif
+
// Has the screen brightness been reduced to 0%?
bool brightness_is_zero_;
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698