Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | |
| 11 #include "content/public/browser/notification_observer.h" | |
| 12 #include "content/public/browser/notification_registrar.h" | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 class KioskModeScreensaverObserver : public PowerManagerClient::Observer, | |
| 17 public content::NotificationObserver { | |
| 18 public: | |
| 19 KioskModeScreensaverObserver(); | |
| 20 | |
| 21 // NotificationObserver overrides: | |
| 22 virtual void Observe(int type, | |
| 23 const content::NotificationSource& source, | |
| 24 const content::NotificationDetails& details) OVERRIDE; | |
| 25 | |
| 26 // PowerManagerClient::Observer overrides: | |
| 27 virtual void IdleNotify(int64 threshold) OVERRIDE; | |
| 28 virtual void ActiveNotify() OVERRIDE; | |
| 29 | |
| 30 private: | |
| 31 friend class KioskModeScreensaverTest; | |
| 32 content::NotificationRegistrar registrar_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaverObserver); | |
| 35 }; | |
| 36 | |
| 37 class KioskModeScreensaver { | |
|
sky
2012/02/24 05:03:53
Why bother with an extra class here? Why not renam
rkc
2012/02/25 02:14:02
Done.
| |
| 38 public: | |
| 39 static void InitClass(); | |
| 40 | |
| 41 private: | |
| 42 KioskModeScreensaver() {} | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver); | |
| 45 }; | |
| 46 | |
| 47 } // namespace chromeos | |
| 48 | |
| 49 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_ | |
| OLD | NEW |