OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_POWER_LIGHT_BAR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
10 #include "chromeos/dbus/power_manager_client.h" | 10 #include "chromeos/dbus/power_manager_client.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 // Flashes the light bar (on systems that have one) whenever the system comes up | 14 // Flashes the light bar (on systems that have one) whenever the system comes up |
15 // in dark resume. | 15 // in dark resume. |
16 class CHROMEOS_EXPORT LightBar : public PowerManagerClient::Observer { | 16 class CHROMEOS_EXPORT LightBar : public PowerManagerClient::Observer { |
17 public: | 17 public: |
18 LightBar(); | 18 LightBar(); |
19 virtual ~LightBar(); | 19 virtual ~LightBar(); |
20 | 20 |
21 // PowerManagerClient::Observer implementation. | 21 // PowerManagerClient::Observer implementation. |
22 virtual void DarkSuspendImminent() OVERRIDE; | 22 virtual void DarkSuspendImminent() override; |
23 | 23 |
24 private: | 24 private: |
25 // Path to control the light bar. | 25 // Path to control the light bar. |
26 base::FilePath control_path_; | 26 base::FilePath control_path_; |
27 | 27 |
28 // True if the system has a light bar. | 28 // True if the system has a light bar. |
29 bool has_light_bar_; | 29 bool has_light_bar_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(LightBar); | 31 DISALLOW_COPY_AND_ASSIGN(LightBar); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace chromeos | 34 } // namespace chromeos |
35 | 35 |
36 #endif // CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_ |
OLD | NEW |