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 27 matching lines...) Expand all Loading... |
38 // Decreases the screen brightness. |allow_off| controls whether or not | 38 // Decreases the screen brightness. |allow_off| controls whether or not |
39 // it's allowed to turn off the back light. | 39 // it's allowed to turn off the back light. |
40 virtual void DecreaseScreenBrightness(bool allow_off) = 0; | 40 virtual void DecreaseScreenBrightness(bool allow_off) = 0; |
41 | 41 |
42 // Increases the screen brightness. | 42 // Increases the screen brightness. |
43 virtual void IncreaseScreenBrightness() = 0; | 43 virtual void IncreaseScreenBrightness() = 0; |
44 | 44 |
45 // Creates the instance. | 45 // Creates the instance. |
46 static PowerManagerClient* Create(dbus::Bus* bus); | 46 static PowerManagerClient* Create(dbus::Bus* bus); |
47 | 47 |
48 PowerManagerClient(); | |
49 virtual ~PowerManagerClient(); | 48 virtual ~PowerManagerClient(); |
50 | 49 |
| 50 protected: |
| 51 // Create() should be used instead. |
| 52 PowerManagerClient(); |
| 53 |
| 54 private: |
51 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 55 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
52 }; | 56 }; |
53 | 57 |
54 } // namespace chromeos | 58 } // namespace chromeos |
55 | 59 |
56 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |