| 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_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ |
| 7 | 7 |
| 8 #include "ash/common/system/chromeos/power/power_status.h" | 8 #include "ash/system/power/power_status.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace options { | 14 namespace options { |
| 15 | 15 |
| 16 // Shows battery status and power settings. | 16 // Shows battery status and power settings. |
| 17 class PowerHandler : public ::options::OptionsPageUIHandler, | 17 class PowerHandler : public ::options::OptionsPageUIHandler, |
| 18 public ash::PowerStatus::Observer { | 18 public ash::PowerStatus::Observer { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 // Whether the UI should show the power status. | 45 // Whether the UI should show the power status. |
| 46 bool show_power_status_; | 46 bool show_power_status_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(PowerHandler); | 48 DISALLOW_COPY_AND_ASSIGN(PowerHandler); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace options | 51 } // namespace options |
| 52 } // namespace chromeos | 52 } // namespace chromeos |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ | 54 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POWER_HANDLER_H_ |
| OLD | NEW |