Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |