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

Unified Diff: chrome/browser/chromeos/cros/brightness_library.h

Issue 7493061: cros: Apply the Init() model to BrightnessLibrary API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brightness_connection_ is a typedef to a pointer allocated on the heap Created 9 years, 5 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/cros/brightness_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/brightness_library.h
diff --git a/chrome/browser/chromeos/cros/brightness_library.h b/chrome/browser/chromeos/cros/brightness_library.h
index aae8b29a4943bfcb20ad076069f76eadf4a97470..bcd7f8b2f76560bf1eaea814204d402fbca2e999 100644
--- a/chrome/browser/chromeos/cros/brightness_library.h
+++ b/chrome/browser/chromeos/cros/brightness_library.h
@@ -17,12 +17,14 @@ class BrightnessLibrary {
virtual ~BrightnessLibrary() {}
- virtual void DecreaseScreenBrightness(bool allow_off) = 0;
- virtual void IncreaseScreenBrightness() = 0;
+ virtual void Init() = 0;
virtual void AddObserver(Observer* observer) = 0;
virtual void RemoveObserver(Observer* observer) = 0;
+ virtual void DecreaseScreenBrightness(bool allow_off) = 0;
+ virtual void IncreaseScreenBrightness() = 0;
+
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via CrosLibrary::Get().
static BrightnessLibrary* GetImpl(bool stub);
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/brightness_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698