Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/browser/chromeos/policy/login_screen_power_management_policy.h

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style improvements. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698