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

Unified Diff: ash/system/chromeos/power/tablet_power_button_controller.h

Issue 2546303002: ash: Start shutdown timer on post-resume power button press (Closed)
Patch Set: based on comments Created 4 years 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/chromeos/power/tablet_power_button_controller.h
diff --git a/ash/system/chromeos/power/tablet_power_button_controller.h b/ash/system/chromeos/power/tablet_power_button_controller.h
index f59749d668af7a2fe16ef0e07df92e0ab961ac65..59c606d29210d46e8bd819bc1ee9fbb8895b3add 100644
--- a/ash/system/chromeos/power/tablet_power_button_controller.h
+++ b/ash/system/chromeos/power/tablet_power_button_controller.h
@@ -111,6 +111,9 @@ class ASH_EXPORT TabletPowerButtonController
// updated in SuspendDone().
base::TimeTicks last_resume_time_;
+ // True if power button released should force off display.
+ bool force_off_on_button_up_;
+
// Started when the tablet power button is pressed and stopped when it's
// released. Runs OnShutdownTimeout() to start shutdown.
base::OneShotTimer shutdown_timer_;

Powered by Google App Engine
This is Rietveld 408576698