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

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

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: nits 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
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/system/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66a5b61de06058e5b0529b0648b2e59d9cf1563d..f59749d668af7a2fe16ef0e07df92e0ab961ac65 100644
--- a/ash/system/chromeos/power/tablet_power_button_controller.h
+++ b/ash/system/chromeos/power/tablet_power_button_controller.h
@@ -72,8 +72,10 @@ class ASH_EXPORT TabletPowerButtonController
void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock);
private:
- // Set backlights to |forced_off| if they aren't already.
- void SetBacklightsForcedOff(bool forced_off);
+ // Updates the power manager's backlights-forced-off state and enables or
+ // disables the touchscreen. No-op if |backlights_forced_off_| already equals
+ // |forced_off|.
+ void SetDisplayForcedOff(bool forced_off);
// Sends a request to powerd to get the backlights forced off state so that
// |backlights_forced_off_| can be initialized.
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/system/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698