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

Unified Diff: chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc

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/power/power_button_controller_delegate_chromeos.cc
diff --git a/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc b/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d6264389a8d1a68c38f8ab27052a2c221ce628e1
--- /dev/null
+++ b/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc
@@ -0,0 +1,22 @@
+// 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.
+
+#include "chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.h"
+
+#include "base/logging.h"
+#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
+#include "chrome/browser/chromeos/dbus/power_manager_client.h"
+
+namespace chromeos {
+
+void PowerButtonControllerDelegateChromeos::RequestLockScreen() {
+ DBusThreadManager::Get()->GetPowerManagerClient()->
+ NotifyScreenLockRequested();
+}
+
+void PowerButtonControllerDelegateChromeos::RequestShutdown() {
+ DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown();
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698