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

Side by Side Diff: powerd.h

Issue 6854002: Merge monitor_reconfigure into powerd. (Closed) Base URL: ssh://gitrw.chromium.org:9222/power_manager.git@master
Patch Set: . Created 9 years, 8 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
« no previous file with comments | « monitor_reconfigure.cc ('k') | powerd.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) 2011 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium OS 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 POWER_DAEMON_H_ 5 #ifndef POWER_DAEMON_H_
6 #define POWER_DAEMON_H_ 6 #define POWER_DAEMON_H_
7 7
8 #include <dbus/dbus-glib-lowlevel.h> 8 #include <dbus/dbus-glib-lowlevel.h>
9 #include <gtest/gtest_prod.h> // for FRIEND_TEST 9 #include <gtest/gtest_prod.h> // for FRIEND_TEST
10 10
(...skipping 11 matching lines...) Expand all
22 #include "power_manager/inotify.h" 22 #include "power_manager/inotify.h"
23 #include "power_manager/power_prefs.h" 23 #include "power_manager/power_prefs.h"
24 #include "power_manager/screen_locker.h" 24 #include "power_manager/screen_locker.h"
25 #include "power_manager/suspender.h" 25 #include "power_manager/suspender.h"
26 #include "power_manager/video_detector.h" 26 #include "power_manager/video_detector.h"
27 #include "power_manager/xidle.h" 27 #include "power_manager/xidle.h"
28 #include "power_manager/xidle_monitor.h" 28 #include "power_manager/xidle_monitor.h"
29 29
30 namespace power_manager { 30 namespace power_manager {
31 31
32 class MonitorReconfigure;
32 class PowerButtonHandler; 33 class PowerButtonHandler;
33 34
34 class Daemon : public XIdleMonitor { 35 class Daemon : public XIdleMonitor {
35 public: 36 public:
36 Daemon(BacklightController* ctl, PowerPrefs* prefs, 37 Daemon(BacklightController* ctl, PowerPrefs* prefs,
37 MetricsLibraryInterface* metrics_lib, 38 MetricsLibraryInterface* metrics_lib,
38 VideoDetectorInterface* video_detector, 39 VideoDetectorInterface* video_detector,
40 MonitorReconfigure* monitor_reconfigure,
39 const FilePath& run_dir); 41 const FilePath& run_dir);
40 ~Daemon(); 42 ~Daemon();
41 43
42 ScreenLocker* locker() { return &locker_; } 44 ScreenLocker* locker() { return &locker_; }
43 BacklightController* backlight_controller() { return backlight_controller_; } 45 BacklightController* backlight_controller() { return backlight_controller_; }
44 46
45 const std::string& current_user() const { return current_user_; } 47 const std::string& current_user() const { return current_user_; }
46 48
47 void Init(); 49 void Init();
48 void Run(); 50 void Run();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int max); 217 int max);
216 218
217 // Called by dbus handler when resume signal is received 219 // Called by dbus handler when resume signal is received
218 void HandleResume(); 220 void HandleResume();
219 221
220 BacklightController* backlight_controller_; 222 BacklightController* backlight_controller_;
221 PowerPrefs* prefs_; 223 PowerPrefs* prefs_;
222 MetricsLibraryInterface* metrics_lib_; 224 MetricsLibraryInterface* metrics_lib_;
223 VideoDetectorInterface* video_detector_; 225 VideoDetectorInterface* video_detector_;
224 XIdle idle_; 226 XIdle idle_;
227 MonitorReconfigure* monitor_reconfigure_;
225 double low_battery_suspend_percent_; 228 double low_battery_suspend_percent_;
226 bool clean_shutdown_initiated_; 229 bool clean_shutdown_initiated_;
227 bool low_battery_; 230 bool low_battery_;
228 int64 clean_shutdown_timeout_ms_; 231 int64 clean_shutdown_timeout_ms_;
229 int64 plugged_dim_ms_; 232 int64 plugged_dim_ms_;
230 int64 plugged_off_ms_; 233 int64 plugged_off_ms_;
231 int64 plugged_suspend_ms_; 234 int64 plugged_suspend_ms_;
232 int64 unplugged_dim_ms_; 235 int64 unplugged_dim_ms_;
233 int64 unplugged_off_ms_; 236 int64 unplugged_off_ms_;
234 int64 unplugged_suspend_ms_; 237 int64 unplugged_suspend_ms_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 KeyCode key_f7_; 278 KeyCode key_f7_;
276 279
277 // User whose session is currently active, or empty if no session is 280 // User whose session is currently active, or empty if no session is
278 // active or we're in guest mode. 281 // active or we're in guest mode.
279 std::string current_user_; 282 std::string current_user_;
280 }; 283 };
281 284
282 } // namespace power_manager 285 } // namespace power_manager
283 286
284 #endif // POWER_DAEMON_H_ 287 #endif // POWER_DAEMON_H_
OLDNEW
« no previous file with comments | « monitor_reconfigure.cc ('k') | powerd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698