| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Decreases the screen brightness. |allow_off| controls whether or not | 59 // Decreases the screen brightness. |allow_off| controls whether or not |
| 60 // it's allowed to turn off the back light. | 60 // it's allowed to turn off the back light. |
| 61 virtual void DecreaseScreenBrightness(bool allow_off) = 0; | 61 virtual void DecreaseScreenBrightness(bool allow_off) = 0; |
| 62 | 62 |
| 63 // Increases the screen brightness. | 63 // Increases the screen brightness. |
| 64 virtual void IncreaseScreenBrightness() = 0; | 64 virtual void IncreaseScreenBrightness() = 0; |
| 65 | 65 |
| 66 // UI initiated request for status update. | 66 // UI initiated request for status update. |
| 67 virtual void RequestStatusUpdate() = 0; | 67 virtual void RequestStatusUpdate() = 0; |
| 68 | 68 |
| 69 // Requests restart of the system. |
| 70 virtual void RequestRestart() = 0; |
| 71 |
| 72 // Requests shutdown of the system. |
| 73 virtual void RequestShutdown() = 0; |
| 74 |
| 69 // Creates the instance. | 75 // Creates the instance. |
| 70 static PowerManagerClient* Create(dbus::Bus* bus); | 76 static PowerManagerClient* Create(dbus::Bus* bus); |
| 71 | 77 |
| 72 virtual ~PowerManagerClient(); | 78 virtual ~PowerManagerClient(); |
| 73 | 79 |
| 74 protected: | 80 protected: |
| 75 // Create() should be used instead. | 81 // Create() should be used instead. |
| 76 PowerManagerClient(); | 82 PowerManagerClient(); |
| 77 | 83 |
| 78 private: | 84 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 85 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 } // namespace chromeos | 88 } // namespace chromeos |
| 83 | 89 |
| 84 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
| OLD | NEW |