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

Side by Side Diff: chrome/browser/chromeos/cros/fake/fake_power_library.h

Issue 2847072: Green Tree Tactical Force: Revert skrul's bad commits (probably a git-cl bug). (Closed)
Patch Set: Created 10 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_POWER_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_POWER_LIBRARY_H_
7
8 #include "chrome/browser/chromeos/cros/power_library.h"
9
10 namespace chromeos {
11
12 class FakePowerLibrary : public PowerLibrary {
13 public:
14 FakePowerLibrary() {}
15 virtual ~FakePowerLibrary() {}
16 virtual void AddObserver(Observer* observer) {}
17 virtual void RemoveObserver(Observer* observer) {}
18 virtual bool line_power_on() const { return true; }
19 virtual bool battery_fully_charged() const { return true; }
20 virtual double battery_percentage() const { return 100; }
21 virtual bool battery_is_present() const { return true; }
22 virtual base::TimeDelta battery_time_to_empty() const {
23 return base::TimeDelta::FromSeconds(0);
24 }
25 virtual base::TimeDelta battery_time_to_full() const {
26 return base::TimeDelta::FromSeconds(0);
27 }
28 };
29
30 } // namespace chromeos
31
32 #endif // CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_POWER_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/fake/fake_network_library.h ('k') | chrome/browser/chromeos/cros/fake/fake_screen_lock_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698