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

Side by Side Diff: chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.h

Issue 9568038: Implement the auto-logout on idle feature for Kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(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_IDLE_LOGOUT_H_
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_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 browser {
15
16 // Shows or closes the logout dialog for Kiosk Mode.
17 void ShowIdleLogoutDialog();
18 void CloseIdleLogoutDialog();
19
20 } // namespace browser
21
22 namespace chromeos {
23
24 class KioskModeIdleLogout : public PowerManagerClient::Observer,
25 public content::NotificationObserver {
26 public:
27 KioskModeIdleLogout();
28
29 // Really initialize idle logout when KioskModeHelper is initialized.
30 void Setup();
31
32 // NotificationObserver overrides:
33 virtual void Observe(int type,
34 const content::NotificationSource& source,
35 const content::NotificationDetails& details) OVERRIDE;
36 virtual void IdleNotify(int64 threshold) OVERRIDE;
37 virtual void ActiveNotify() OVERRIDE;
38
39 private:
40 friend class KioskModeIdleLogoutTest;
41 content::NotificationRegistrar registrar_;
42
43 DISALLOW_COPY_AND_ASSIGN(KioskModeIdleLogout);
44 };
45
46 void InitializeKioskModeIdleLogout();
47
48 } // namespace chromeos
49
50 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.cc ('k') | chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698