Chromium Code Reviews| 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..9af99dbd984685a854ec1bf79994069b114826b6 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 LidState and notifies observers that LidState is switched to |state|. |
|
Daniel Erat
2017/04/13 05:10:03
nit: Sets |lid_state_| and notifies |observers_| a
Qiang(Joe) Xu
2017/04/13 17:08:47
Done.
|
| + void SetLidState(LidState state, const base::TimeTicks& timestamp); |
| + |
| // Updates |props_| and notifies observers of its changes. |
| void UpdatePowerProperties( |
| const power_manager::PowerSupplyProperties& power_props); |