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

Side by Side Diff: ui/wm/core/user_activity_detector.h

Issue 237873003: Rename wm_core_export.h to wm_export.h and the wm_core target to just wm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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
« no previous file with comments | « ui/wm/core/transient_window_stacking_client.h ('k') | ui/wm/core/user_activity_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DETECTOR_H_ 5 #ifndef UI_WM_CORE_USER_ACTIVITY_DETECTOR_H_
6 #define UI_WM_CORE_USER_ACTIVITY_DETECTOR_H_ 6 #define UI_WM_CORE_USER_ACTIVITY_DETECTOR_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/observer_list.h" 10 #include "base/observer_list.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "ui/events/event_handler.h" 12 #include "ui/events/event_handler.h"
13 #include "ui/wm/core/wm_core_export.h" 13 #include "ui/wm/wm_export.h"
14 14
15 namespace wm { 15 namespace wm {
16 16
17 class UserActivityObserver; 17 class UserActivityObserver;
18 18
19 // Watches for input events and notifies observers that the user is active. 19 // Watches for input events and notifies observers that the user is active.
20 class WM_CORE_EXPORT UserActivityDetector : public ui::EventHandler { 20 class WM_EXPORT UserActivityDetector : public ui::EventHandler {
21 public: 21 public:
22 // Minimum amount of time between notifications to observers. 22 // Minimum amount of time between notifications to observers.
23 static const int kNotifyIntervalMs; 23 static const int kNotifyIntervalMs;
24 24
25 // Amount of time that mouse events should be ignored after notification 25 // Amount of time that mouse events should be ignored after notification
26 // is received that displays' power states are being changed. 26 // is received that displays' power states are being changed.
27 static const int kDisplayPowerChangeIgnoreMouseMs; 27 static const int kDisplayPowerChangeIgnoreMouseMs;
28 28
29 UserActivityDetector(); 29 UserActivityDetector();
30 virtual ~UserActivityDetector(); 30 virtual ~UserActivityDetector();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // is to avoid reporting mouse events that occur when displays are turned 72 // is to avoid reporting mouse events that occur when displays are turned
73 // on or off as user activity. 73 // on or off as user activity.
74 base::TimeTicks honor_mouse_events_time_; 74 base::TimeTicks honor_mouse_events_time_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(UserActivityDetector); 76 DISALLOW_COPY_AND_ASSIGN(UserActivityDetector);
77 }; 77 };
78 78
79 } // namespace wm 79 } // namespace wm
80 80
81 #endif // UI_WM_CORE_USER_ACTIVITY_DETECTOR_H_ 81 #endif // UI_WM_CORE_USER_ACTIVITY_DETECTOR_H_
OLDNEW
« no previous file with comments | « ui/wm/core/transient_window_stacking_client.h ('k') | ui/wm/core/user_activity_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698