Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 | |
| 13 namespace base { | |
| 14 class Value; | |
| 15 } | |
| 16 | |
| 17 namespace policy { | |
| 18 | |
| 19 class PolicyErrorMap; | |
| 20 | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
Class comment: What does it do, what is it good fo
bartfab (slow)
2013/07/09 10:02:33
Done.
| |
| 21 class LoginScreenPowerManagementPolicy { | |
| 22 public: | |
| 23 LoginScreenPowerManagementPolicy(); | |
| 24 ~LoginScreenPowerManagementPolicy(); | |
| 25 | |
| 26 bool Init(const std::string& json, PolicyErrorMap* errors); | |
| 27 | |
| 28 const base::Value* GetScreenDimDelayAC() const; | |
| 29 const base::Value* GetScreenOffDelayAC() const; | |
| 30 const base::Value* GetIdleDelayAC() const; | |
| 31 const base::Value* GetScreenDimDelayBattery() const; | |
| 32 const base::Value* GetScreenOffDelayBattery() const; | |
| 33 const base::Value* GetIdleDelayBattery() const; | |
| 34 const base::Value* GetIdleActionAC() const; | |
| 35 const base::Value* GetIdleActionBattery() const; | |
| 36 const base::Value* GetLidCloseAction() const; | |
| 37 const base::Value* GetUserActivityScreenDimDelayScale() const; | |
| 38 | |
| 39 private: | |
| 40 scoped_ptr<base::Value> screen_dim_delay_ac_; | |
| 41 scoped_ptr<base::Value> screen_off_delay_ac_; | |
| 42 scoped_ptr<base::Value> idle_delay_ac_; | |
| 43 scoped_ptr<base::Value> screen_dim_delay_battery_; | |
| 44 scoped_ptr<base::Value> screen_off_delay_battery_; | |
| 45 scoped_ptr<base::Value> idle_delay_battery_; | |
| 46 scoped_ptr<base::Value> idle_action_ac_; | |
| 47 scoped_ptr<base::Value> idle_action_battery_; | |
| 48 scoped_ptr<base::Value> lid_close_action_; | |
| 49 scoped_ptr<base::Value> user_activity_screen_dim_delay_scale_; | |
| 50 | |
| 51 DISALLOW_COPY_AND_ASSIGN(LoginScreenPowerManagementPolicy); | |
| 52 }; | |
| 53 | |
| 54 } // namespace policy | |
| 55 | |
| 56 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H _ | |
| OLD | NEW |