| 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 ASH_WM_USER_ACTIVITY_OBSERVER_H_ |
| 6 #define ASH_WM_USER_ACTIVITY_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ash/ash_export.h" |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 // Interface for classes that want to be notified about user activity. |
| 15 // Implementations should register themselves with UserActivityDetector. |
| 16 class ASH_EXPORT UserActivityObserver { |
| 17 public: |
| 18 // Invoked periodically while the user is active (i.e. generating input |
| 19 // events). |
| 20 virtual void OnUserActivity() = 0; |
| 21 |
| 22 protected: |
| 23 UserActivityObserver() {} |
| 24 virtual ~UserActivityObserver() {} |
| 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(UserActivityObserver); |
| 27 }; |
| 28 |
| 29 } // namespace ash |
| 30 |
| 31 #endif // ASH_WM_USER_ACTIVITY_OBSERVER_H_ |
| OLD | NEW |