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

Unified Diff: chromeos/dbus/fake_power_manager_client.h

Issue 2474913004: Tablet-like power button behavior on Convertible/Tablet ChromeOS devices (Closed)
Patch Set: nits on tests Created 4 years, 1 month 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 14eca3c39f24a4cfdc98b04f93cec35884435fad..e843bea0804f6d99765a81fc45957a2e4767d49f 100644
--- a/chromeos/dbus/fake_power_manager_client.h
+++ b/chromeos/dbus/fake_power_manager_client.h
@@ -87,6 +87,10 @@ class CHROMEOS_EXPORT FakePowerManagerClient : public PowerManagerClient {
const power_manager::PowerSupplyProperties& power_props);
private:
+ // Emulates the power manager announcing that the system is changing
+ // brightness to |level|.
+ void SendBrightnessChanged(int level, bool user_initiated);
+
// Callback that will be run by asynchronous suspend delays to report
// readiness.
void HandleSuspendReadiness();

Powered by Google App Engine
This is Rietveld 408576698