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

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

Issue 3532010: Add a pref checkbox to enable/disable screen lock for ChromeOs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: firx chromeos trybot 2, set expectations Created 10 years, 2 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_POWER_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/singleton.h" 10 #include "base/singleton.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Whether there is a battery present. 37 // Whether there is a battery present.
38 virtual bool battery_is_present() const = 0; 38 virtual bool battery_is_present() const = 0;
39 39
40 // The amount of time until battery is empty. 40 // The amount of time until battery is empty.
41 virtual base::TimeDelta battery_time_to_empty() const = 0; 41 virtual base::TimeDelta battery_time_to_empty() const = 0;
42 42
43 // The amount of time until battery is full. 43 // The amount of time until battery is full.
44 virtual base::TimeDelta battery_time_to_full() const = 0; 44 virtual base::TimeDelta battery_time_to_full() const = 0;
45 45
46 // Enable/disable screen lock for current session.
47 virtual void EnableScreenLock(bool enable) = 0;
48
46 // Factory function, creates a new instance and returns ownership. 49 // Factory function, creates a new instance and returns ownership.
47 // For normal usage, access the singleton via CrosLibrary::Get(). 50 // For normal usage, access the singleton via CrosLibrary::Get().
48 static PowerLibrary* GetImpl(bool stub); 51 static PowerLibrary* GetImpl(bool stub);
49 }; 52 };
50 53
51 } // namespace chromeos 54 } // namespace chromeos
52 55
53 #endif // CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_CROS_POWER_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_power_library.h ('k') | chrome/browser/chromeos/cros/power_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698