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

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: update copyright year to 2012 Created 8 years, 12 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: 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..d5eb2022b14d88702c3b02681fb319edb13f63a6 100644
--- a/chrome/browser/chromeos/dbus/power_manager_client.h
+++ b/chrome/browser/chromeos/dbus/power_manager_client.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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() {}
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698