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

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

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 | « athena/util/container_priorities.h ('k') | chromeos/dbus/fake_power_manager_client.cc » ('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 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 virtual bool HasObserver(Observer* observer) OVERRIDE; 40 virtual bool HasObserver(Observer* observer) OVERRIDE;
41 virtual void DecreaseScreenBrightness(bool allow_off) OVERRIDE; 41 virtual void DecreaseScreenBrightness(bool allow_off) OVERRIDE;
42 virtual void IncreaseScreenBrightness() OVERRIDE; 42 virtual void IncreaseScreenBrightness() OVERRIDE;
43 virtual void SetScreenBrightnessPercent( 43 virtual void SetScreenBrightnessPercent(
44 double percent, bool gradual) OVERRIDE; 44 double percent, bool gradual) OVERRIDE;
45 virtual void GetScreenBrightnessPercent( 45 virtual void GetScreenBrightnessPercent(
46 const GetScreenBrightnessPercentCallback& callback) OVERRIDE; 46 const GetScreenBrightnessPercentCallback& callback) OVERRIDE;
47 virtual void DecreaseKeyboardBrightness() OVERRIDE; 47 virtual void DecreaseKeyboardBrightness() OVERRIDE;
48 virtual void IncreaseKeyboardBrightness() OVERRIDE; 48 virtual void IncreaseKeyboardBrightness() OVERRIDE;
49 virtual void RequestStatusUpdate() OVERRIDE; 49 virtual void RequestStatusUpdate() OVERRIDE;
50 virtual void RequestSuspend() OVERRIDE;
50 virtual void RequestRestart() OVERRIDE; 51 virtual void RequestRestart() OVERRIDE;
51 virtual void RequestShutdown() OVERRIDE; 52 virtual void RequestShutdown() OVERRIDE;
52 virtual void NotifyUserActivity( 53 virtual void NotifyUserActivity(
53 power_manager::UserActivityType type) OVERRIDE; 54 power_manager::UserActivityType type) OVERRIDE;
54 virtual void NotifyVideoActivity(bool is_fullscreen) OVERRIDE; 55 virtual void NotifyVideoActivity(bool is_fullscreen) OVERRIDE;
55 virtual void SetPolicy( 56 virtual void SetPolicy(
56 const power_manager::PowerManagementPolicy& policy) OVERRIDE; 57 const power_manager::PowerManagementPolicy& policy) OVERRIDE;
57 virtual void SetIsProjecting(bool is_projecting) OVERRIDE; 58 virtual void SetIsProjecting(bool is_projecting) OVERRIDE;
58 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE; 59 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE;
59 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE; 60 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE;
(...skipping 28 matching lines...) Expand all
88 89
89 // Last projecting state set in SetIsProjecting(). 90 // Last projecting state set in SetIsProjecting().
90 bool is_projecting_; 91 bool is_projecting_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); 93 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient);
93 }; 94 };
94 95
95 } // namespace chromeos 96 } // namespace chromeos
96 97
97 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 98 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « athena/util/container_priorities.h ('k') | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698