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

Side by Side Diff: chrome/browser/chromeos/dbus/power_manager_client.h

Issue 8537001: chromeos: Power manager client calls shutdown and restart (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed DCHECK for power library Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Decreases the screen brightness. |allow_off| controls whether or not 59 // Decreases the screen brightness. |allow_off| controls whether or not
60 // it's allowed to turn off the back light. 60 // it's allowed to turn off the back light.
61 virtual void DecreaseScreenBrightness(bool allow_off) = 0; 61 virtual void DecreaseScreenBrightness(bool allow_off) = 0;
62 62
63 // Increases the screen brightness. 63 // Increases the screen brightness.
64 virtual void IncreaseScreenBrightness() = 0; 64 virtual void IncreaseScreenBrightness() = 0;
65 65
66 // UI initiated request for power supply status update. 66 // UI initiated request for power supply status update.
67 virtual void RequestStatusUpdate() = 0; 67 virtual void RequestStatusUpdate() = 0;
68 68
69 // Requests restart of the system.
70 virtual void RequestRestart() = 0;
71
72 // Requests shutdown of the system.
73 virtual void RequestShutdown() = 0;
74
69 // Creates the instance. 75 // Creates the instance.
70 static PowerManagerClient* Create(dbus::Bus* bus); 76 static PowerManagerClient* Create(dbus::Bus* bus);
71 77
72 virtual ~PowerManagerClient(); 78 virtual ~PowerManagerClient();
73 79
74 protected: 80 protected:
75 // Create() should be used instead. 81 // Create() should be used instead.
76 PowerManagerClient(); 82 PowerManagerClient();
77 83
78 private: 84 private:
79 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 85 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
80 }; 86 };
81 87
82 } // namespace chromeos 88 } // namespace chromeos
83 89
84 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_power_manager_client.h ('k') | chrome/browser/chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698