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

Unified Diff: chromeos/dbus/fake_power_manager_client.h

Issue 2815453007: cros: Stop forcing off display when lid events are received (Closed)
Patch Set: nits Created 3 years, 8 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: chromeos/dbus/fake_power_manager_client.h
diff --git a/chromeos/dbus/fake_power_manager_client.h b/chromeos/dbus/fake_power_manager_client.h
index d408729a125a8e065c7f7d3bbbd45129539756a8..c59a7e98375020121e69db416ad5d26e5d24f6cf 100644
--- a/chromeos/dbus/fake_power_manager_client.h
+++ b/chromeos/dbus/fake_power_manager_client.h
@@ -42,8 +42,6 @@ class CHROMEOS_EXPORT FakePowerManagerClient : public PowerManagerClient {
int num_set_backlights_forced_off_calls() const {
return num_set_backlights_forced_off_calls_;
}
-
- void set_lid_state(LidState state) { lid_state_ = state; }
void set_tablet_mode(TabletMode mode) { tablet_mode_ = mode; }
// PowerManagerClient overrides
@@ -93,6 +91,9 @@ class CHROMEOS_EXPORT FakePowerManagerClient : public PowerManagerClient {
// Notifies observers that the power button has been pressed or released.
void SendPowerButtonEvent(bool down, const base::TimeTicks& timestamp);
+ // Sets |lid_state_| and notifies |observers_| about the change.
+ void SetLidState(LidState state, const base::TimeTicks& timestamp);
+
// Updates |props_| and notifies observers of its changes.
void UpdatePowerProperties(
const power_manager::PowerSupplyProperties& power_props);
« no previous file with comments | « ash/system/power/tablet_power_button_controller_unittest.cc ('k') | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698