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

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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 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
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/power_manager_client.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const base::TimeDelta& time_until_idle_action) {} 93 const base::TimeDelta& time_until_idle_action) {}
94 94
95 // Called after IdleActionImminent() when the inactivity timer is reset 95 // Called after IdleActionImminent() when the inactivity timer is reset
96 // before the idle action has been performed. 96 // before the idle action has been performed.
97 virtual void IdleActionDeferred() {} 97 virtual void IdleActionDeferred() {}
98 }; 98 };
99 99
100 // Adds and removes the observer. 100 // Adds and removes the observer.
101 virtual void AddObserver(Observer* observer) = 0; 101 virtual void AddObserver(Observer* observer) = 0;
102 virtual void RemoveObserver(Observer* observer) = 0; 102 virtual void RemoveObserver(Observer* observer) = 0;
103 virtual bool HasObserver(Observer* observer) = 0; 103 virtual bool HasObserver(const Observer* observer) const = 0;
104 104
105 // Decreases the screen brightness. |allow_off| controls whether or not 105 // Decreases the screen brightness. |allow_off| controls whether or not
106 // it's allowed to turn off the back light. 106 // it's allowed to turn off the back light.
107 virtual void DecreaseScreenBrightness(bool allow_off) = 0; 107 virtual void DecreaseScreenBrightness(bool allow_off) = 0;
108 108
109 // Increases the screen brightness. 109 // Increases the screen brightness.
110 virtual void IncreaseScreenBrightness() = 0; 110 virtual void IncreaseScreenBrightness() = 0;
111 111
112 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. 112 // Set the screen brightness to |percent|, in the range [0.0, 100.0].
113 // If |gradual| is true, the transition will be animated. 113 // If |gradual| is true, the transition will be animated.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Create() should be used instead. 171 // Create() should be used instead.
172 PowerManagerClient(); 172 PowerManagerClient();
173 173
174 private: 174 private:
175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
176 }; 176 };
177 177
178 } // namespace chromeos 178 } // namespace chromeos
179 179
180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698