OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 10 #include "chrome/browser/chromeos/dbus/power_manager_client.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Really initialize screensaver when KioskModeHelper is initialized. | 22 // Really initialize screensaver when KioskModeHelper is initialized. |
23 void Setup(); | 23 void Setup(); |
24 | 24 |
25 // NotificationObserver overrides: | 25 // NotificationObserver overrides: |
26 virtual void Observe(int type, | 26 virtual void Observe(int type, |
27 const content::NotificationSource& source, | 27 const content::NotificationSource& source, |
28 const content::NotificationDetails& details) OVERRIDE; | 28 const content::NotificationDetails& details) OVERRIDE; |
29 | 29 |
30 // PowerManagerClient::Observer overrides: | 30 // PowerManagerClient::Observer overrides: |
31 virtual void IdleNotify(int64 threshold) OVERRIDE; | |
32 virtual void ActiveNotify() OVERRIDE; | 31 virtual void ActiveNotify() OVERRIDE; |
33 | 32 |
34 private: | 33 private: |
35 friend class KioskModeScreensaverTest; | 34 friend class KioskModeScreensaverTest; |
36 content::NotificationRegistrar registrar_; | 35 content::NotificationRegistrar registrar_; |
37 | 36 |
38 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver); | 37 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver); |
39 }; | 38 }; |
40 | 39 |
41 void InitializeKioskModeScreensaver(); | 40 void InitializeKioskModeScreensaver(); |
42 void ShutdownKioskModeScreensaver(); | 41 void ShutdownKioskModeScreensaver(); |
43 | 42 |
44 } // namespace chromeos | 43 } // namespace chromeos |
45 | 44 |
46 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | 45 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ |
OLD | NEW |