OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/power/power_button_controller_delegate_chromeo
s.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| 9 #include "chrome/browser/chromeos/dbus/power_manager_client.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 void PowerButtonControllerDelegateChromeos::RequestLockScreen() { |
| 14 DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 15 NotifyScreenLockRequested(); |
| 16 } |
| 17 |
| 18 void PowerButtonControllerDelegateChromeos::RequestShutdown() { |
| 19 DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown(); |
| 20 } |
| 21 |
| 22 } // namespace chromeos |
OLD | NEW |