[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 1 | // Copyright (c) 2011 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 CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ | ||||
6 | #define CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ | ||||
7 | |||||
avi | 1023d01 | 2015-12-25 02:39:14 | [diff] [blame] | 8 | #include "base/macros.h" |
[email protected] | c2eaa8f | 2013-05-10 02:41:55 | [diff] [blame] | 9 | |
[email protected] | e9ff79c | 2012-10-19 21:31:26 | [diff] [blame] | 10 | namespace content { |
11 | |||||
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 12 | // Class which observes user input events and postpones |
13 | // idle notifications if the user is active. | ||||
Dave Tapuska | 04bc5ee9 | 2018-04-17 19:03:31 | [diff] [blame] | 14 | class IdleUserDetector { |
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 15 | public: |
Dave Tapuska | 04bc5ee9 | 2018-04-17 19:03:31 | [diff] [blame] | 16 | IdleUserDetector(); |
17 | ~IdleUserDetector(); | ||||
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 18 | |
dtapuska | 9ec1a91 | 2017-04-21 15:18:31 | [diff] [blame] | 19 | void ActivityDetected(); |
20 | |||||
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 21 | private: |
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 22 | |
23 | DISALLOW_COPY_AND_ASSIGN(IdleUserDetector); | ||||
24 | }; | ||||
25 | |||||
[email protected] | e9ff79c | 2012-10-19 21:31:26 | [diff] [blame] | 26 | } // namespace content |
27 | |||||
[email protected] | 1784b2f | 2011-11-24 10:53:48 | [diff] [blame] | 28 | #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ |