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

Side by Side Diff: chrome/browser/chromeos/cros/brightness_library.h

Issue 5854003: Remove CrOS hack from ppapi.gyp that made the include directories work. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « chrome/browser/DEPS ('k') | chrome/browser/chromeos/cros/burn_library.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CROS_BRIGHTNESS_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_BRIGHTNESS_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_BRIGHTNESS_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_BRIGHTNESS_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "cros/chromeos_brightness.h" 9 #include "third_party/cros/chromeos_brightness.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 class BrightnessLibrary { 13 class BrightnessLibrary {
14 public: 14 public:
15 class Observer { 15 class Observer {
16 public: 16 public:
17 virtual void BrightnessChanged(int level) = 0; 17 virtual void BrightnessChanged(int level) = 0;
18 }; 18 };
19 19
20 virtual ~BrightnessLibrary() {} 20 virtual ~BrightnessLibrary() {}
21 21
22 virtual void AddObserver(Observer* observer) = 0; 22 virtual void AddObserver(Observer* observer) = 0;
23 virtual void RemoveObserver(Observer* observer) = 0; 23 virtual void RemoveObserver(Observer* observer) = 0;
24 24
25 // Factory function, creates a new instance and returns ownership. 25 // Factory function, creates a new instance and returns ownership.
26 // For normal usage, access the singleton via CrosLibrary::Get(). 26 // For normal usage, access the singleton via CrosLibrary::Get().
27 static BrightnessLibrary* GetImpl(bool stub); 27 static BrightnessLibrary* GetImpl(bool stub);
28 }; 28 };
29 29
30 } // namespace chromeos 30 } // namespace chromeos
31 31
32 #endif // CHROME_BROWSER_CHROMEOS_CROS_BRIGHTNESS_LIBRARY_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_BRIGHTNESS_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/chromeos/cros/burn_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698