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

Unified Diff: chrome/browser/chromeos/dbus/power_manager_client.h

Issue 8976012: chromeos: Implement power button animations for Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use aura::RootWindow::ShowCursor() to hide cursor Created 9 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: chrome/browser/chromeos/dbus/power_manager_client.h
diff --git a/chrome/browser/chromeos/dbus/power_manager_client.h b/chrome/browser/chromeos/dbus/power_manager_client.h
index 9b246a4d9205b13a094a199b5b2740ed69ac8798..94dd4512b12f31961c825c127ce9eabd740fb288 100644
--- a/chrome/browser/chromeos/dbus/power_manager_client.h
+++ b/chrome/browser/chromeos/dbus/power_manager_client.h
@@ -10,9 +10,12 @@
#include "base/basictypes.h"
#include "base/callback.h"
+namespace base {
+class TimeTicks;
+}
namespace dbus {
class Bus;
-} // namespace
+}
namespace chromeos {
@@ -57,6 +60,14 @@ class PowerManagerClient {
// Called when the system resumes from suspend.
virtual void SystemResumed() {}
+ // Called when the power button is pressed or released.
+ virtual void PowerButtonStateChanged(bool down,
+ const base::TimeTicks& timestamp) {}
+
+ // Called when the lock button is pressed or released.
+ virtual void LockButtonStateChanged(bool down,
+ const base::TimeTicks& timestamp) {}
+
// Called when the screen is locked.
virtual void LockScreen() {}

Powered by Google App Engine
This is Rietveld 408576698