OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ | |
7 | |
8 #include "base/files/file_path.h" | |
9 #include "chromeos/chromeos_export.h" | |
10 #include "chromeos/dbus/power_manager_client.h" | |
11 | |
12 namespace chromeos { | |
13 | |
14 // Flashes the light bar (on systems that have one) whenever the system comes up | |
15 // in dark resume. | |
16 class CHROMEOS_EXPORT LightBar : public PowerManagerClient::Observer { | |
17 public: | |
18 LightBar(); | |
19 virtual ~LightBar(); | |
20 | |
21 // PowerManagerClient::Observer implementation | |
Daniel Erat
2014/09/12 19:53:03
nit: add trailing period or colon
| |
22 virtual void DarkSuspendImminent() OVERRIDE; | |
23 | |
24 private: | |
25 // Path to control the light bar. | |
26 base::FilePath control_path_; | |
27 | |
28 // True if the system has a light bar. | |
29 bool has_lightbar_; | |
30 | |
31 // True if the lucid sleep flag has been turned on. | |
32 bool enabled_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(LightBar); | |
35 }; | |
36 | |
37 } // namespace chromeos | |
38 | |
39 #endif // CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ | |
OLD | NEW |