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

Side by Side Diff: chromeos/dbus/power_policy_controller.h

Issue 807093003: chromeos: Add pref for automated brightness increases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chromeos/dbus/power_policy_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_ 5 #ifndef CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_
6 #define CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_ 6 #define CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 Action lid_closed_action; 59 Action lid_closed_action;
60 bool use_audio_activity; 60 bool use_audio_activity;
61 bool use_video_activity; 61 bool use_video_activity;
62 double ac_brightness_percent; 62 double ac_brightness_percent;
63 double battery_brightness_percent; 63 double battery_brightness_percent;
64 bool allow_screen_wake_locks; 64 bool allow_screen_wake_locks;
65 bool enable_auto_screen_lock; 65 bool enable_auto_screen_lock;
66 double presentation_screen_dim_delay_factor; 66 double presentation_screen_dim_delay_factor;
67 double user_activity_screen_dim_delay_factor; 67 double user_activity_screen_dim_delay_factor;
68 bool wait_for_initial_user_activity; 68 bool wait_for_initial_user_activity;
69 bool force_nonzero_brightness_for_user_activity;
69 }; 70 };
70 71
71 // Returns a string describing |policy|. Useful for tests. 72 // Returns a string describing |policy|. Useful for tests.
72 static std::string GetPolicyDebugString( 73 static std::string GetPolicyDebugString(
73 const power_manager::PowerManagementPolicy& policy); 74 const power_manager::PowerManagementPolicy& policy);
74 75
75 // Delay in milliseconds between the screen being turned off and the screen 76 // Delay in milliseconds between the screen being turned off and the screen
76 // being locked. Used if the |enable_auto_screen_lock| pref is set but 77 // being locked. Used if the |enable_auto_screen_lock| pref is set but
77 // |*_screen_lock_delay_ms| are unset or set to higher values than what this 78 // |*_screen_lock_delay_ms| are unset or set to higher values than what this
78 // constant would imply. 79 // constant would imply.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 // Next ID to be used by AddScreenWakeLock() or AddSystemWakeLock(). 129 // Next ID to be used by AddScreenWakeLock() or AddSystemWakeLock().
129 int next_wake_lock_id_; 130 int next_wake_lock_id_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(PowerPolicyController); 132 DISALLOW_COPY_AND_ASSIGN(PowerPolicyController);
132 }; 133 };
133 134
134 } // namespace chromeos 135 } // namespace chromeos
135 136
136 #endif // CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_ 137 #endif // CHROMEOS_DBUS_POWER_POLICY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chromeos/dbus/power_policy_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698