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

Side by Side Diff: chromeos/dbus/fake_power_manager_client.cc

Issue 585623003: [Athena] Make a quick power button tap suspend the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/fake_power_manager_client.h" 5 #include "chromeos/dbus/fake_power_manager_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chromeos/dbus/power_manager/policy.pb.h" 10 #include "chromeos/dbus/power_manager/policy.pb.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 void FakePowerManagerClient::DecreaseKeyboardBrightness() { 55 void FakePowerManagerClient::DecreaseKeyboardBrightness() {
56 } 56 }
57 57
58 void FakePowerManagerClient::IncreaseKeyboardBrightness() { 58 void FakePowerManagerClient::IncreaseKeyboardBrightness() {
59 } 59 }
60 60
61 void FakePowerManagerClient::RequestStatusUpdate() { 61 void FakePowerManagerClient::RequestStatusUpdate() {
62 } 62 }
63 63
64 void FakePowerManagerClient::RequestSuspend() {
65 }
66
64 void FakePowerManagerClient::RequestRestart() { 67 void FakePowerManagerClient::RequestRestart() {
65 ++num_request_restart_calls_; 68 ++num_request_restart_calls_;
66 } 69 }
67 70
68 void FakePowerManagerClient::RequestShutdown() { 71 void FakePowerManagerClient::RequestShutdown() {
69 ++num_request_shutdown_calls_; 72 ++num_request_shutdown_calls_;
70 } 73 }
71 74
72 void FakePowerManagerClient::NotifyUserActivity( 75 void FakePowerManagerClient::NotifyUserActivity(
73 power_manager::UserActivityType type) { 76 power_manager::UserActivityType type) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PowerButtonEventReceived(down, timestamp)); 120 PowerButtonEventReceived(down, timestamp));
118 } 121 }
119 122
120 void FakePowerManagerClient::HandleSuspendReadiness() { 123 void FakePowerManagerClient::HandleSuspendReadiness() {
121 CHECK(num_pending_suspend_readiness_callbacks_ > 0); 124 CHECK(num_pending_suspend_readiness_callbacks_ > 0);
122 125
123 --num_pending_suspend_readiness_callbacks_; 126 --num_pending_suspend_readiness_callbacks_;
124 } 127 }
125 128
126 } // namespace chromeos 129 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698