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_CROS_POWER_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 | 61 |
62 // Enable/disable screen lock for current session. | 62 // Enable/disable screen lock for current session. |
63 virtual void EnableScreenLock(bool enable) = 0; | 63 virtual void EnableScreenLock(bool enable) = 0; |
64 | 64 |
65 // Requests restart of the system. | 65 // Requests restart of the system. |
66 virtual void RequestRestart() = 0; | 66 virtual void RequestRestart() = 0; |
67 | 67 |
68 // Requests shutdown of the system. | 68 // Requests shutdown of the system. |
69 virtual void RequestShutdown() = 0; | 69 virtual void RequestShutdown() = 0; |
70 | 70 |
71 // UI initiated request for status update. | |
72 virtual void RequestStatusUpdate() = 0; | |
satorux1
2011/09/16 20:05:55
Is this a new functionality introduced? If so, wou
stevenjb
2011/09/16 21:44:24
Will do.
| |
73 | |
71 // Factory function, creates a new instance and returns ownership. | 74 // Factory function, creates a new instance and returns ownership. |
72 // For normal usage, access the singleton via CrosLibrary::Get(). | 75 // For normal usage, access the singleton via CrosLibrary::Get(). |
73 static PowerLibrary* GetImpl(bool stub); | 76 static PowerLibrary* GetImpl(bool stub); |
74 }; | 77 }; |
75 | 78 |
76 } // namespace chromeos | 79 } // namespace chromeos |
77 | 80 |
78 #endif // CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ |
OLD | NEW |