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

Unified Diff: chrome/browser/chromeos/preferences.h

Issue 12186010: chromeos: Add power management policy prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.h
diff --git a/chrome/browser/chromeos/preferences.h b/chrome/browser/chromeos/preferences.h
index e1c8285db66c7e6d05e64d5cffa227473242d174..4235063df9f01db159b5fa5b3a7f791719ddd0e0 100644
--- a/chrome/browser/chromeos/preferences.h
+++ b/chrome/browser/chromeos/preferences.h
@@ -96,6 +96,10 @@ class Preferences : public PrefServiceSyncableObserver {
// on the cmd line.
void ForceNaturalScrollDefault();
+ // Updates the power management policy to reflect the current values of
+ // |power_*_pref_|.
+ void UpdatePowerManagementPolicy();
bartfab (slow) 2013/02/04 10:04:35 It's a bit unfortunate that this is called "policy
Daniel Erat 2013/02/04 13:35:45 Not sure what you mean here -- this is already cal
bartfab (slow) 2013/02/04 14:43:52 Yes, I was thinking of PowerManagerPolicy. That wa
+
// PrefServiceSyncableObserver implementation.
virtual void OnIsSyncingChanged() OVERRIDE;
@@ -159,6 +163,21 @@ class Preferences : public PrefServiceSyncableObserver {
BooleanPrefMember enable_drm_;
+ // Power-management-related preferences.
+ IntegerPrefMember power_ac_screen_dim_delay_ms_pref_;
+ IntegerPrefMember power_ac_screen_off_delay_ms_pref_;
+ IntegerPrefMember power_ac_screen_lock_delay_ms_pref_;
+ IntegerPrefMember power_ac_idle_delay_ms_pref_;
+ IntegerPrefMember power_battery_screen_dim_delay_ms_pref_;
+ IntegerPrefMember power_battery_screen_off_delay_ms_pref_;
+ IntegerPrefMember power_battery_screen_lock_delay_ms_pref_;
+ IntegerPrefMember power_battery_idle_delay_ms_pref_;
+ IntegerPrefMember power_idle_action_pref_;
+ IntegerPrefMember power_lid_closed_action_pref_;
+ IntegerPrefMember power_use_audio_activity_pref_;
bartfab (slow) 2013/02/04 10:04:35 See my comment in the preferences.cc file - this c
+ IntegerPrefMember power_use_video_activity_pref_;
bartfab (slow) 2013/02/04 10:04:35 See my comment in the preferences.cc file - this c
+ DoublePrefMember power_presentation_idle_delay_factor_pref_;
+
DISALLOW_COPY_AND_ASSIGN(Preferences);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/preferences.cc » ('j') | chrome/browser/chromeos/preferences.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698