Chromium Code Reviews| Index: chrome/browser/chromeos/power/lightbar.h |
| diff --git a/chrome/browser/chromeos/power/lightbar.h b/chrome/browser/chromeos/power/lightbar.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0812987360f7320b11911ddb7a9239af4c1ef898 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/power/lightbar.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ |
| + |
| +#include "base/files/file_path.h" |
| +#include "chromeos/chromeos_export.h" |
| +#include "chromeos/dbus/power_manager_client.h" |
| + |
| +namespace chromeos { |
| + |
| +// Flashes the light bar (on systems that have one) whenever the system comes up |
| +// in dark resume. |
| +class CHROMEOS_EXPORT LightBar : public PowerManagerClient::Observer { |
| + public: |
| + LightBar(); |
| + virtual ~LightBar(); |
| + |
| + // PowerManagerClient::Observer implementation |
|
Daniel Erat
2014/09/12 19:53:03
nit: add trailing period or colon
|
| + virtual void DarkSuspendImminent() OVERRIDE; |
| + |
| + private: |
| + // Path to control the light bar. |
| + base::FilePath control_path_; |
| + |
| + // True if the system has a light bar. |
| + bool has_lightbar_; |
| + |
| + // True if the lucid sleep flag has been turned on. |
| + bool enabled_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LightBar); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POWER_LIGHTBAR_H_ |