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

Side by Side Diff: ash/system/chromeos/power/user_activity_notifier.h

Issue 224113005: Eliminate ash::internal namespace (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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_
6 #define ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_ 6 #define ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_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/time/time.h" 10 #include "base/time/time.h"
11 #include "ui/wm/core/user_activity_observer.h" 11 #include "ui/wm/core/user_activity_observer.h"
12 12
13 namespace wm { 13 namespace wm {
14 class UserActivityDetector; 14 class UserActivityDetector;
15 } // namespace wm 15 } // namespace wm
16 16
17 namespace ash { 17 namespace ash {
18 namespace internal {
19 18
20 // Notifies the power manager when the user is active. 19 // Notifies the power manager when the user is active.
21 class UserActivityNotifier : public ::wm::UserActivityObserver { 20 class UserActivityNotifier : public ::wm::UserActivityObserver {
22 public: 21 public:
23 explicit UserActivityNotifier(::wm::UserActivityDetector* detector); 22 explicit UserActivityNotifier(::wm::UserActivityDetector* detector);
24 virtual ~UserActivityNotifier(); 23 virtual ~UserActivityNotifier();
25 24
26 // UserActivityObserver implementation. 25 // UserActivityObserver implementation.
27 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; 26 virtual void OnUserActivity(const ui::Event* event) OVERRIDE;
28 27
29 private: 28 private:
30 ::wm::UserActivityDetector* detector_; // not owned 29 ::wm::UserActivityDetector* detector_; // not owned
31 30
32 // Last time that the power manager was notified. 31 // Last time that the power manager was notified.
33 base::TimeTicks last_notify_time_; 32 base::TimeTicks last_notify_time_;
34 33
35 DISALLOW_COPY_AND_ASSIGN(UserActivityNotifier); 34 DISALLOW_COPY_AND_ASSIGN(UserActivityNotifier);
36 }; 35 };
37 36
38 } // namespace internal
39 } // namespace ash 37 } // namespace ash
40 38
41 #endif // ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_ 39 #endif // ASH_SYSTEM_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/tray_power_unittest.cc ('k') | ash/system/chromeos/power/user_activity_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698