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

Side by Side Diff: ui/base/user_activity/user_activity_observer.h

Issue 833893003: Move UserActivityDetector to ui/base/user_activity/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't build test on android Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_WM_CORE_USER_ACTIVITY_OBSERVER_H_ 5 #ifndef UI_BASE_USER_ACTIVITY_USER_ACTIVITY_OBSERVER_H_
6 #define UI_WM_CORE_USER_ACTIVITY_OBSERVER_H_ 6 #define UI_BASE_USER_ACTIVITY_USER_ACTIVITY_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/wm/wm_export.h" 9 #include "ui/base/ui_base_export.h"
10 10
11 namespace ui { 11 namespace ui {
12 class Event; 12 class Event;
13 } 13 }
14 14
15 namespace wm { 15 namespace ui {
16 16
17 // Interface for classes that want to be notified about user activity. 17 // Interface for classes that want to be notified about user activity.
18 // Implementations should register themselves with UserActivityDetector. 18 // Implementations should register themselves with UserActivityDetector.
19 class WM_EXPORT UserActivityObserver { 19 class UI_BASE_EXPORT UserActivityObserver {
20 public: 20 public:
21 // Invoked periodically while the user is active (i.e. generating input 21 // Invoked periodically while the user is active (i.e. generating input
22 // events). |event| is the event that triggered the notification; it may 22 // events). |event| is the event that triggered the notification; it may
23 // be NULL in some cases (e.g. testing or synthetic invocations). 23 // be NULL in some cases (e.g. testing or synthetic invocations).
24 virtual void OnUserActivity(const ui::Event* event) = 0; 24 virtual void OnUserActivity(const ui::Event* event) = 0;
25 25
26 protected: 26 protected:
27 UserActivityObserver() {} 27 UserActivityObserver() {}
28 virtual ~UserActivityObserver() {} 28 virtual ~UserActivityObserver() {}
29 29
30 DISALLOW_COPY_AND_ASSIGN(UserActivityObserver); 30 DISALLOW_COPY_AND_ASSIGN(UserActivityObserver);
31 }; 31 };
32 32
33 } // namespace wm 33 } // namespace ui
34 34
35 #endif // UI_WM_CORE_USER_ACTIVITY_OBSERVER_H_ 35 #endif // UI_BASE_USER_ACTIVITY_USER_ACTIVITY_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/base/user_activity/user_activity_detector_unittest.cc ('k') | ui/chromeos/user_activity_power_manager_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698