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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 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) 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_IDLE_LOGOUT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_ 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 13 matching lines...) Expand all
24 24
25 private: 25 private:
26 friend class KioskModeIdleLogoutTest; 26 friend class KioskModeIdleLogoutTest;
27 27
28 // Really initialize idle logout when KioskModeHelper is initialized. 28 // Really initialize idle logout when KioskModeHelper is initialized.
29 void Setup(); 29 void Setup();
30 30
31 // Overridden from content::NotificationObserver: 31 // Overridden from content::NotificationObserver:
32 virtual void Observe(int type, 32 virtual void Observe(int type,
33 const content::NotificationSource& source, 33 const content::NotificationSource& source,
34 const content::NotificationDetails& details) OVERRIDE; 34 const content::NotificationDetails& details) override;
35 35
36 // wm::UserActivityObserver overrides: 36 // wm::UserActivityObserver overrides:
37 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; 37 virtual void OnUserActivity(const ui::Event* event) override;
38 38
39 // Begins listening for user activity and calls ResetTimer(). 39 // Begins listening for user activity and calls ResetTimer().
40 void Start(); 40 void Start();
41 41
42 // Resets |timer_| to fire when the logout dialog should be shown. 42 // Resets |timer_| to fire when the logout dialog should be shown.
43 void ResetTimer(); 43 void ResetTimer();
44 44
45 // Invoked by |timer_| to display the logout dialog. 45 // Invoked by |timer_| to display the logout dialog.
46 void OnTimeout(); 46 void OnTimeout();
47 47
48 content::NotificationRegistrar registrar_; 48 content::NotificationRegistrar registrar_;
49 49
50 base::OneShotTimer<KioskModeIdleLogout> timer_; 50 base::OneShotTimer<KioskModeIdleLogout> timer_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(KioskModeIdleLogout); 52 DISALLOW_COPY_AND_ASSIGN(KioskModeIdleLogout);
53 }; 53 };
54 54
55 } // namespace chromeos 55 } // namespace chromeos
56 56
57 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_IDLE_LOGOUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698