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

Side by Side Diff: content/browser/battery_status/battery_status_manager_interface.h

Issue 278043002: Battery Status API: browser-side implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2014 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_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_
6 #define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_
7
8 namespace content {
9
10 // General interface for the Battery Status API.
11 class BatteryStatusManagerInterface {
jochen (gone - plz use gerrit) 2014/05/19 13:14:22 it's uncommon to have classes named ...Interface.
timvolodine 2014/05/22 10:02:33 the reason I did this is because there was a StopL
12 public:
13 BatteryStatusManagerInterface() { }
14 virtual ~BatteryStatusManagerInterface() { }
15
16 // Start listening for battery status changes.
17 virtual bool StartListeningBatteryChange() = 0;
18
19 // Stop listenting for battery status changes.
Michael van Ouwerkerk 2014/05/19 11:19:22 Nit: s/listenting/listening/
timvolodine 2014/05/22 10:02:33 Done.
20 virtual void StopListeningBatteryChange() = 0;
21 };
22
23 } // namespace content
24
25 #endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698