Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / power / light_bar.h
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_LIGHT_BAR_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_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.
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_light_bar_;
30
31   DISALLOW_COPY_AND_ASSIGN(LightBar);
32 };
33
34 }  // namespace chromeos
35
36 #endif  // CHROME_BROWSER_CHROMEOS_POWER_LIGHT_BAR_H_