Chromium Code Reviews| Index: chrome/browser/chromeos/policy/login_screen_power_management_policy.h |
| diff --git a/chrome/browser/chromeos/policy/login_screen_power_management_policy.h b/chrome/browser/chromeos/policy/login_screen_power_management_policy.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ab7c69f5adadf4ac41b4518af48c401d11d1da9 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/policy/login_screen_power_management_policy.h |
| @@ -0,0 +1,56 @@ |
| +// Copyright 2013 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_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace base { |
| +class Value; |
| +} |
| + |
| +namespace policy { |
| + |
| +class PolicyErrorMap; |
| + |
|
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.
|
| +class LoginScreenPowerManagementPolicy { |
| + public: |
| + LoginScreenPowerManagementPolicy(); |
| + ~LoginScreenPowerManagementPolicy(); |
| + |
| + bool Init(const std::string& json, PolicyErrorMap* errors); |
| + |
| + const base::Value* GetScreenDimDelayAC() const; |
| + const base::Value* GetScreenOffDelayAC() const; |
| + const base::Value* GetIdleDelayAC() const; |
| + const base::Value* GetScreenDimDelayBattery() const; |
| + const base::Value* GetScreenOffDelayBattery() const; |
| + const base::Value* GetIdleDelayBattery() const; |
| + const base::Value* GetIdleActionAC() const; |
| + const base::Value* GetIdleActionBattery() const; |
| + const base::Value* GetLidCloseAction() const; |
| + const base::Value* GetUserActivityScreenDimDelayScale() const; |
| + |
| + private: |
| + scoped_ptr<base::Value> screen_dim_delay_ac_; |
| + scoped_ptr<base::Value> screen_off_delay_ac_; |
| + scoped_ptr<base::Value> idle_delay_ac_; |
| + scoped_ptr<base::Value> screen_dim_delay_battery_; |
| + scoped_ptr<base::Value> screen_off_delay_battery_; |
| + scoped_ptr<base::Value> idle_delay_battery_; |
| + scoped_ptr<base::Value> idle_action_ac_; |
| + scoped_ptr<base::Value> idle_action_battery_; |
| + scoped_ptr<base::Value> lid_close_action_; |
| + scoped_ptr<base::Value> user_activity_screen_dim_delay_scale_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LoginScreenPowerManagementPolicy); |
| +}; |
| + |
| +} // namespace policy |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_SCREEN_POWER_MANAGEMENT_POLICY_H_ |