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

Side by Side Diff: chrome/browser/chromeos/battery_status_provider_chromeos.h

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: file-move Created 8 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_BATTERY_STATUS_PROVIDER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_BATTERY_STATUS_PROVIDER_CHROMEOS_H_
7
8 #include "base/memory/singleton.h"
9 #include "chromeos/dbus/power_manager_client.h"
10
11 // This is a singleton object that receives battery information from the system
12 // and feeds the data to content.
13 class BatteryStatusProviderChromeos
14 : public chromeos::PowerManagerClient::Observer {
15 public:
16 static BatteryStatusProviderChromeos* GetInstance();
17
18 private:
19 friend struct DefaultSingletonTraits<BatteryStatusProviderChromeos>;
20
21 BatteryStatusProviderChromeos();
22 virtual ~BatteryStatusProviderChromeos();
23
24 // Overridden from chromeos::PowerManagerClient::Observer.
25 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE;
26
27 DISALLOW_COPY_AND_ASSIGN(BatteryStatusProviderChromeos);
28 };
29
30 #endif // CHROME_BROWSER_CHROMEOS_BATTERY_STATUS_PROVIDER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698